#include <RawDataSample.h>
Collaboration diagram for OpenDDS::DCPS::RawDataSample:
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 () | |
RawDataSample & | operator= (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. |
Definition at line 22 of file RawDataSample.h.
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 | ( | ) |
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 }
ACE_Message_Block* OpenDDS::DCPS::RawDataSample::sample_ |
The data in unspecified format.
Definition at line 47 of file RawDataSample.h.
Referenced by ~RawDataSample().
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().
The timestamp the sender put on the sample.
Definition at line 40 of file RawDataSample.h.
Referenced by RawDataSample(), and OpenDDS::DCPS::ReplayerImpl::write().