| 125 | } |
| 126 | |
| 127 | DDS::DataWriter* |
| 128 | OpenDDS::Model::Delegate::createPublication( |
| 129 | unsigned int which, |
| 130 | DDS::Publisher* publisher, |
| 131 | DDS::Topic* topic, |
| 132 | const DDS::DataWriterQos& writerQos, |
| 133 | DDS::StatusMask mask, |
| 134 | const OPENDDS_STRING& transportConfig, |
| 135 | bool copyQosFromTopic) |
| 136 | { |
| 137 | if( !this->service_) { |
| 138 | return 0; |
| 139 | } |
| 140 | |
| 141 | DDS::TopicQos topicQos; |
| 142 | topic->get_qos(topicQos); |
| 143 | DDS::DataWriterQos dw_qos = writerQos; |
| 144 | if (copyQosFromTopic) { |
| 145 | publisher->copy_from_topic_qos(dw_qos, topicQos); |
| 146 | } |
| 147 | this->service_->copyPublicationQos(which, dw_qos); |
| 148 | |
| 149 | return this->createWriter( |
| 150 | publisher, |
| 151 | topic, |
| 152 | dw_qos, |
| 153 | mask, |
| 154 | transportConfig |
| 155 | ); |
| 156 | } |
| 157 | |
| 158 | DDS::DataWriter* |
| 159 | OpenDDS::Model::Delegate::createWriter( |
nothing calls this directly
no test coverage detected