OpenDDS::DCPS::PublicationInstance Class Reference

Struct that has information about an instance and the instance sample list. More...

#include <PublicationInstance.h>

Inheritance diagram for OpenDDS::DCPS::PublicationInstance:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::PublicationInstance:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PublicationInstance (DataSample *registered_sample)
 ~PublicationInstance ()

Public Attributes

SequenceNumber sequence_
 The sequence number.
CoherencyGroup group_id_
 The group id. // NOT USED IN FIRST IMPL.
DataSampleregistered_sample_
 The sample data for registration.
InstanceDataSampleList samples_
 History of the instance samples.
bool unregistered_
 The flag to indicate whether the instance is unregistered.
DDS::InstanceHandle_t instance_handle_
 The instance handle for the registered object.
ACE_Time_Value last_sample_tv_
ACE_Time_Value cur_sample_tv_
long deadline_timer_id_

Detailed Description

Struct that has information about an instance and the instance sample list.

Note:
This struct retains the ownership of the registered sample data from typed datawriter. The data will be duplicated for the register, unregister and dispose control message.

Definition at line 33 of file PublicationInstance.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::PublicationInstance::PublicationInstance ( DataSample registered_sample  )  [inline]

Definition at line 35 of file PublicationInstance.h.

00036     : sequence_(),
00037       group_id_(0),
00038       registered_sample_(registered_sample),
00039       unregistered_(false),
00040       instance_handle_(0),
00041       deadline_timer_id_(-1) {
00042   }

OpenDDS::DCPS::PublicationInstance::~PublicationInstance (  )  [inline]

Definition at line 44 of file PublicationInstance.h.

00044                          {
00045     // Release will decrement the reference count and
00046     // the sample data is released when the reference
00047     // count is 0.
00048     registered_sample_->release();
00049   }


Member Data Documentation

ACE_Time_Value OpenDDS::DCPS::PublicationInstance::cur_sample_tv_

Definition at line 71 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::WriteDataContainer::enqueue(), and OpenDDS::DCPS::OfferedDeadlineWatchdog::execute().

long OpenDDS::DCPS::PublicationInstance::deadline_timer_id_

Definition at line 73 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::OfferedDeadlineWatchdog::cancel_timer(), OpenDDS::DCPS::OfferedDeadlineWatchdog::execute(), and OpenDDS::DCPS::OfferedDeadlineWatchdog::schedule_timer().

CoherencyGroup OpenDDS::DCPS::PublicationInstance::group_id_

The group id. // NOT USED IN FIRST IMPL.

Definition at line 55 of file PublicationInstance.h.

DDS::InstanceHandle_t OpenDDS::DCPS::PublicationInstance::instance_handle_

The instance handle for the registered object.

Definition at line 67 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::OfferedDeadlineWatchdog::execute().

ACE_Time_Value OpenDDS::DCPS::PublicationInstance::last_sample_tv_

Definition at line 69 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::WriteDataContainer::enqueue(), and OpenDDS::DCPS::OfferedDeadlineWatchdog::execute().

DataSample* OpenDDS::DCPS::PublicationInstance::registered_sample_

The sample data for registration.

Definition at line 58 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::WriteDataContainer::dispose(), OpenDDS::DCPS::WriteDataContainer::register_instance(), and OpenDDS::DCPS::WriteDataContainer::unregister().

InstanceDataSampleList OpenDDS::DCPS::PublicationInstance::samples_

History of the instance samples.

Definition at line 61 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::WriteDataContainer::dispose(), OpenDDS::DCPS::WriteDataContainer::enqueue(), OpenDDS::DCPS::WriteDataContainer::num_samples(), and OpenDDS::DCPS::WriteDataContainer::obtain_buffer().

SequenceNumber OpenDDS::DCPS::PublicationInstance::sequence_

The sequence number.

Definition at line 52 of file PublicationInstance.h.

bool OpenDDS::DCPS::PublicationInstance::unregistered_

The flag to indicate whether the instance is unregistered.

Definition at line 64 of file PublicationInstance.h.

Referenced by OpenDDS::DCPS::DataWriterImpl_T< MessageType >::get_or_create_instance_handle(), OpenDDS::DCPS::WriteDataContainer::register_instance(), and OpenDDS::DCPS::WriteDataContainer::unregister().


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:21 2016 for OpenDDS by  doxygen 1.4.7