CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
dds_builtin_basic.h
Go to the documentation of this file.
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_H
8 #define _DDS_BUILTIN_BASIC_H
9 #include <dds/dds_types.h>
10 #include <dds/dds_export.h>
11 #define DDS_SAFE_UNMARSH 1
12 #include <dds/xcdr.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 # define DDS_BUILTIN_BASIC_DDL_VERSION_MAJOR 5
19 # define DDS_BUILTIN_BASIC_DDL_VERSION_MINOR 0
20 # define DDS_BUILTIN_BASIC_DDL_VERSION_PATCH 0
21 # define DDS_BUILTIN_BASIC_DDL_VERSION_MAJOR_STR "5"
22 # define DDS_BUILTIN_BASIC_DDL_VERSION_MINOR_STR "0"
23 # define DDS_BUILTIN_BASIC_DDL_VERSION_PATCH_STR "0"
24 
27  /* Namespace DDS begins here */
28 
30  typedef struct DDS_BuiltinTopicKey_t {
32  int32_t value [3];
34 
35  COREDX_TS_EXPORT struct DDS_BuiltinTopicKey_t *DDS_BuiltinTopicKey_t_alloc ( void );
36 # define DDS_BuiltinTopicKey_t__alloc DDS_BuiltinTopicKey_t_alloc /* discouraged */
37  COREDX_TS_EXPORT void DDS_BuiltinTopicKey_t_free ( struct DDS_BuiltinTopicKey_t * inst );
38  COREDX_TS_EXPORT void DDS_BuiltinTopicKey_t_init ( struct DDS_BuiltinTopicKey_t * instance );
39  COREDX_TS_EXPORT void DDS_BuiltinTopicKey_t_clear( struct DDS_BuiltinTopicKey_t * instance );
40  COREDX_TS_EXPORT void DDS_BuiltinTopicKey_t_copy ( struct DDS_BuiltinTopicKey_t * copy_to, const struct DDS_BuiltinTopicKey_t * copy_from );
41  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_marshal_cdr ( const struct DDS_BuiltinTopicKey_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
42  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_marshal_key_hash ( const struct DDS_BuiltinTopicKey_t * inst, CDX_XcdrBuffer_t * cdr );
43  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_unmarshal_cdr ( struct DDS_BuiltinTopicKey_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
44  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_unmarshal_key_hash ( struct DDS_BuiltinTopicKey_t * inst, CDX_XcdrBuffer_t * cdr );
45  /* deprecated, older api */
46  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_get_marshal_size_legacy ( const struct DDS_BuiltinTopicKey_t * inst, int offset, int just_keys );
47  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_marshal_cdr_legacy ( const struct DDS_BuiltinTopicKey_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
48  COREDX_TS_EXPORT int DDS_BuiltinTopicKey_t_unmarshal_cdr_legacy ( struct DDS_BuiltinTopicKey_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
49 
50  COREDX_TS_EXPORT unsigned char DDS_BuiltinTopicKey_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
51 
52 
53 /* DDS Data Type SEQUENCE: sequence<DDS_BuiltinTopicKey_t *> */
54 #ifndef _DDS_sequence_c_DDS_BuiltinTopicKey_tPtr_defined
55 #define _DDS_sequence_c_DDS_BuiltinTopicKey_tPtr_defined
56  DECLARE_SEQ( DDS_BuiltinTopicKey_t * , DDS_BuiltinTopicKey_tPtrSeq );
57 #endif /* DDS Data Type SEQUENCE: sequence<DDS_BuiltinTopicKey_tPtrSeq *> */
58 
59 
61  typedef unsigned char DDS_GuidPrefix_t[12];
62  typedef unsigned char DDS_GuidPrefix_t_slice;
63  typedef struct DDS_EntityId_t {
65  unsigned char entityKey [3];
67  unsigned char entityKind;
68  } DDS_EntityId_t;
69 
70  COREDX_TS_EXPORT struct DDS_EntityId_t *DDS_EntityId_t_alloc ( void );
71 # define DDS_EntityId_t__alloc DDS_EntityId_t_alloc /* discouraged */
72  COREDX_TS_EXPORT void DDS_EntityId_t_free ( struct DDS_EntityId_t * inst );
73  COREDX_TS_EXPORT void DDS_EntityId_t_init ( struct DDS_EntityId_t * instance );
74  COREDX_TS_EXPORT void DDS_EntityId_t_clear( struct DDS_EntityId_t * instance );
75  COREDX_TS_EXPORT void DDS_EntityId_t_copy ( struct DDS_EntityId_t * copy_to, const struct DDS_EntityId_t * copy_from );
76  COREDX_TS_EXPORT int DDS_EntityId_t_marshal_cdr ( const struct DDS_EntityId_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
77  COREDX_TS_EXPORT int DDS_EntityId_t_marshal_key_hash ( const struct DDS_EntityId_t * inst, CDX_XcdrBuffer_t * cdr );
78  COREDX_TS_EXPORT int DDS_EntityId_t_unmarshal_cdr ( struct DDS_EntityId_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
79  COREDX_TS_EXPORT int DDS_EntityId_t_unmarshal_key_hash ( struct DDS_EntityId_t * inst, CDX_XcdrBuffer_t * cdr );
80  /* deprecated, older api */
81  COREDX_TS_EXPORT int DDS_EntityId_t_get_marshal_size_legacy ( const struct DDS_EntityId_t * inst, int offset, int just_keys );
82  COREDX_TS_EXPORT int DDS_EntityId_t_marshal_cdr_legacy ( const struct DDS_EntityId_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
83  COREDX_TS_EXPORT int DDS_EntityId_t_unmarshal_cdr_legacy ( struct DDS_EntityId_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
84 
85  COREDX_TS_EXPORT unsigned char DDS_EntityId_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
86 
87 
88 /* DDS Data Type SEQUENCE: sequence<DDS_EntityId_t *> */
89 #ifndef _DDS_sequence_c_DDS_EntityId_tPtr_defined
90 #define _DDS_sequence_c_DDS_EntityId_tPtr_defined
91  DECLARE_SEQ( DDS_EntityId_t * , DDS_EntityId_tPtrSeq );
92 #endif /* DDS Data Type SEQUENCE: sequence<DDS_EntityId_tPtrSeq *> */
93 
94 
97  typedef struct DDS_GUID_t {
99  unsigned char value [16];
100  } DDS_GUID_t;
101 
102  COREDX_TS_EXPORT struct DDS_GUID_t *DDS_GUID_t_alloc ( void );
103 # define DDS_GUID_t__alloc DDS_GUID_t_alloc /* discouraged */
104  COREDX_TS_EXPORT void DDS_GUID_t_free ( struct DDS_GUID_t * inst );
105  COREDX_TS_EXPORT void DDS_GUID_t_init ( struct DDS_GUID_t * instance );
106  COREDX_TS_EXPORT void DDS_GUID_t_clear( struct DDS_GUID_t * instance );
107  COREDX_TS_EXPORT void DDS_GUID_t_copy ( struct DDS_GUID_t * copy_to, const struct DDS_GUID_t * copy_from );
108  COREDX_TS_EXPORT int DDS_GUID_t_marshal_cdr ( const struct DDS_GUID_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
109  COREDX_TS_EXPORT int DDS_GUID_t_marshal_key_hash ( const struct DDS_GUID_t * inst, CDX_XcdrBuffer_t * cdr );
110  COREDX_TS_EXPORT int DDS_GUID_t_unmarshal_cdr ( struct DDS_GUID_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
111  COREDX_TS_EXPORT int DDS_GUID_t_unmarshal_key_hash ( struct DDS_GUID_t * inst, CDX_XcdrBuffer_t * cdr );
112  /* deprecated, older api */
113  COREDX_TS_EXPORT int DDS_GUID_t_get_marshal_size_legacy ( const struct DDS_GUID_t * inst, int offset, int just_keys );
114  COREDX_TS_EXPORT int DDS_GUID_t_marshal_cdr_legacy ( const struct DDS_GUID_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
115  COREDX_TS_EXPORT int DDS_GUID_t_unmarshal_cdr_legacy ( struct DDS_GUID_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
116 
117  COREDX_TS_EXPORT unsigned char DDS_GUID_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
118 
119 
120 /* DDS Data Type SEQUENCE: sequence<DDS_GUID_t *> */
121 #ifndef _DDS_sequence_c_DDS_GUID_tPtr_defined
122 #define _DDS_sequence_c_DDS_GUID_tPtr_defined
123  DECLARE_SEQ( DDS_GUID_t * , DDS_GUID_tPtrSeq );
124 #endif /* DDS Data Type SEQUENCE: sequence<DDS_GUID_tPtrSeq *> */
125 
126 
130  typedef struct DDS_SequenceNumber_t {
132  int32_t high;
134  uint32_t low;
136 
137  COREDX_TS_EXPORT struct DDS_SequenceNumber_t *DDS_SequenceNumber_t_alloc ( void );
138 # define DDS_SequenceNumber_t__alloc DDS_SequenceNumber_t_alloc /* discouraged */
139  COREDX_TS_EXPORT void DDS_SequenceNumber_t_free ( struct DDS_SequenceNumber_t * inst );
140  COREDX_TS_EXPORT void DDS_SequenceNumber_t_init ( struct DDS_SequenceNumber_t * instance );
141  COREDX_TS_EXPORT void DDS_SequenceNumber_t_clear( struct DDS_SequenceNumber_t * instance );
142  COREDX_TS_EXPORT void DDS_SequenceNumber_t_copy ( struct DDS_SequenceNumber_t * copy_to, const struct DDS_SequenceNumber_t * copy_from );
143  COREDX_TS_EXPORT int DDS_SequenceNumber_t_marshal_cdr ( const struct DDS_SequenceNumber_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
144  COREDX_TS_EXPORT int DDS_SequenceNumber_t_marshal_key_hash ( const struct DDS_SequenceNumber_t * inst, CDX_XcdrBuffer_t * cdr );
145  COREDX_TS_EXPORT int DDS_SequenceNumber_t_unmarshal_cdr ( struct DDS_SequenceNumber_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
146  COREDX_TS_EXPORT int DDS_SequenceNumber_t_unmarshal_key_hash ( struct DDS_SequenceNumber_t * inst, CDX_XcdrBuffer_t * cdr );
147  /* deprecated, older api */
148  COREDX_TS_EXPORT int DDS_SequenceNumber_t_get_marshal_size_legacy ( const struct DDS_SequenceNumber_t * inst, int offset, int just_keys );
149  COREDX_TS_EXPORT int DDS_SequenceNumber_t_marshal_cdr_legacy ( const struct DDS_SequenceNumber_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
150  COREDX_TS_EXPORT int DDS_SequenceNumber_t_unmarshal_cdr_legacy ( struct DDS_SequenceNumber_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
151 
152  COREDX_TS_EXPORT unsigned char DDS_SequenceNumber_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
153 
154 
155 /* DDS Data Type SEQUENCE: sequence<DDS_SequenceNumber_t *> */
156 #ifndef _DDS_sequence_c_DDS_SequenceNumber_tPtr_defined
157 #define _DDS_sequence_c_DDS_SequenceNumber_tPtr_defined
158  DECLARE_SEQ( DDS_SequenceNumber_t * , DDS_SequenceNumber_tPtrSeq );
159 #endif /* DDS Data Type SEQUENCE: sequence<DDS_SequenceNumber_tPtrSeq *> */
160 
161 
163  typedef struct DDS_SampleIdentity_t {
165  struct DDS_GUID_t guid;
167  struct DDS_SequenceNumber_t seqnum;
169 
170  COREDX_TS_EXPORT struct DDS_SampleIdentity_t *DDS_SampleIdentity_t_alloc ( void );
171 # define DDS_SampleIdentity_t__alloc DDS_SampleIdentity_t_alloc /* discouraged */
172  COREDX_TS_EXPORT void DDS_SampleIdentity_t_free ( struct DDS_SampleIdentity_t * inst );
173  COREDX_TS_EXPORT void DDS_SampleIdentity_t_init ( struct DDS_SampleIdentity_t * instance );
174  COREDX_TS_EXPORT void DDS_SampleIdentity_t_clear( struct DDS_SampleIdentity_t * instance );
175  COREDX_TS_EXPORT void DDS_SampleIdentity_t_copy ( struct DDS_SampleIdentity_t * copy_to, const struct DDS_SampleIdentity_t * copy_from );
176  COREDX_TS_EXPORT int DDS_SampleIdentity_t_marshal_cdr ( const struct DDS_SampleIdentity_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
177  COREDX_TS_EXPORT int DDS_SampleIdentity_t_marshal_key_hash ( const struct DDS_SampleIdentity_t * inst, CDX_XcdrBuffer_t * cdr );
178  COREDX_TS_EXPORT int DDS_SampleIdentity_t_unmarshal_cdr ( struct DDS_SampleIdentity_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
179  COREDX_TS_EXPORT int DDS_SampleIdentity_t_unmarshal_key_hash ( struct DDS_SampleIdentity_t * inst, CDX_XcdrBuffer_t * cdr );
180  /* deprecated, older api */
181  COREDX_TS_EXPORT int DDS_SampleIdentity_t_get_marshal_size_legacy ( const struct DDS_SampleIdentity_t * inst, int offset, int just_keys );
182  COREDX_TS_EXPORT int DDS_SampleIdentity_t_marshal_cdr_legacy ( const struct DDS_SampleIdentity_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
183  COREDX_TS_EXPORT int DDS_SampleIdentity_t_unmarshal_cdr_legacy ( struct DDS_SampleIdentity_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
184 
185  COREDX_TS_EXPORT unsigned char DDS_SampleIdentity_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
186 
187 
188 /* DDS Data Type SEQUENCE: sequence<DDS_SampleIdentity_t *> */
189 #ifndef _DDS_sequence_c_DDS_SampleIdentity_tPtr_defined
190 #define _DDS_sequence_c_DDS_SampleIdentity_tPtr_defined
191  DECLARE_SEQ( DDS_SampleIdentity_t * , DDS_SampleIdentity_tPtrSeq );
192 #endif /* DDS Data Type SEQUENCE: sequence<DDS_SampleIdentity_tPtrSeq *> */
193 
194 
198  typedef struct DDS_Duration_t {
199  int32_t sec;
200  uint32_t nanosec;
201  } DDS_Duration_t;
202 
203  COREDX_TS_EXPORT struct DDS_Duration_t *DDS_Duration_t_alloc ( void );
204 # define DDS_Duration_t__alloc DDS_Duration_t_alloc /* discouraged */
205  COREDX_TS_EXPORT void DDS_Duration_t_free ( struct DDS_Duration_t * inst );
206  COREDX_TS_EXPORT void DDS_Duration_t_init ( struct DDS_Duration_t * instance );
207  COREDX_TS_EXPORT void DDS_Duration_t_clear( struct DDS_Duration_t * instance );
208  COREDX_TS_EXPORT void DDS_Duration_t_copy ( struct DDS_Duration_t * copy_to, const struct DDS_Duration_t * copy_from );
209  COREDX_TS_EXPORT int DDS_Duration_t_marshal_cdr ( const struct DDS_Duration_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
210  COREDX_TS_EXPORT int DDS_Duration_t_marshal_key_hash ( const struct DDS_Duration_t * inst, CDX_XcdrBuffer_t * cdr );
211  COREDX_TS_EXPORT int DDS_Duration_t_unmarshal_cdr ( struct DDS_Duration_t * inst, CDX_XcdrBuffer_t * cdr, int just_keys );
212  COREDX_TS_EXPORT int DDS_Duration_t_unmarshal_key_hash ( struct DDS_Duration_t * inst, CDX_XcdrBuffer_t * cdr );
213  /* deprecated, older api */
214  COREDX_TS_EXPORT int DDS_Duration_t_get_marshal_size_legacy ( const struct DDS_Duration_t * inst, int offset, int just_keys );
215  COREDX_TS_EXPORT int DDS_Duration_t_marshal_cdr_legacy ( const struct DDS_Duration_t * inst, unsigned char *buf, int offset, int stream_len, unsigned char swap, int just_keys);
216  COREDX_TS_EXPORT int DDS_Duration_t_unmarshal_cdr_legacy ( struct DDS_Duration_t * inst, unsigned char * buf, int offset, int stream_len, unsigned char swap, int just_keys);
217 
218  COREDX_TS_EXPORT unsigned char DDS_Duration_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
219 
220 
221 /* DDS Data Type SEQUENCE: sequence<DDS_Duration_t *> */
222 #ifndef _DDS_sequence_c_DDS_Duration_tPtr_defined
223 #define _DDS_sequence_c_DDS_Duration_tPtr_defined
224  DECLARE_SEQ( DDS_Duration_t * , DDS_Duration_tPtrSeq );
225 #endif /* DDS Data Type SEQUENCE: sequence<DDS_Duration_tPtrSeq *> */
226 
227 
228 
229  /* Namespace DDS ends here */
230 
231 #ifdef __cplusplus
232 }
233 #endif
234 
235 #endif
int32_t high
Definition: dds_builtin_basic.h:132
unsigned char DDS_GuidPrefix_t[12]
Definition: dds_builtin_basic.h:61
Definition: dds_builtin_basic.h:163
Definition: dds_builtin_basic.h:130
int32_t value[3]
Definition: dds_builtin_basic.h:32
Definition: dds_builtin_basic.h:30
Definition: dds_builtin_basic.h:97
DECLARE_SEQ(DDS_DynamicTypeMember, DDS_DynamicTypeMemberSeq)
A DDS_DynamicTypeMemberSeq instance is a sequence of DDS_DynamicTypeMember&#39;s.
uint32_t low
Definition: dds_builtin_basic.h:134
The Duration_t structure contains data to define a time duration.
Definition: dds_builtin_basic.h:198

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