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

Method createQosNode

tools/monitor/MonitorDataStorage.cpp:776–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776Monitor::TreeNode*
777Monitor::MonitorDataStorage::createQosNode(
778 const std::string& label,
779 TreeNode* node,
780 bool& created
781)
782{
783 TreeNode* qosNode = 0;
784 QString qosLabel( QObject::tr( "Qos"));
785 int qosRow = node->indexOf( 0, qosLabel);
786 if( qosRow == -1) {
787 // New entry, add a reference to the actual transport node.
788 node->insertChildren( 0, 1, 2); // Always make Qos the first child.
789 qosNode = (*node)[0];
790 qosNode->setData( 0, qosLabel);
791 qosNode->setData( 1, label.c_str());
792 created = true;
793
794 } else {
795 qosNode = (*node)[ qosRow];
796 }
797
798 if( !qosNode) {
799 ACE_ERROR((LM_ERROR,
800 ACE_TEXT("(%P|%t) ERROR: MonitorDataStorage::createQosNode() - ")
801 ACE_TEXT("unable to find place for Qos in GUI.\n")
802 ));
803 }
804 return qosNode;
805}
806
807void
808Monitor::MonitorDataStorage::manageParticipantQos(

Callers 4

manageParticipantQosMethod · 0.95
manageTopicQosMethod · 0.95
managePublicationQosMethod · 0.95
manageSubscriptionQosMethod · 0.95

Calls 3

indexOfMethod · 0.80
insertChildrenMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected