📄 a00718.html
字号:
</table>
</div>
<div class="memdoc">
<p>
Add a previously existing subscription 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 Subscription is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>participantId</em> </td><td>the Participant in which the Subscription is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>topicId</em> </td><td>the Topic of the Subscription. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>subId</em> </td><td>the GUID Id value to use for the Subscription. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sub_str</em> </td><td>stringified publication callback to DataReader. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>qos</em> </td><td>the QoS value of the DataReader. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>transInfo</em> </td><td>the transport information for the Subscription. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>subscriberQos</em> </td><td>the QoS value of the Subscriber. </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 Subscription to the repository using a specified Subscription GUID Id value. If the SubscriptionId indicates that this Subscription 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.
</div>
</div><p>
<a class="anchor" name="ed7fbb158f09ee6a96fb4caa4777bacb"></a><!-- doxytag: member="TAO_DDS_DCPSInfo_i::add_subscription" ref="ed7fbb158f09ee6a96fb4caa4777bacb" args="(::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &participantId, const OpenDDS::DCPS::RepoId &topicId, OpenDDS::DCPS::DataReaderRemote_ptr subscription, const ::DDS::DataReaderQos &qos, const OpenDDS::DCPS::TransportInterfaceInfo &transInfo, const ::DDS::SubscriberQos &subscriberQos)" -->
<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_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">OpenDDS::DCPS::DataReaderRemote_ptr </td>
<td class="paramname"> <em>subscription</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><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="97a0df9cb2f962c07e8f6dd06b2dc1a9"></a><!-- doxytag: member="TAO_DDS_DCPSInfo_i::add_topic" ref="97a0df9cb2f962c07e8f6dd06b2dc1a9" args="(const OpenDDS::DCPS::RepoId &topicId,::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &participantId, const char *topicName, const char *dataTypeName, const ::DDS::TopicQos &qos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool TAO_DDS_DCPSInfo_i::add_topic </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">::<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 char * </td>
<td class="paramname"> <em>topicName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>dataTypeName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const ::<a class="el" href="a00735.html">DDS::TopicQos</a> & </td>
<td class="paramname"> <em>qos</em></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 topic 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>topicId</em> </td><td>the Topic Entity GUID Id to use. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>domainId</em> </td><td>the Domain in which the Topic is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>participantId</em> </td><td>the Participant in which the Topic is contained. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>topicName</em> </td><td>the name of the Topic. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>dataTypeName</em> </td><td>the name of the data type. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>qos</em> </td><td>the QoS value to use for the Topic.</td></tr>
</table>
</dl>
Adds a Topic Entity to the repository using a specified TopicId value. If the TopicId indicates that this Topic 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 Topic and obtain a newly generated Id value will return an Id value greater than the Id value of the current one.
</div>
</div><p>
<a class="anchor" name="ae124c2f66491fddc5b2d96b2fe012ab"></a><!-- doxytag: member="TAO_DDS_DCPSInfo_i::assert_topic" ref="ae124c2f66491fddc5b2d96b2fe012ab" args="(OpenDDS::DCPS::RepoId_out topicId,::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &participantId, const char *topicName, const char *dataTypeName, const ::DDS::TopicQos &qos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a01275.html#7b211a53a26338ee738cbf3442866c27">OpenDDS::DCPS::TopicStatus</a> TAO_DDS_DCPSInfo_i::assert_topic </td>
<td>(</td>
<td class="paramtype">OpenDDS::DCPS::RepoId_out </td>
<td class="paramname"> <em>topicId</em>, </td>
</tr>
<tr>
<td class="paramkey"></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 char * </td>
<td class="paramname"> <em>topicName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -