a00718.html
来自「opendds 1.2 最新版 面向分布式实时网络编程」· HTML 代码 · 共 884 行 · 第 1/5 页
HTML
884 行
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00512.html">DDS::DataWriterQos</a> & </td>
<td class="paramname"> <em>qos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00749.html">OpenDDS::DCPS::TransportInterfaceInfo</a> & </td>
<td class="paramname"> <em>transInfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00634.html">DDS::PublisherQos</a> & </td>
<td class="paramname"> <em>publisherQos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>associate</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Add a previously existing publication to the repository.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>domainId</em> </td><td>the Domain in which the Publication is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>participantId</em> </td><td>the Participant in which the Publication is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>topicId</em> </td><td>the Topic of the Publication. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pubId</em> </td><td>the GUID Id value to use for the Publication. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pub_str</em> </td><td>stringified publication callback to DataWriter. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>qos</em> </td><td>the QoS value of the DataWriter. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>transInfo</em> </td><td>the transport information for the Publication. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>publisherQos</em> </td><td>the QoS value of the Publisher. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>associate</em> </td><td>indicate whether to create new associations.</td></tr>
</table>
</dl>
Adds a Publication to the repository using a specified Publication GUID Id value. If the PublicationId indicates that this Publication was created by within this repository (the federation Id is the current repositories federation Id), this method will ensure that any subsequent calls to add a Publication and obtain a newly generated Id value will return an Id value greater than the Id value of the current one.
<p>
: Check if this is already stored. If so, just clear the callback IOR.
</div>
</div><p>
<a class="anchor" name="5fb243b062f323e7c7f1b50ce7dc15f6"></a><!-- doxytag: member="TAO_DDS_DCPSInfo_i::add_publication" ref="5fb243b062f323e7c7f1b50ce7dc15f6" args="(::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &participantId, const OpenDDS::DCPS::RepoId &topicId, OpenDDS::DCPS::DataWriterRemote_ptr publication, const ::DDS::DataWriterQos &qos, const OpenDDS::DCPS::TransportInterfaceInfo &transInfo, const ::DDS::PublisherQos &publisherQos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> TAO_DDS_DCPSInfo_i::add_publication </td>
<td>(</td>
<td class="paramtype">::<a class="el" href="a01300.html#13c1555c3fe021360cf08452d3956a98">DDS::DomainId_t</a> </td>
<td class="paramname"> <em>domainId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> & </td>
<td class="paramname"> <em>participantId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> & </td>
<td class="paramname"> <em>topicId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">OpenDDS::DCPS::DataWriterRemote_ptr </td>
<td class="paramname"> <em>publication</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00512.html">DDS::DataWriterQos</a> & </td>
<td class="paramname"> <em>qos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00749.html">OpenDDS::DCPS::TransportInterfaceInfo</a> & </td>
<td class="paramname"> <em>transInfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00634.html">DDS::PublisherQos</a> & </td>
<td class="paramname"> <em>publisherQos</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> throw ( CORBA::SystemException , <a class="el" href="a00567.html">OpenDDS::DCPS::Invalid_Domain</a> , <a class="el" href="a00568.html">OpenDDS::DCPS::Invalid_Participant</a> , <a class="el" href="a00571.html">OpenDDS::DCPS::Invalid_Topic</a> )<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="6255c0f17cd99c8046f30b2f44c9a590"></a><!-- doxytag: member="TAO_DDS_DCPSInfo_i::add_subscription" ref="6255c0f17cd99c8046f30b2f44c9a590" args="(::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &participantId, const OpenDDS::DCPS::RepoId &topicId, const OpenDDS::DCPS::RepoId &subId, const char *sub_str, const ::DDS::DataReaderQos &qos, const OpenDDS::DCPS::TransportInterfaceInfo &transInfo, const ::DDS::SubscriberQos &subscriberQos, bool associate=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool TAO_DDS_DCPSInfo_i::add_subscription </td>
<td>(</td>
<td class="paramtype">::<a class="el" href="a01300.html#13c1555c3fe021360cf08452d3956a98">DDS::DomainId_t</a> </td>
<td class="paramname"> <em>domainId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> & </td>
<td class="paramname"> <em>participantId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> & </td>
<td class="paramname"> <em>topicId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00552.html">OpenDDS::DCPS::RepoId</a> & </td>
<td class="paramname"> <em>subId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>sub_str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00501.html">DDS::DataReaderQos</a> & </td>
<td class="paramname"> <em>qos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="a00749.html">OpenDDS::DCPS::TransportInterfaceInfo</a> & </td>
<td class="paramname"> <em>transInfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00712.html">DDS::SubscriberQos</a> & </td>
<td class="paramname"> <em>subscriberQos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>associate</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?