7 #ifndef _DDS_BUILTIN_BASIC_HH 8 #define _DDS_BUILTIN_BASIC_HH 11 #define DDS_SAFE_UNMARSH 1 14 # pragma warning(push) 15 # pragma warning(disable:4251) 16 # pragma warning(disable:4996) 19 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_MAJOR 5 20 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_MINOR 0 21 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_PATCH 0 22 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_MAJOR_STR "5" 23 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_MINOR_STR "0" 24 # define DDS_BUILTIN_BASIC_CPP_DDL_VERSION_PATCH_STR "0" 30 class BuiltinTopicKey_tTypeSupport;
31 class BuiltinTopicKey_tDataReader;
32 class BuiltinTopicKey_tDataWriter;
35 #ifndef _DDS_sequence_cpp_DDS_BuiltinTopicKey_tPtr_defined 36 #define _DDS_sequence_cpp_DDS_BuiltinTopicKey_tPtr_defined 53 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
54 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
55 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
56 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
58 int get_marshal_size(
int offset,
int just_keys)
const;
59 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
60 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
62 static unsigned char get_field_def(
const char * fieldname,
63 CoreDX_FieldDef_t * field_def);
67 typedef BuiltinTopicKey_tTypeSupport TypeSupport;
68 typedef BuiltinTopicKey_tDataReader DataReader;
69 typedef BuiltinTopicKey_tDataWriter DataWriter;
70 typedef BuiltinTopicKey_tPtrSeq Seq;
78 typedef unsigned char GuidPrefix_t_slice;
80 class EntityId_tTypeSupport;
81 class EntityId_tDataReader;
82 class EntityId_tDataWriter;
85 #ifndef _DDS_sequence_cpp_DDS_EntityId_tPtr_defined 86 #define _DDS_sequence_cpp_DDS_EntityId_tPtr_defined 87 DECLARE_CPP_UNBOUNDED_SEQ( DDS::EntityId_t *, EntityId_tPtrSeq );
90 struct COREDX_TS_STRUCT_EXPORT EntityId_t {
95 EntityId_t(
const EntityId_t & other );
96 EntityId_t& operator=(
const EntityId_t & other);
100 void copy(
const DDS::EntityId_t * instance );
102 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
103 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
104 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
105 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
107 int get_marshal_size(
int offset,
int just_keys)
const;
108 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
109 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
111 static unsigned char get_field_def(
const char * fieldname,
112 CoreDX_FieldDef_t * field_def);
114 unsigned char entityKey [3];
116 unsigned char entityKind;
118 typedef EntityId_tTypeSupport TypeSupport;
121 typedef EntityId_tPtrSeq Seq;
128 class GUID_tTypeSupport;
129 class GUID_tDataReader;
130 class GUID_tDataWriter;
133 #ifndef _DDS_sequence_cpp_DDS_GUID_tPtr_defined 134 #define _DDS_sequence_cpp_DDS_GUID_tPtr_defined 135 DECLARE_CPP_UNBOUNDED_SEQ(
DDS::GUID_t *, GUID_tPtrSeq );
152 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
153 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
154 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
155 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
157 int get_marshal_size(
int offset,
int just_keys)
const;
158 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
159 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
161 static unsigned char get_field_def(
const char * fieldname,
162 CoreDX_FieldDef_t * field_def);
164 unsigned char value [16];
166 typedef GUID_tTypeSupport TypeSupport;
167 typedef GUID_tDataReader DataReader;
168 typedef GUID_tDataWriter DataWriter;
169 typedef GUID_tPtrSeq Seq;
176 class SequenceNumber_tTypeSupport;
177 class SequenceNumber_tDataReader;
178 class SequenceNumber_tDataWriter;
181 #ifndef _DDS_sequence_cpp_DDS_SequenceNumber_tPtr_defined 182 #define _DDS_sequence_cpp_DDS_SequenceNumber_tPtr_defined 201 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
202 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
203 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
204 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
206 int get_marshal_size(
int offset,
int just_keys)
const;
207 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
208 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
210 static unsigned char get_field_def(
const char * fieldname,
211 CoreDX_FieldDef_t * field_def);
217 typedef SequenceNumber_tTypeSupport TypeSupport;
218 typedef SequenceNumber_tDataReader DataReader;
219 typedef SequenceNumber_tDataWriter DataWriter;
220 typedef SequenceNumber_tPtrSeq Seq;
227 class SampleIdentity_tTypeSupport;
228 class SampleIdentity_tDataReader;
229 class SampleIdentity_tDataWriter;
232 #ifndef _DDS_sequence_cpp_DDS_SampleIdentity_tPtr_defined 233 #define _DDS_sequence_cpp_DDS_SampleIdentity_tPtr_defined 250 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
251 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
252 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
253 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
255 int get_marshal_size(
int offset,
int just_keys)
const;
256 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
257 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
259 static unsigned char get_field_def(
const char * fieldname,
260 CoreDX_FieldDef_t * field_def);
266 typedef SampleIdentity_tTypeSupport TypeSupport;
267 typedef SampleIdentity_tDataReader DataReader;
268 typedef SampleIdentity_tDataWriter DataWriter;
269 typedef SampleIdentity_tPtrSeq Seq;
276 class Duration_tTypeSupport;
277 class Duration_tDataReader;
278 class Duration_tDataWriter;
281 #ifndef _DDS_sequence_cpp_DDS_Duration_tPtr_defined 282 #define _DDS_sequence_cpp_DDS_Duration_tPtr_defined 301 int marshal_cdr( CDX_XcdrBuffer_t *cdr,
int just_keys)
const ;
302 int marshal_key_hash( CDX_XcdrBuffer_t * cdr )
const;
303 int unmarshal_cdr( CDX_XcdrBuffer_t * cdr,
int just_keys);
304 int unmarshal_key_hash( CDX_XcdrBuffer_t * cdr );
306 int get_marshal_size(
int offset,
int just_keys)
const;
307 int marshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys)
const ;
308 int unmarshal_cdr(
unsigned char * buf,
int offset,
int stream_len,
unsigned char swap,
int just_keys);
310 static unsigned char get_field_def(
const char * fieldname,
311 CoreDX_FieldDef_t * field_def);
315 typedef Duration_tTypeSupport TypeSupport;
316 typedef Duration_tDataReader DataReader;
317 typedef Duration_tDataWriter DataWriter;
318 typedef Duration_tPtrSeq Seq;
323 Duration_t( int32_t s, uint32_t nsec ) : sec(s), nanosec(nsec) {}
324 operator DDS_Duration_t () { DDS_Duration_t retval; retval.sec = sec; retval.nanosec=nanosec;
return retval; }
332 # pragma warning(pop) The DataWriter entity provides an interface for the application to publish (write) data...
Definition: dds.hh:2233
int32_t high
Definition: dds_builtin_basic.hh:213
Definition: dds_builtin_basic.hh:140
The DataReader entity allows the application to subscribe to and read data.
Definition: dds.hh:2520
Definition: dds_builtin_basic.hh:41
Provides the DDS infrastructure.
Definition: dds_builtin_basic.hh:27
uint32_t low
Definition: dds_builtin_basic.hh:215
unsigned char GuidPrefix_t[12]
Definition: dds_builtin_basic.hh:77
Definition: dds_builtin_basic.hh:238
Definition: dds_builtin_basic.hh:189
The Duration_t structure contains data to define a time duration.
Definition: dds_builtin_basic.hh:289