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

Method createPublication

tools/modeling/codegen/model/Delegate.cpp:127–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127DDS::DataWriter*
128OpenDDS::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
158DDS::DataWriter*
159OpenDDS::Model::Delegate::createWriter(

Callers

nothing calls this directly

Calls 4

createWriterMethod · 0.95
copyPublicationQosMethod · 0.80
get_qosMethod · 0.45
copy_from_topic_qosMethod · 0.45

Tested by

no test coverage detected