本文整理汇总了C++中Label::GetIdentifier方法的典型用法代码示例。如果您正苦于以下问题:C++ Label::GetIdentifier方法的具体用法?C++ Label::GetIdentifier怎么用?C++ Label::GetIdentifier使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Label
的用法示例。
在下文中一共展示了Label::GetIdentifier方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EnterCPUZone
// Mark a CPU profiled region.... Begin(); DoSomething(); End();
// Nesting is allowed. And every Begin() should ALWAYS have a matching End()!!!
void EnterCPUZone(const Label &label)
{
if(CheckConnectionFlag(Enable_CPU_Zones))
{
CPUZoneEnterPacket packet;
packet.labelID = label.GetIdentifier();
packet.timestamp = GetNanoseconds();
AsyncStream::Acquire()->WritePacket(packet);
}
}
示例2: SensorSetValue
// Set the absolute value of a sensor, may be called at any frequency.
void SensorSetValue(const Label &label, float value)
{
if(IsConnected())
{
SensorPacket packet;
packet.labelID = label.GetIdentifier();
packet.timestamp = GetNanoseconds();
packet.value = value;
AsyncStream::Acquire()->WritePacket(packet);
}
}
示例3: SensorSetRange
// Set sensor range of values.
void SensorSetRange(const Label &label, float minValue, float maxValue, SensorInterpolator interpolator, SensorUnits units)
{
if(IsConnected())
{
SensorRangePacket packet;
packet.labelID = label.GetIdentifier();
packet.interpolator = interpolator;
packet.units = units;
packet.minValue = minValue;
packet.maxValue = maxValue;
AsyncStream::Acquire()->WritePacket(packet);
}
}