OpenDDS::DCPS::RawDataSample Class Reference

#include <RawDataSample.h>

Collaboration diagram for OpenDDS::DCPS::RawDataSample:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RawDataSample ()
 RawDataSample (MessageId, ACE_INT32 sec, ACE_UINT32 nano_sec, PublicationId pid, bool byte_order, ACE_Message_Block *blk)
 RawDataSample (const RawDataSample &)
 ~RawDataSample ()
RawDataSampleoperator= (const RawDataSample &)

Public Attributes

MessageId message_id_
 The enum inidicating the message type.
DDS::Time_t source_timestamp_
 The timestamp the sender put on the sample.
PublicationId publication_id_
 Id of the datawriter that sent the sample.
bool sample_byte_order_
ACE_Message_Block * sample_
 The data in unspecified format.

Detailed Description

Definition at line 22 of file RawDataSample.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::RawDataSample::RawDataSample (  ) 

Definition at line 14 of file RawDataSample.cpp.

References DDS::Time_t::nanosec, DDS::Time_t::sec, and source_timestamp_.

00015   : message_id_(SAMPLE_DATA)
00016   , publication_id_(GUID_UNKNOWN)
00017   , sample_byte_order_(0)
00018   , sample_(0)
00019 {
00020   source_timestamp_.sec = 0;
00021   source_timestamp_.nanosec = 0;
00022 }

OpenDDS::DCPS::RawDataSample::RawDataSample ( MessageId  ,
ACE_INT32  sec,
ACE_UINT32  nano_sec,
PublicationId  pid,
bool  byte_order,
ACE_Message_Block *  blk 
)

Definition at line 24 of file RawDataSample.cpp.

References DDS::Time_t::nanosec, DDS::Time_t::sec, and source_timestamp_.

00030   : message_id_(mid)
00031   , publication_id_(pid)
00032   , sample_byte_order_(byte_order)
00033   , sample_(blk->duplicate())
00034 {
00035   source_timestamp_.sec = sec;
00036   source_timestamp_.nanosec = nano_sec;
00037 }

OpenDDS::DCPS::RawDataSample::RawDataSample ( const RawDataSample  ) 

Definition at line 45 of file RawDataSample.cpp.

00046   : message_id_(other.message_id_)
00047   , source_timestamp_(other.source_timestamp_)
00048   , publication_id_(other.publication_id_)
00049   , sample_byte_order_(other.sample_byte_order_)
00050   , sample_(other.sample_->duplicate())
00051 {
00052 }

OpenDDS::DCPS::RawDataSample::~RawDataSample (  ) 

Definition at line 39 of file RawDataSample.cpp.

References sample_.

00040 {
00041   if (sample_)
00042     sample_->release();
00043 }


Member Function Documentation

RawDataSample & OpenDDS::DCPS::RawDataSample::operator= ( const RawDataSample  ) 

Definition at line 56 of file RawDataSample.cpp.

References OpenDDS::DCPS::swap().

00057 {
00058   RawDataSample tmp(other);
00059   std::swap(*this, tmp);
00060   return *this;
00061 }


Member Data Documentation

MessageId OpenDDS::DCPS::RawDataSample::message_id_

The enum inidicating the message type.

Definition at line 38 of file RawDataSample.h.

PublicationId OpenDDS::DCPS::RawDataSample::publication_id_

Id of the datawriter that sent the sample.

Definition at line 42 of file RawDataSample.h.

ACE_Message_Block* OpenDDS::DCPS::RawDataSample::sample_

The data in unspecified format.

Definition at line 47 of file RawDataSample.h.

Referenced by ~RawDataSample().

bool OpenDDS::DCPS::RawDataSample::sample_byte_order_

0 - Message encoded using big-endian byte order. (see ace/CDR_Base.h) 1 - Message encoded using little-endian byte order.

Definition at line 45 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::ReplayerImpl::write().

DDS::Time_t OpenDDS::DCPS::RawDataSample::source_timestamp_

The timestamp the sender put on the sample.

Definition at line 40 of file RawDataSample.h.

Referenced by RawDataSample(), and OpenDDS::DCPS::ReplayerImpl::write().


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