idl¶
- class cyclonedds.idl.IdlStruct[source]¶
Bases:
object
- class cyclonedds.idl.IdlUnion(**kwargs)[source]¶
Bases:
object
- property value¶
- class cyclonedds.idl.IdlEnum(value=<object object>, *args, **kwargs)[source]¶
Bases:
enum.Enum
An enumeration.
idl.types¶
The following classes are really types and should be used with a []
and not ()
.
- class cyclonedds.idl.types.bounded_str(max_length)[source]¶
- Parameters
max_length (int) –
- Return type
None
- class cyclonedds.idl.types.case(discriminator_value, subtype)[source]¶
- Parameters
subtype (type) –
- Return type
None
The following items map to Python int
or float
but indicate their full meaning to the C layer in encoding samples.
- cyclonedds.idl.types.char¶
The C
char
datatype. In Python this is implemented as a single-character string.alias of
Annotated
[str
]
- cyclonedds.idl.types.float32¶
A 32bit floating point number. In typical C this is a regular
float
.alias of
Annotated
[float
]
- cyclonedds.idl.types.float64¶
A 64bit floating point number. In typical C this is a regular
float
.alias of
Annotated
[float
]
- cyclonedds.idl.types.NoneType¶
The NoneType, or a “void” type. This is not included in the OMG IDL spec or in the C library but it can be very useful.
idl.annotations¶
- cyclonedds.idl.annotations.xcdrv2(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T
- cyclonedds.idl.annotations.cdrv0(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T
- cyclonedds.idl.annotations.nested(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T
- cyclonedds.idl.annotations.final(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T
- cyclonedds.idl.annotations.appendable(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T
- cyclonedds.idl.annotations.mutable(cls)[source]¶
- Parameters
cls (cyclonedds.idl.annotations.T) –
- Return type
cyclonedds.idl.annotations.T