idl.types
The following classes are really types and should be used with a []
and not ()
.
-
class cyclonedds.idl.types.array(subtype, length)[source]
- Parameters:
-
-
class cyclonedds.idl.types.sequence(subtype, max_length=None)[source]
- Parameters:
-
-
class cyclonedds.idl.types.typedef(name, subtype)[source]
- Parameters:
-
-
class cyclonedds.idl.types.bounded_str(max_length)[source]
- Parameters:
max_length (int) –
-
class cyclonedds.idl.types.case(discriminator_value, subtype)[source]
- Parameters:
subtype (type) –
-
class cyclonedds.idl.types.default(subtype)[source]
- Parameters:
subtype (type) –
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.uint8
An unsigned 8 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.uint16
An unsigned 16 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.uint32
An unsigned 32 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.uint64
An unsigned 64 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.int8
A signed 8 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.int16
A signed 16 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.int32
A signed 32 bit integer.
alias of Annotated
[int
]
-
cyclonedds.idl.types.int64
A signed 64 bit integer.
alias of Annotated
[int
]
-
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.