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

Method createMultiTopic

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

Source from the content-addressed store, hash-verified

214
215template< typename ModelName, class InstanceTraits>
216inline
217void
218OpenDDS::Model::Service< ModelName, InstanceTraits>::createMultiTopic(
219 typename Participants::Values participant,
220 typename Topics::Values topic,
221 typename MultiTopics::Values multiTopic
222)
223{
224 const char* topicName = this->modelData_.topicName(topic);
225 typename Types::Values type = this->modelData_.type(topic);
226 DDS::DomainParticipant_var domain_participant = this->participant(participant);
227 const char* topicExpression = this->modelData_.topicExpression(multiTopic);
228#ifndef OPENDDS_NO_MULTI_TOPIC
229 if(!this->types_[participant][type]) {
230 this->modelData_.registerType(type, this->participants_[ participant]);
231 this->types_[participant][type] = true;
232 }
233 // TODO: Should this be moved to Delegate?
234 this->topics_[participant][topic] =
235 domain_participant->create_multitopic(topicName,
236 this->modelData_.typeName(type),
237 topicExpression,
238 DDS::StringSeq());
239#endif
240}
241
242template< typename ModelName, class InstanceTraits>
243inline

Callers

nothing calls this directly

Calls 7

participantMethod · 0.95
topicNameMethod · 0.80
registerTypeMethod · 0.80
create_multitopicMethod · 0.80
StringSeqClass · 0.50
typeMethod · 0.45
typeNameMethod · 0.45

Tested by

no test coverage detected