RawDataSample.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef OPENDDS_DCPS_RAWDATASAMPLE_H
00009 #define OPENDDS_DCPS_RAWDATASAMPLE_H
00010 
00011 #include "dds/DCPS/DataSampleHeader.h"
00012 
00013 #include "ace/Basic_Types.h"
00014 
00015 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00016 class ACE_Message_Block;
00017 ACE_END_VERSIONED_NAMESPACE_DECL
00018 
00019 namespace OpenDDS {
00020 namespace DCPS {
00021 
00022 class OpenDDS_Dcps_Export RawDataSample
00023 {
00024 public:
00025   RawDataSample();
00026   RawDataSample(MessageId,
00027                 ACE_INT32          sec,
00028                 ACE_UINT32         nano_sec,
00029                 PublicationId      pid,
00030                 bool               byte_order,
00031                 ACE_Message_Block* blk);
00032 
00033   RawDataSample(const RawDataSample&);
00034   ~RawDataSample();
00035   RawDataSample& operator=(const RawDataSample&);
00036 
00037   /// The enum inidicating the message type
00038   MessageId message_id_;
00039   /// The timestamp the sender put on the sample
00040   DDS::Time_t source_timestamp_;
00041   /// Id of the datawriter that sent the sample
00042   PublicationId publication_id_;
00043   /// 0 -  Message encoded using big-endian byte order. (see ace/CDR_Base.h)
00044   /// 1 -  Message encoded using little-endian byte order.
00045   bool sample_byte_order_;
00046   /// The data in unspecified format
00047   ACE_Message_Block*       sample_;
00048 };
00049 
00050 } // namespace DCPS
00051 } // namespace OpenDDS
00052 
00053 #endif

Generated on Fri Feb 12 20:05:25 2016 for OpenDDS by  doxygen 1.4.7