OpenDDS  Snapshot(2023/04/28-20:55)
RawDataSample.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_RAWDATASAMPLE_H
9 #define OPENDDS_DCPS_RAWDATASAMPLE_H
10 
11 #include "DataSampleHeader.h"
12 
13 #include "ace/Basic_Types.h"
14 
16 class ACE_Message_Block;
18 
20 
21 namespace OpenDDS {
22 namespace DCPS {
23 
25 {
26 public:
27  RawDataSample();
29  MessageId,
30  ACE_INT32 sec,
31  ACE_UINT32 nano_sec,
32  GUID_t pid,
33  bool byte_order,
34  ACE_Message_Block* blk,
35  Encoding::Kind encoding_kind);
36 
38  ~RawDataSample();
39  RawDataSample& operator=(const RawDataSample&);
40 
41  /// The sample data header
43  /// The enum indicating the message type
45  /// The timestamp the sender put on the sample
47  /// Id of the datawriter that sent the sample
49  /// false - Message encoded using big-endian byte order. (see ace/CDR_Base.h)
50  /// true - Message encoded using little-endian byte order.
52  /// The data in unspecified format
54  /// Holds information on which type of encoding was read from the encapsulation header
56 };
57 
58 void swap(RawDataSample& lhs, RawDataSample& rhs);
59 
60 } // namespace DCPS
61 } // namespace OpenDDS
62 
64 
65 #endif
#define ACE_BEGIN_VERSIONED_NAMESPACE_DECL
void swap(MessageBlock &lhs, MessageBlock &rhs)
MessageId message_id_
The enum indicating the message type.
Definition: RawDataSample.h:44
Message_Block_Ptr sample_
The data in unspecified format.
Definition: RawDataSample.h:53
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
GUID_t publication_id_
Id of the datawriter that sent the sample.
Definition: RawDataSample.h:48
MessageId
One byte message id (<256)
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
#define ACE_END_VERSIONED_NAMESPACE_DECL
DataSampleHeader header_
The sample data header.
Definition: RawDataSample.h:42
DDS::Time_t source_timestamp_
The timestamp the sender put on the sample.
Definition: RawDataSample.h:46
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
Encoding::Kind encoding_kind_
Holds information on which type of encoding was read from the encapsulation header.
Definition: RawDataSample.h:55