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

Method createTopic

tools/modeling/codegen/model/Service_T.cpp:165–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164template< typename ModelName, class InstanceTraits>
165inline
166void
167OpenDDS::Model::Service< ModelName, InstanceTraits>::createTopic(
168 typename Participants::Values participant,
169 typename Topics::Values topic
170)
171{
172 typename Types::Values type = this->modelData_.type(topic);
173
174 if( !this->participants_[ participant]) {
175 this->createParticipant( participant);
176 }
177 if( !this->types_[ participant][ type]) {
178 this->modelData_.registerType( type, this->participants_[ participant]);
179 this->types_[ participant][ type] = true;
180 }
181
182 this->topics_[participant][topic] = this->delegate_.createTopic(
183 this->participants_[participant],
184 this->modelData_.topicName(topic),
185 this->modelData_.typeName(type),
186 this->modelData_.qos(topic),
187 this->modelData_.mask(topic)
188 );
189}
190
191template< typename ModelName, class InstanceTraits>
192inline

Callers 1

createPublicationMethod · 0.95

Calls 5

createParticipantMethod · 0.95
registerTypeMethod · 0.80
topicNameMethod · 0.80
typeMethod · 0.45
typeNameMethod · 0.45

Tested by

no test coverage detected