| 163 | |
| 164 | template< typename ModelName, class InstanceTraits> |
| 165 | inline |
| 166 | void |
| 167 | OpenDDS::Model::Service< ModelName, InstanceTraits>::createTopic( |
| 168 | typename Participants::Values participant, |
| 169 | typename Topics::Values topic |
| 170 | ) |
| 171 | { |
| 172 | typename Types::Values type = this->modelData_.type(topic); |
| 173 | |
| 174 | if( !this->participants_[ participant]) { |
| 175 | this->createParticipant( participant); |
| 176 | } |
| 177 | if( !this->types_[ participant][ type]) { |
| 178 | this->modelData_.registerType( type, this->participants_[ participant]); |
| 179 | this->types_[ participant][ type] = true; |
| 180 | } |
| 181 | |
| 182 | this->topics_[participant][topic] = this->delegate_.createTopic( |
| 183 | this->participants_[participant], |
| 184 | this->modelData_.topicName(topic), |
| 185 | this->modelData_.typeName(type), |
| 186 | this->modelData_.qos(topic), |
| 187 | this->modelData_.mask(topic) |
| 188 | ); |
| 189 | } |
| 190 | |
| 191 | template< typename ModelName, class InstanceTraits> |
| 192 | inline |
no test coverage detected