本文整理汇总了C++中Sensor::name方法的典型用法代码示例。如果您正苦于以下问题:C++ Sensor::name方法的具体用法?C++ Sensor::name怎么用?C++ Sensor::name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sensor
的用法示例。
在下文中一共展示了Sensor::name方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
InventoryTask::InventoryTask(Seiscomp::DataModel::Inventory *inv) : _inv(inv) {
_logHandler = NULL;
if ( _inv == NULL ) return;
for ( size_t i = 0; i < _inv->dataloggerCount(); ++i ) {
Datalogger *d = _inv->datalogger(i);
_dataloggerNames[d->name()] = d;
}
for ( size_t i = 0; i < _inv->sensorCount(); ++i ) {
Sensor *s = _inv->sensor(i);
_sensorNames[s->name()] = s;
}
for ( size_t i = 0; i < _inv->auxDeviceCount(); ++i ) {
AuxDevice *d = _inv->auxDevice(i);
_auxDeviceNames[d->name()] = d;
}
for ( size_t i = 0; i < _inv->responseFIRCount(); ++i ) {
ResponseFIR *r = _inv->responseFIR(i);
_FIRNames[r->name()] = r;
}
for ( size_t i = 0; i < _inv->responsePAZCount(); ++i ) {
ResponsePAZ *r = _inv->responsePAZ(i);
_PAZNames[r->name()] = r;
}
for ( size_t i = 0; i < _inv->responsePolynomialCount(); ++i ) {
ResponsePolynomial *r = _inv->responsePolynomial(i);
_PolyNames[r->name()] = r;
}
}