| 190 | |
| 191 | template< typename ModelName, class InstanceTraits> |
| 192 | inline |
| 193 | void |
| 194 | OpenDDS::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 | |
| 215 | template< typename ModelName, class InstanceTraits> |
| 216 | inline |
nothing calls this directly
no test coverage detected