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

Method createTopicDescription

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

Source from the content-addressed store, hash-verified

129
130template< typename ModelName, class InstanceTraits>
131inline
132void
133OpenDDS::Model::Service< ModelName, InstanceTraits>::createTopicDescription(
134 typename Participants::Values participant,
135 typename Topics::Values topic
136)
137{
138#ifndef OPENDDS_NO_CONTENT_FILTERED_TOPIC
139 typename ContentFilteredTopics::Values cfTopic =
140 this->modelData_.contentFilteredTopic(topic);
141#endif
142#ifndef OPENDDS_NO_MULTI_TOPIC
143 typename MultiTopics::Values multiTopic =
144 this->modelData_.multiTopic(topic);
145#endif
146#ifndef OPENDDS_NO_CONTENT_FILTERED_TOPIC
147 // If this is a content-filtered topic
148 if (cfTopic != ContentFilteredTopics::LAST_INDEX) {
149 createContentFilteredTopic(participant, topic, cfTopic);
150 // Else if this is a multitopic
151 } else
152#endif
153#ifndef OPENDDS_NO_MULTI_TOPIC
154 if (multiTopic != MultiTopics::LAST_INDEX) {
155 createMultiTopic(participant, topic, multiTopic);
156 // Else this is a standard topic
157 } else
158#endif
159 {
160 createTopic(participant, topic);
161 }
162}
163
164template< typename ModelName, class InstanceTraits>
165inline

Callers 2

topicMethod · 0.95
createSubscriptionMethod · 0.95

Calls 1

createTopicFunction · 0.50

Tested by

no test coverage detected