CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
dds_builtin_basic.hh
1 /********************************************
2  * DDS type specific header file. *
3  * Autogenerated by CoreDX DDL compiler. *
4  * Do no edit - edits may be overwritten. *
5  ********************************************/
6 
7 #ifndef _DDS_BUILTIN_BASIC_HH
8 #define _DDS_BUILTIN_BASIC_HH
9 #include <string.h>
10 #include <dds/dds.hh>
11 #define DDS_SAFE_UNMARSH 1
12 #include <dds/xcdr.h>
13 #ifdef _MSC_VER
14 # pragma warning(push)
15 # pragma warning(disable:4251)
16 # pragma warning(disable:4996)
17 #endif
18 
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"
25 
26 
27  namespace DDS {
28 
29  struct BuiltinTopicKey_t;
30  class BuiltinTopicKey_tTypeSupport;
31  class BuiltinTopicKey_tDataReader;
32  class BuiltinTopicKey_tDataWriter;
33 
34 /* DDS Data Type SEQUENCE: sequence<DDS::BuiltinTopicKey_t *> */
35 #ifndef _DDS_sequence_cpp_DDS_BuiltinTopicKey_tPtr_defined
36 #define _DDS_sequence_cpp_DDS_BuiltinTopicKey_tPtr_defined
37  DECLARE_CPP_UNBOUNDED_SEQ( DDS::BuiltinTopicKey_t *, BuiltinTopicKey_tPtrSeq );
38 #endif /* DDS Data Type SEQUENCE: sequence<BuiltinTopicKey_tPtrSeq *> */
39 
41  struct COREDX_TS_STRUCT_EXPORT BuiltinTopicKey_t {
42  public:
46  BuiltinTopicKey_t( const BuiltinTopicKey_t & other );
47  BuiltinTopicKey_t& operator=( const BuiltinTopicKey_t & other);
48 
49  void init();
50  void clear();
51  void copy( const DDS::BuiltinTopicKey_t * instance );
52 
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 );
57  // deprecated api:
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);
61 
62  static unsigned char get_field_def(const char * fieldname,
63  CoreDX_FieldDef_t * field_def);
65  int32_t value [3];
66 
67  typedef BuiltinTopicKey_tTypeSupport TypeSupport;
68  typedef BuiltinTopicKey_tDataReader DataReader;
69  typedef BuiltinTopicKey_tDataWriter DataWriter;
70  typedef BuiltinTopicKey_tPtrSeq Seq;
71 
72  private:
73 
74  }; //DDS::BuiltinTopicKey_t
75 
77  typedef unsigned char GuidPrefix_t[12];
78  typedef unsigned char GuidPrefix_t_slice;
79  struct EntityId_t;
80  class EntityId_tTypeSupport;
81  class EntityId_tDataReader;
82  class EntityId_tDataWriter;
83 
84 /* DDS Data Type SEQUENCE: sequence<DDS::EntityId_t *> */
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 );
88 #endif /* DDS Data Type SEQUENCE: sequence<EntityId_tPtrSeq *> */
89 
90  struct COREDX_TS_STRUCT_EXPORT EntityId_t {
91  public:
93  EntityId_t();
94  ~EntityId_t();
95  EntityId_t( const EntityId_t & other );
96  EntityId_t& operator=( const EntityId_t & other);
97 
98  void init();
99  void clear();
100  void copy( const DDS::EntityId_t * instance );
101 
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 );
106  // deprecated api:
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);
110 
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;
117 
118  typedef EntityId_tTypeSupport TypeSupport;
119  typedef EntityId_tDataReader DataReader;
120  typedef EntityId_tDataWriter DataWriter;
121  typedef EntityId_tPtrSeq Seq;
122 
123  private:
124 
125  }; //DDS::EntityId_t
126 
127  struct GUID_t;
128  class GUID_tTypeSupport;
129  class GUID_tDataReader;
130  class GUID_tDataWriter;
131 
132 /* DDS Data Type SEQUENCE: sequence<DDS::GUID_t *> */
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 );
136 #endif /* DDS Data Type SEQUENCE: sequence<GUID_tPtrSeq *> */
137 
140  struct COREDX_TS_STRUCT_EXPORT GUID_t {
141  public:
143  GUID_t();
144  ~GUID_t();
145  GUID_t( const GUID_t & other );
146  GUID_t& operator=( const GUID_t & other);
147 
148  void init();
149  void clear();
150  void copy( const DDS::GUID_t * instance );
151 
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 );
156  // deprecated api:
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);
160 
161  static unsigned char get_field_def(const char * fieldname,
162  CoreDX_FieldDef_t * field_def);
164  unsigned char value [16];
165 
166  typedef GUID_tTypeSupport TypeSupport;
167  typedef GUID_tDataReader DataReader;
168  typedef GUID_tDataWriter DataWriter;
169  typedef GUID_tPtrSeq Seq;
170 
171  private:
172 
173  }; //DDS::GUID_t
174 
175  struct SequenceNumber_t;
176  class SequenceNumber_tTypeSupport;
177  class SequenceNumber_tDataReader;
178  class SequenceNumber_tDataWriter;
179 
180 /* DDS Data Type SEQUENCE: sequence<DDS::SequenceNumber_t *> */
181 #ifndef _DDS_sequence_cpp_DDS_SequenceNumber_tPtr_defined
182 #define _DDS_sequence_cpp_DDS_SequenceNumber_tPtr_defined
183  DECLARE_CPP_UNBOUNDED_SEQ( DDS::SequenceNumber_t *, SequenceNumber_tPtrSeq );
184 #endif /* DDS Data Type SEQUENCE: sequence<SequenceNumber_tPtrSeq *> */
185 
189  struct COREDX_TS_STRUCT_EXPORT SequenceNumber_t {
190  public:
193  ~SequenceNumber_t();
194  SequenceNumber_t( const SequenceNumber_t & other );
195  SequenceNumber_t& operator=( const SequenceNumber_t & other);
196 
197  void init();
198  void clear();
199  void copy( const DDS::SequenceNumber_t * instance );
200 
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 );
205  // deprecated api:
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);
209 
210  static unsigned char get_field_def(const char * fieldname,
211  CoreDX_FieldDef_t * field_def);
213  int32_t high;
215  uint32_t low;
216 
217  typedef SequenceNumber_tTypeSupport TypeSupport;
218  typedef SequenceNumber_tDataReader DataReader;
219  typedef SequenceNumber_tDataWriter DataWriter;
220  typedef SequenceNumber_tPtrSeq Seq;
221 
222  private:
223 
224  }; //DDS::SequenceNumber_t
225 
226  struct SampleIdentity_t;
227  class SampleIdentity_tTypeSupport;
228  class SampleIdentity_tDataReader;
229  class SampleIdentity_tDataWriter;
230 
231 /* DDS Data Type SEQUENCE: sequence<DDS::SampleIdentity_t *> */
232 #ifndef _DDS_sequence_cpp_DDS_SampleIdentity_tPtr_defined
233 #define _DDS_sequence_cpp_DDS_SampleIdentity_tPtr_defined
234  DECLARE_CPP_UNBOUNDED_SEQ( DDS::SampleIdentity_t *, SampleIdentity_tPtrSeq );
235 #endif /* DDS Data Type SEQUENCE: sequence<SampleIdentity_tPtrSeq *> */
236 
238  struct COREDX_TS_STRUCT_EXPORT SampleIdentity_t {
239  public:
242  ~SampleIdentity_t();
243  SampleIdentity_t( const SampleIdentity_t & other );
244  SampleIdentity_t& operator=( const SampleIdentity_t & other);
245 
246  void init();
247  void clear();
248  void copy( const DDS::SampleIdentity_t * instance );
249 
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 );
254  // deprecated api:
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);
258 
259  static unsigned char get_field_def(const char * fieldname,
260  CoreDX_FieldDef_t * field_def);
262  struct DDS::GUID_t guid;
264  struct DDS::SequenceNumber_t seqnum;
265 
266  typedef SampleIdentity_tTypeSupport TypeSupport;
267  typedef SampleIdentity_tDataReader DataReader;
268  typedef SampleIdentity_tDataWriter DataWriter;
269  typedef SampleIdentity_tPtrSeq Seq;
270 
271  private:
272 
273  }; //DDS::SampleIdentity_t
274 
275  struct Duration_t;
276  class Duration_tTypeSupport;
277  class Duration_tDataReader;
278  class Duration_tDataWriter;
279 
280 /* DDS Data Type SEQUENCE: sequence<DDS::Duration_t *> */
281 #ifndef _DDS_sequence_cpp_DDS_Duration_tPtr_defined
282 #define _DDS_sequence_cpp_DDS_Duration_tPtr_defined
283  DECLARE_CPP_UNBOUNDED_SEQ( DDS::Duration_t *, Duration_tPtrSeq );
284 #endif /* DDS Data Type SEQUENCE: sequence<Duration_tPtrSeq *> */
285 
289  struct COREDX_TS_STRUCT_EXPORT Duration_t {
290  public:
292  Duration_t();
293  ~Duration_t();
294  Duration_t( const Duration_t & other );
295  Duration_t& operator=( const Duration_t & other);
296 
297  void init();
298  void clear();
299  void copy( const DDS::Duration_t * instance );
300 
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 );
305  // deprecated api:
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);
309 
310  static unsigned char get_field_def(const char * fieldname,
311  CoreDX_FieldDef_t * field_def);
312  int32_t sec;
313  uint32_t nanosec;
314 
315  typedef Duration_tTypeSupport TypeSupport;
316  typedef Duration_tDataReader DataReader;
317  typedef Duration_tDataWriter DataWriter;
318  typedef Duration_tPtrSeq Seq;
319 
320  private:
321 
322  public:
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; }
325 
326  }; //DDS::Duration_t
327 
328 
329  } /* namespace DDS */
330 
331 #ifdef _MSC_VER
332 # pragma warning(pop)
333 #endif
334 #endif
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

© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.