本文整理汇总了C++中Probe::getId方法的典型用法代码示例。如果您正苦于以下问题:C++ Probe::getId方法的具体用法?C++ Probe::getId怎么用?C++ Probe::getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Probe
的用法示例。
在下文中一共展示了Probe::getId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: relayPacket
DysectAPI::DysectErrorCode Backend::relayPacket(PacketPtr* packet, int tag, Stream* stream) {
if(tag == DysectGlobalReadyTag){
// Stream to respond when all streams have been bound
if(controlStream != 0) {
return DYSECTWARN(Error, "Control stream already set");
}
controlStream = stream;
if((state == ready) && (!streamBindAckSent)) {
ackBindings();
}
return OK;
}
switch(state) {
case bindingStreams:
{
if(Domain::isInitTag(tag)) {
if(bindStream(tag, stream) != OK) {
return DYSECTWARN(StreamError, "Failed to bind stream!");
}
} else {
assert(!"Save packet until all streams have been bound to domains - not yet supported");
}
}
break;
case ready:
{
if(tag == DysectGlobalStartTag) {
enableProbeRoots();
} else {
if(Domain::isContinueTag(tag)) {
Domain* dom = 0;
if(!Domain::getDomainFromTag(dom, tag)) {
DYSECTWARN(false, "Domain for tag %x could not be found", tag);
} else {
Probe* probe = dom->owner;
if(!probe) {
DYSECTWARN(false, "Probe for tag %x could not be found", tag);
} else {
DYSECTVERBOSE(true, "Handling packet for probe %x", probe->getId());
}
}
}
}
}
break;
default:
return InvalidSystemState;
break;
}
return OK;
}