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 indicating 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_
Message_Block_Ptr sample_
 The data in unspecified format.

Detailed Description

Definition at line 24 of file RawDataSample.h.


Constructor & Destructor Documentation

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

Definition at line 16 of file RawDataSample.cpp.

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

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

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

Definition at line 25 of file RawDataSample.cpp.

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

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

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

Definition at line 44 of file RawDataSample.cpp.

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

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

Definition at line 40 of file RawDataSample.cpp.

00041 {
00042 }


Member Function Documentation

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

Definition at line 55 of file RawDataSample.cpp.

References OpenDDS::DCPS::swap().

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

Here is the call graph for this function:


Member Data Documentation

The enum indicating the message type.

Definition at line 40 of file RawDataSample.h.

Id of the datawriter that sent the sample.

Definition at line 44 of file RawDataSample.h.

The data in unspecified format.

Definition at line 49 of file RawDataSample.h.

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

Definition at line 47 of file RawDataSample.h.

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

The timestamp the sender put on the sample.

Definition at line 42 of file RawDataSample.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1