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

Method participant

tools/modeling/codegen/model/Entities.cpp:60–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60DDS::DomainParticipant_var
61OpenDDS::Model::Entities::participant(
62 const OPENDDS_STRING& name,
63 const OPENDDS_STRING& transportConfig
64)
65{
66 // See if its already here.
67 StringToParticipantMap::const_iterator which
68 = this->participantByString_.find( name);
69 if( which != this->participantByString_.end()) {
70 return DDS::DomainParticipant::_duplicate( which->second);
71 }
72
73 // See if there is a configuration profile for it.
74 Config::ParticipantProfileMap::const_iterator where
75 = this->config_.participantProfileMap().find( name);
76 if( where == this->config_.participantProfileMap().end()) {
77 ACE_ERROR((LM_ERROR,
78 ACE_TEXT("(%P|%t) ERROR: Entities::participant() - ")
79 ACE_TEXT("unable to find profile to configure participant: [%C].\n"),
80 name.c_str()
81 ));
82 return 0;
83 }
84
85 // Create it.
86 ParticipantProfile* profile = where->second;
87 if( OpenDDS::DCPS::DCPS_debug_level>1) {
88 ACE_DEBUG((LM_DEBUG,
89 ACE_TEXT("(%P|%t) Entities::participant() - ")
90 ACE_TEXT("Creating participant [%C].\n"),
91 name.c_str()
92 ));
93 }
94 this->participantByString_[ name]
95 = this->delegate_.createParticipant(
96 static_cast<unsigned long>(profile->domainId),
97 profile->qos,
98 OpenDDS::DCPS::DEFAULT_STATUS_MASK,
99 transportConfig
100 );
101 return DDS::DomainParticipant::_duplicate(
102 this->participantByString_[ name]
103 );
104}
105
106DDS::Topic_var
107OpenDDS::Model::Entities::topic(

Callers 6

registerTypesMethod · 0.95
topicMethod · 0.95
publisherMethod · 0.95
subscriberMethod · 0.95
ACE_TMAINFunction · 0.45
ACE_TMAINFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
createParticipantMethod · 0.45

Tested by 2

ACE_TMAINFunction · 0.36
ACE_TMAINFunction · 0.36