OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::RawDataSample Class Reference

#include <RawDataSample.h>

Collaboration diagram for OpenDDS::DCPS::RawDataSample:
Collaboration graph
[legend]

Public Member Functions

 RawDataSample ()
 
 RawDataSample (const DataSampleHeader &header, MessageId, ACE_INT32 sec, ACE_UINT32 nano_sec, GUID_t pid, bool byte_order, ACE_Message_Block *blk, Encoding::Kind encoding_kind)
 
 RawDataSample (const RawDataSample &)
 
 ~RawDataSample ()
 
RawDataSampleoperator= (const RawDataSample &)
 

Public Attributes

DataSampleHeader header_
 The sample data header. More...
 
MessageId message_id_
 The enum indicating the message type. More...
 
DDS::Time_t source_timestamp_
 The timestamp the sender put on the sample. More...
 
GUID_t publication_id_
 Id of the datawriter that sent the sample. More...
 
bool sample_byte_order_
 
Message_Block_Ptr sample_
 The data in unspecified format. More...
 
Encoding::Kind encoding_kind_
 Holds information on which type of encoding was read from the encapsulation header. More...
 

Detailed Description

Definition at line 24 of file RawDataSample.h.

Constructor & Destructor Documentation

◆ RawDataSample() [1/3]

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

Definition at line 13 of file RawDataSample.cpp.

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

16  , sample_byte_order_(false)
18 {
21 }
unsigned long nanosec
DDS::Time_t source_timestamp_
The timestamp the sender put on the sample.
Definition: RawDataSample.h:46
const GUID_t GUID_UNKNOWN
Nil value for GUID.
Definition: GuidUtils.h:59
MessageId message_id_
The enum indicating the message type.
Definition: RawDataSample.h:44
Encoding::Kind encoding_kind_
Holds information on which type of encoding was read from the encapsulation header.
Definition: RawDataSample.h:55
GUID_t publication_id_
Id of the datawriter that sent the sample.
Definition: RawDataSample.h:48

◆ RawDataSample() [2/3]

OpenDDS::DCPS::RawDataSample::RawDataSample ( const DataSampleHeader header,
MessageId  mid,
ACE_INT32  sec,
ACE_UINT32  nano_sec,
GUID_t  pid,
bool  byte_order,
ACE_Message_Block blk,
Encoding::Kind  encoding_kind 
)

Definition at line 23 of file RawDataSample.cpp.

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

31  : header_(header)
32  , message_id_(mid)
33  , publication_id_(pid)
34  , sample_byte_order_(byte_order)
35  , sample_(blk->duplicate())
36  , encoding_kind_(encoding_kind)
37 {
38  source_timestamp_.sec = sec;
39  source_timestamp_.nanosec = nano_sec;
40 }
unsigned long nanosec
DDS::Time_t source_timestamp_
The timestamp the sender put on the sample.
Definition: RawDataSample.h:46
Christopher Diggins *renamed files *fixing compilation errors *adding Visual C project file *removed make Max Lybbert *removed references to missing and unused header
Definition: CHANGELOG.txt:8
virtual ACE_Message_Block * duplicate(void) const
MessageId message_id_
The enum indicating the message type.
Definition: RawDataSample.h:44
Encoding::Kind encoding_kind_
Holds information on which type of encoding was read from the encapsulation header.
Definition: RawDataSample.h:55
Message_Block_Ptr sample_
The data in unspecified format.
Definition: RawDataSample.h:53
DataSampleHeader header_
The sample data header.
Definition: RawDataSample.h:42
GUID_t publication_id_
Id of the datawriter that sent the sample.
Definition: RawDataSample.h:48

◆ RawDataSample() [3/3]

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

Definition at line 46 of file RawDataSample.cpp.

47  : header_(other.header_)
48  , message_id_(other.message_id_)
49  , source_timestamp_(other.source_timestamp_)
50  , publication_id_(other.publication_id_)
51  , sample_byte_order_(other.sample_byte_order_)
52  , sample_(other.sample_->duplicate())
53  , encoding_kind_(other.encoding_kind_)
54 {
55 }
DDS::Time_t source_timestamp_
The timestamp the sender put on the sample.
Definition: RawDataSample.h:46
MessageId message_id_
The enum indicating the message type.
Definition: RawDataSample.h:44
Encoding::Kind encoding_kind_
Holds information on which type of encoding was read from the encapsulation header.
Definition: RawDataSample.h:55
Message_Block_Ptr sample_
The data in unspecified format.
Definition: RawDataSample.h:53
DataSampleHeader header_
The sample data header.
Definition: RawDataSample.h:42
GUID_t publication_id_
Id of the datawriter that sent the sample.
Definition: RawDataSample.h:48

◆ ~RawDataSample()

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

Definition at line 42 of file RawDataSample.cpp.

43 {
44 }

Member Function Documentation

◆ operator=()

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

Definition at line 58 of file RawDataSample.cpp.

References OpenDDS::DCPS::swap().

59 {
60  RawDataSample tmp(other);
61  swap(*this, tmp);
62  return *this;
63 }
void swap(MessageBlock &lhs, MessageBlock &rhs)

Member Data Documentation

◆ encoding_kind_

Encoding::Kind OpenDDS::DCPS::RawDataSample::encoding_kind_

Holds information on which type of encoding was read from the encapsulation header.

Definition at line 55 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::RecorderImpl::get_dynamic_data(), and OpenDDS::DCPS::swap().

◆ header_

DataSampleHeader OpenDDS::DCPS::RawDataSample::header_

The sample data header.

Definition at line 42 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::RecorderImpl::get_dynamic_data(), and OpenDDS::DCPS::swap().

◆ message_id_

MessageId OpenDDS::DCPS::RawDataSample::message_id_

The enum indicating the message type.

Definition at line 44 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::swap().

◆ publication_id_

GUID_t OpenDDS::DCPS::RawDataSample::publication_id_

Id of the datawriter that sent the sample.

Definition at line 48 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::RecorderImpl::get_dynamic_data(), and OpenDDS::DCPS::swap().

◆ sample_

Message_Block_Ptr OpenDDS::DCPS::RawDataSample::sample_

The data in unspecified format.

Definition at line 53 of file RawDataSample.h.

Referenced by OpenDDS::DCPS::RecorderImpl::get_dynamic_data(), and OpenDDS::DCPS::swap().

◆ sample_byte_order_

bool OpenDDS::DCPS::RawDataSample::sample_byte_order_

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

Definition at line 51 of file RawDataSample.h.

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

◆ source_timestamp_

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

The timestamp the sender put on the sample.

Definition at line 46 of file RawDataSample.h.

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


The documentation for this class was generated from the following files: