本文整理汇总了C++中DeviceConfig::getParameterGroup方法的典型用法代码示例。如果您正苦于以下问题:C++ DeviceConfig::getParameterGroup方法的具体用法?C++ DeviceConfig::getParameterGroup怎么用?C++ DeviceConfig::getParameterGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DeviceConfig
的用法示例。
在下文中一共展示了DeviceConfig::getParameterGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: senderThreadActive
Matrix4CalibrationDev::Matrix4CalibrationDev(const DeviceConfig & deviceConfig) :
senderThreadActive(false),
receiverThreadActive(false),
vec1Size(0),
vec2Size(0),
trackVectors(false),
premultiply(false),
useAverage(false) {
this->deviceDescriptor.setEntityID(deviceConfig.getEntityID());
this->entityID = this->deviceDescriptor.getEntityID();
map<string, Port> portMap;
map<string, int> namePortNrMap;
addPort(Port("Vector1", "Vector4", Port::Sink, ""), PortNR_Vector1, portMap, namePortNrMap);
addPort(Port("Vector2", "Vector4", Port::Sink, ""), PortNR_Vector2, portMap, namePortNrMap);
addPort(Port("CalibratedMatrix", "Matrix4", Port::Source, ""), PortNR_CalibratedMatrix, portMap, namePortNrMap);
addPort(Port("ApplyVectors", "DigitalChannel", Port::Sink, ""), PortNR_ApplyVectors, portMap, namePortNrMap);
addPort(Port("ClearVectors", "DigitalChannel", Port::Sink, ""), PortNR_ClearVectors, portMap, namePortNrMap);
addPort(Port("LoadCalibratedMatrix", "DigitalChannel", Port::Sink, ""), PortNR_LoadCalibratedMatrix, portMap, namePortNrMap);
addPort(Port("SaveCalibratedMatrix", "DigitalChannel", Port::Sink, ""), PortNR_SaveCalibratedMatrix, portMap, namePortNrMap);
addPort(Port("SendCalibratedMatrix", "DigitalChannel", Port::Sink, ""), PortNR_SendCalibratedMatrix, portMap, namePortNrMap);
addPort(Port("CalcCalibratedMatrix", "DigitalChannel", Port::Sink, ""), PortNR_CalcCalibratedMatrix, portMap, namePortNrMap);
DeviceType deviceType;
deviceType.setPortMap(portMap);
deviceType.setDeviceTypeName("Matrix4CalibrationDev");
deviceType.setDescription("");
this->deviceDescriptor.setDeviceType(deviceType);
this->deviceDescriptor.setNameChannelNrMap(namePortNrMap);
try {
this->initialSend = deviceConfig.getParameterGroup().getInt("CalibratedMatrix|InitialSend") != 0;
TFDEBUG("initialSend = " << this->initialSend);
this->calibratedMatrixPath = deviceConfig.getParameterGroup().getString("CalibratedMatrix|Path");
TFDEBUG("calibratedMatrixPath = " << this->calibratedMatrixPath);
this->premultiply = deviceConfig.getParameterGroup().getInt("CalibratedMatrix|Pre-multiply") != 0;
TFINFO("pre-multiply = " << this->premultiply);
this->useAverage = deviceConfig.getParameterGroup().getInt("ApplyVectors|useAverage") != 0;
TFINFO("useAverage = " << this->useAverage);
}
catch(Exception & e) {
TFERROR(e.getFormattedString());
}
}