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

Method createContentFilteredTopic

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

Source from the content-addressed store, hash-verified

190
191template< typename ModelName, class InstanceTraits>
192inline
193void
194OpenDDS::Model::Service< ModelName, InstanceTraits>::createContentFilteredTopic(
195 typename Participants::Values participant,
196 typename Topics::Values topic,
197 typename ContentFilteredTopics::Values cfTopic
198)
199{
200 const char* topicName = this->modelData_.topicName(topic);
201 typename Topics::Values target_topic = this->modelData_.relatedTopic(cfTopic);
202 DDS::Topic_var related_topic = DDS::Topic::_narrow(this->topic(participant, target_topic));
203 const char* filter_expression = this->modelData_.filterExpression(cfTopic);
204 DDS::DomainParticipant_var domain_participant = this->participant(participant);
205#ifndef OPENDDS_NO_CONTENT_FILTERED_TOPIC
206 // TODO: Should this be moved to Delegate?
207 this->topics_[participant][topic] =
208 domain_participant->create_contentfilteredtopic(topicName,
209 related_topic,
210 filter_expression,
211 DDS::StringSeq());
212#endif
213}
214
215template< typename ModelName, class InstanceTraits>
216inline

Callers

nothing calls this directly

Calls 5

topicMethod · 0.95
participantMethod · 0.95
topicNameMethod · 0.80
StringSeqClass · 0.50

Tested by

no test coverage detected