70 const std::string& address,
const std::map<std::string, std::string>& parameters);
73 std::string
createShmName(std::size_t instanceIdHash,
const std::string& mapFileName,
const std::string& userName);
78 bool isSdm(
const std::string& theString);
Stores information about one device.
DeviceDescriptor parseDeviceDesciptor(std::string cddString)
Parse a ChimeraTK device descriptor (CDD) and return the information in the DeviceDescriptor struct.
std::vector< std::string > getAliasList()
Returns the list of device aliases from the DMap file set using BackendFactory::setDMapFilePath.
void printStackTrace()
Print a call stack trace (but continue executing the process normally).
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.
std::size_t shmDummyInstanceIdHash(const std::string &address, const std::map< std::string, std::string > ¶meters)
Generates shm dummy instanceId hash from address and parameter map, Intended for use with parseDevice...
bool isSdm(const std::string &theString)
Check wehter the given string seems to be an SDM.
size_t countOccurence(std::string theString, char delimiter)
Check if the given string only contains alphanumeric characters.
Sdm parseDeviceString(const std::string &deviceString)
Parse an old-style device string (either path to device node or map file name for dummies)
Sdm parseSdm(const std::string &sdmString)
Parse an SDM URI and return the device information in the Sdm struct.
std::string createShmName(std::size_t instanceIdHash, const std::string &mapFileName, const std::string &userName)
Generates shm dummy name from parameter hashes.
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.
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
This structure holds the information of an ChimeraTK device descriptor.
std::map< std::string, std::string > parameters
This structure holds the information of an SDM.
std::list< std::string > parameters