FlightGear
next
dds_props.h
Go to the documentation of this file.
1
/****************************************************************
2
3
Generated by Eclipse Cyclone DDS IDL to C Translator
4
File name: dds_props.h
5
Source: dds_props.idl
6
Cyclone DDS: V0.7.0
7
8
*****************************************************************/
9
10
#include "dds/ddsc/dds_public_impl.h"
11
12
#ifndef _DDSL_DDS_PROPS_H_
13
#define _DDSL_DDS_PROPS_H_
14
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
#define FG_DDS_PROP_VERSION 0
21
#define FG_DDS_PROP_REQUEST -1
22
#define FG_DDS_MODE_READ (0)
23
#define FG_DDS_MODE_WRITE (1)
24
typedef
enum
FG_propType
25
{
26
FG_DDS_NONE
,
27
FG_DDS_ALIAS
,
28
FG_DDS_BOOL
,
29
FG_DDS_INT
,
30
FG_DDS_LONG
,
31
FG_DDS_FLOAT
,
32
FG_DDS_DOUBLE
,
33
FG_DDS_STRING
,
34
FG_DDS_UNSPECIFIED
35
}
FG_propType
;
36
37
#define FG_propType__alloc() \
38
((FG_propType*) dds_alloc (sizeof (FG_propType)));
39
40
41
typedef
struct
FG_propValue
42
{
43
FG_propType
_d
;
44
union
45
{
46
char
Bool
;
47
int32_t
Int32
;
48
int64_t
Int64
;
49
float
Float32
;
50
double
Float64
;
51
char
*
String
;
52
}
_u
;
53
}
FG_propValue
;
54
55
#define FG_propValue__alloc() \
56
((FG_propValue*) dds_alloc (sizeof (FG_propValue)));
57
58
59
typedef
struct
FG_DDS_prop
60
{
61
int32_t
id
;
62
uint8_t
version
;
63
char
mode
;
64
FG_propValue
val
;
65
uint8_t
guid
[16];
66
}
FG_DDS_prop
;
67
68
extern
const
dds_topic_descriptor_t
FG_DDS_prop_desc
;
69
70
#define FG_DDS_prop__alloc() \
71
((FG_DDS_prop*) dds_alloc (sizeof (FG_DDS_prop)));
72
73
#define FG_DDS_prop_free(d,o) \
74
dds_sample_free ((d), &FG_DDS_prop_desc, (o))
75
76
#ifdef __cplusplus
77
}
78
#endif
79
#endif
/* _DDSL_DDS_PROPS_H_ */
FG_DDS_prop_desc
const dds_topic_descriptor_t FG_DDS_prop_desc
Definition
dds_props.c:36
FG_propType
FG_propType
Definition
dds_props.h:25
FG_DDS_UNSPECIFIED
@ FG_DDS_UNSPECIFIED
Definition
dds_props.h:34
FG_DDS_LONG
@ FG_DDS_LONG
Definition
dds_props.h:30
FG_DDS_FLOAT
@ FG_DDS_FLOAT
Definition
dds_props.h:31
FG_DDS_ALIAS
@ FG_DDS_ALIAS
Definition
dds_props.h:27
FG_DDS_NONE
@ FG_DDS_NONE
Definition
dds_props.h:26
FG_DDS_INT
@ FG_DDS_INT
Definition
dds_props.h:29
FG_DDS_BOOL
@ FG_DDS_BOOL
Definition
dds_props.h:28
FG_DDS_DOUBLE
@ FG_DDS_DOUBLE
Definition
dds_props.h:32
FG_DDS_STRING
@ FG_DDS_STRING
Definition
dds_props.h:33
FG_DDS_prop
Definition
dds_props.h:60
FG_DDS_prop::val
FG_propValue val
Definition
dds_props.h:64
FG_DDS_prop::mode
char mode
Definition
dds_props.h:63
FG_DDS_prop::version
uint8_t version
Definition
dds_props.h:62
FG_DDS_prop::guid
uint8_t guid[16]
Definition
dds_props.h:65
FG_DDS_prop::id
int32_t id
Definition
dds_props.h:61
FG_propValue
Definition
dds_props.h:42
FG_propValue::Int32
int32_t Int32
Definition
dds_props.h:47
FG_propValue::Float32
float Float32
Definition
dds_props.h:49
FG_propValue::String
char * String
Definition
dds_props.h:51
FG_propValue::Bool
char Bool
Definition
dds_props.h:46
FG_propValue::Int64
int64_t Int64
Definition
dds_props.h:48
FG_propValue::_d
FG_propType _d
Definition
dds_props.h:43
FG_propValue::_u
union FG_propValue::@155153037146116023270074041102065253170142315045 _u
FG_propValue::Float64
double Float64
Definition
dds_props.h:50
src
Network
DDS
dds_props.h
Generated on Tue Jun 3 2025 12:58:41 for FlightGear by
1.13.2