a00718.html

来自「opendds 1.2 最新版 面向分布式实时网络编程」· HTML 代码 · 共 884 行 · 第 1/5 页

HTML
884 行
字号
      </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>&nbsp;</td><td>the Domain in which the Subscription is contained. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>participantId</em>&nbsp;</td><td>the Participant in which the Subscription is contained. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>topicId</em>&nbsp;</td><td>the Topic of the Subscription. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subId</em>&nbsp;</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>&nbsp;</td><td>stringified publication callback to DataReader. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>qos</em>&nbsp;</td><td>the QoS value of the DataReader. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>transInfo</em>&nbsp;</td><td>the transport information for the Subscription. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subscriberQos</em>&nbsp;</td><td>the QoS value of the Subscriber. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>associate</em>&nbsp;</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 &amp;participantId, const OpenDDS::DCPS::RepoId &amp;topicId, OpenDDS::DCPS::DataReaderRemote_ptr subscription, const ::DDS::DataReaderQos &amp;qos, const OpenDDS::DCPS::TransportInterfaceInfo &amp;transInfo, const ::DDS::SubscriberQos &amp;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>&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>topicId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OpenDDS::DCPS::DataReaderRemote_ptr&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>subscriberQos</em></td><td>&nbsp;</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 &amp;topicId,::DDS::DomainId_t domainId, const OpenDDS::DCPS::RepoId &amp;participantId, const char *topicName, const char *dataTypeName, const ::DDS::TopicQos &amp;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> &amp;&nbsp;</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>&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>participantId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>topicName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>qos</em></td><td>&nbsp;</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>&nbsp;</td><td>the Topic Entity GUID Id to use. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>domainId</em>&nbsp;</td><td>the Domain in which the Topic is contained. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>participantId</em>&nbsp;</td><td>the Participant in which the Topic is contained. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>topicName</em>&nbsp;</td><td>the name of the Topic. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dataTypeName</em>&nbsp;</td><td>the name of the data type. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>qos</em>&nbsp;</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 &amp;participantId, const char *topicName, const char *dataTypeName, const ::DDS::TopicQos &amp;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&nbsp;</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>&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>participantId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>topicName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?