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

Method createSubscription

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

Source from the content-addressed store, hash-verified

311
312template< typename ModelName, class InstanceTraits>
313inline
314void
315OpenDDS::Model::Service< ModelName, InstanceTraits>::createSubscription( typename DataReaders::Values reader)
316{
317 typename Subscribers::Values subscriber = this->modelData_.subscriber( reader);
318 typename Participants::Values participant = this->modelData_.participant( subscriber);
319 typename Topics::Values topic = this->modelData_.topic( reader);
320
321 if( !this->subscribers_[ subscriber]) {
322 this->createSubscriber( subscriber);
323 }
324 if( !this->topics_[ participant][ topic]) {
325 this->createTopicDescription(participant, topic);
326 }
327
328 this->readers_[reader] = this->delegate_.createSubscription(
329 reader,
330 this->subscribers_[subscriber],
331 this->topics_[participant][topic],
332 this->modelData_.qos(reader),
333 this->modelData_.mask(reader),
334 this->configName(this->modelData_.transportConfigName(reader)),
335 this->modelData_.copyTopicQos(reader)
336 );
337}
338
339template< typename ModelName, class InstanceTraits>
340inline

Callers 1

readerMethod · 0.95

Calls 6

createSubscriberMethod · 0.95
transportConfigNameMethod · 0.80
subscriberMethod · 0.45
participantMethod · 0.45
topicMethod · 0.45

Tested by

no test coverage detected