| 214 | |
| 215 | template< typename ModelName, class InstanceTraits> |
| 216 | inline |
| 217 | void |
| 218 | OpenDDS::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 | |
| 242 | template< typename ModelName, class InstanceTraits> |
| 243 | inline |
nothing calls this directly
no test coverage detected