|
ChimeraTK-DeviceAccess
03.18.00
|
DeviceDescriptor parseDeviceDesciptor(std::string cddString)
Parse a ChimeraTK device descriptor (CDD) and return the information in the DeviceDescriptor struct.
size_t countOccurence(std::string theString, char delimiter)
Check if the given string only contains alphanumeric characters.
std::vector< std::string > getAliasList()
Returns the list of device aliases from the DMap file set using BackendFactory::setDMapFilePath.
This structure holds the information of an SDM.
This structure holds the information of an ChimeraTK device descriptor.
std::map< std::string, std::string > parameters
Sdm parseDeviceString(const std::string &deviceString)
Parse an old-style device string (either path to device node or map file name for dummies)
bool isSdm(const std::string &theString)
Check wehter the given string seems to be an SDM.
Sdm parseSdm(const std::string &sdmString)
Parse an SDM URI and return the device information in the Sdm struct.
Stores information about one device.
std::list< std::string > parameters
bool isDeviceDescriptor(std::string theString)
Check whether the given string seems to be a CDD.
std::string getDMapFilePath()
Returns the dmap file name which the library currently uses for looking up device(alias) names.
DeviceInfoMap::DeviceInfo aliasLookUp(const std::string &aliasName, const std::string &dmapFilePath)
Search for an alias in a given DMap file and return the DeviceInfo entry.
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
void printStackTrace()
Print a call stack trace (but continue executing the process normally).