OpenDDS::DCPS::ReceivedDataSample Class Reference

Holds a data sample received by the transport. More...

#include <ReceivedDataSample.h>

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

List of all members.

Public Member Functions

 ReceivedDataSample (ACE_Message_Block *payload)
 ReceivedDataSample (const ReceivedDataSample &)
ReceivedDataSampleoperator= (const ReceivedDataSample &)
 ~ReceivedDataSample ()

Public Attributes

DataSampleHeader header_
 The demarshalled sample header.
Message_Block_Ptr sample_
 The "data" part (ie, no "header" part) of the sample.

Detailed Description

Holds a data sample received by the transport.

This is the type of object that is delivered to the TransportReceiveListener objects by the transport. Note that the data sample header has already been demarshalled by the transport, and the ACE_Message_Block (chain) represents the "data" portion of the sample.

Definition at line 33 of file ReceivedDataSample.h.


Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::ReceivedDataSample::ReceivedDataSample ( ACE_Message_Block payload  )  [explicit]

Definition at line 17 of file ReceivedDataSample.inl.

References DBG_ENTRY_LVL.

00018   : sample_(payload)
00019 {
00020   DBG_ENTRY_LVL("ReceivedDataSample", "ReceivedDataSample",6);
00021 }

ACE_INLINE OpenDDS::DCPS::ReceivedDataSample::ReceivedDataSample ( const ReceivedDataSample other  ) 

Definition at line 24 of file ReceivedDataSample.inl.

References DBG_ENTRY_LVL.

00025   : header_(other.header_)
00026   , sample_(ACE_Message_Block::duplicate(other.sample_.get()))
00027 {
00028   DBG_ENTRY_LVL("ReceivedDataSample", "ReceivedDataSample(copy)", 6);
00029 }

ACE_INLINE OpenDDS::DCPS::ReceivedDataSample::~ReceivedDataSample (  ) 

Definition at line 41 of file ReceivedDataSample.inl.

References DBG_ENTRY_LVL.

00042 {
00043   DBG_ENTRY_LVL("ReceivedDataSample", "~ReceivedDataSample", 6);
00044 }


Member Function Documentation

ACE_INLINE ReceivedDataSample & OpenDDS::DCPS::ReceivedDataSample::operator= ( const ReceivedDataSample other  ) 

Definition at line 32 of file ReceivedDataSample.inl.

References DBG_ENTRY_LVL, and OpenDDS::DCPS::swap().

00033 {
00034   DBG_ENTRY_LVL("ReceivedDataSample", "operator=", 6);
00035   ReceivedDataSample cpy(other);
00036   swap(*this, cpy);
00037   return *this;
00038 }

Here is the call graph for this function:


Member Data Documentation


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