MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / createParticipantNode

Method createParticipantNode

tools/monitor/MonitorDataStorage.cpp:236–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236Monitor::TreeNode*
237Monitor::MonitorDataStorage::createParticipantNode(
238 const ProcessKey& pid,
239 const OpenDDS::DCPS::GUID_t& id,
240 bool& create
241)
242{
243 if( id == OpenDDS::DCPS::GUID_UNKNOWN) {
244 return 0;
245 }
246
247 // Find the parent node, if any. It is ok to not have a parent node
248 // for cases of out-of-order udpates. We handle that as the updates
249 // are actually processed.
250 TreeNode* parent = this->getProcessNode( pid, create);
251
252 // DomainParticipant data.
253 QList<QVariant> list;
254 list << QString("DomainParticipant")
255 << QString( QObject::tr( OpenDDS::DCPS::LogGuid(id).c_str()));
256 TreeNode* node = new TreeNode( list, parent);
257 if( parent) {
258 parent->append( node);
259 }
260
261 // Install the new node.
262 this->guidToTreeMap_[ id] = std::make_pair( node->row(), node);
263
264 return node;
265}
266
267Monitor::TreeNode*
268Monitor::MonitorDataStorage::getParticipantNode(

Callers 1

getParticipantNodeMethod · 0.95

Calls 4

getProcessNodeMethod · 0.95
LogGuidFunction · 0.85
rowMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected