Пример #1
0
 /**
  * Copy ALL the information from another object.
  *
  * @param rdata Reference to the object from where the information must be copied.
  */
 public void copy(ReaderProxyData rdata) {
   m_guid.copy(rdata.m_guid);
   m_unicastLocatorList.copy(rdata.m_unicastLocatorList);
   m_multicastLocatorList.copy(rdata.m_multicastLocatorList);
   m_key.copy(rdata.m_key);
   m_RTPSParticipantKey.copy(rdata.m_RTPSParticipantKey);
   m_typeName = rdata.m_typeName;
   m_topicName = rdata.m_topicName;
   m_userDefinedId = rdata.m_userDefinedId;
   m_qos.copy(rdata.m_qos);
   // cout << "COPYING DATA: expects inlineQOS : " << rdata->m_expectsInlineQos << endl;
   m_expectsInlineQos = rdata.m_expectsInlineQos;
   m_isAlive = rdata.m_isAlive;
   m_topicKind = rdata.m_topicKind;
 }
Пример #2
0
  /** Clear (put to default) the information. */
  public void clear() {
    m_expectsInlineQos = false;
    m_guid.copy(new GUID());
    m_unicastLocatorList.clear();
    m_multicastLocatorList.clear();
    m_key.copy(new InstanceHandle());
    m_RTPSParticipantKey.copy(new InstanceHandle());
    m_typeName = "";
    m_topicName = "";
    m_userDefinedId = 0;
    m_qos.copy(new ReaderQos());
    m_isAlive = true;
    m_topicKind = NO_KEY;

    m_parameterList.deleteParams();
    m_parameterList.resetList();
  }
Пример #3
0
 /**
  * Update the information (only certain fields can be updated).
  *
  * @param rdata Poitner to the object from which we are going to update.
  */
 public void update(ReaderProxyData rdata) {
   m_unicastLocatorList.copy(rdata.m_unicastLocatorList);
   m_multicastLocatorList.copy(rdata.m_multicastLocatorList);
   m_qos.setQos(rdata.getQos(), false);
   m_isAlive = rdata.getIsAlive();
 }
Пример #4
0
 /**
  * Set reader QoS
  *
  * @param value reader QoS
  */
 public void setQos(ReaderQos value) {
   m_qos.copy(value);
 }