Expand description
CORBA TypeCodes and anys (rustorb) as DDS-XTypes types and DynamicData (rustorb-dds), and back.
dynamic_type: aTypeCodeas aDynamicType, whose TypeObject (TypeObjects::new) is that of the type rustorb-idl and other IDL compilers describe for the same IDL, given the sameOptions.type_code: aDynamicTypeas aTypeCode; withDynamicTypeBuilderFactory::create_type_w_type_object, a TypeObject as a TypeCode.dynamic_dataandany: anAnyas aDynamicDataof a type made bydynamic_type, and back.
A TypeCode says less than a TypeObject: it has no extensibility, no
@key, @optional or member IDs. The rules (docs/corba.md):
- structs and unions take the extensibility of
Options(appendable by default, the default of IDL 4), enums are final - the key members of a struct are those
Options::keynames - member IDs are sequential from 0, in declaration order
(
@autoid(SEQUENTIAL)), the members of a union too - the qualified name comes from the repository ID (
IDL:A/B/C:1.0isA::B::C; leading parts with a dot, from#pragma prefix, are left out), and back (A::B::CisIDL:A/B/C:1.0) - an enumerator’s value is its position
- nested arrays (
long m[2][3]) are one array of several dimensions
TypeCodes of kinds DDS-XTypes has no type for (any, object
references, valuetypes, fixed, exceptions, TypeCode…) and
recursive types are Error::Unsupported, and so are, the other way,
map, bitmask, int8 and optional members.
Re-exports§
pub use rustorb_core;pub use rustorb_xtypes;
Structs§
- Options
- What
dynamic_typecannot read from a TypeCode: extensibility and keys, given by the qualified names of the types (Keyed::Shape).
Enums§
- Error
- Errors of the conversions.
Functions§
- any
dataas an any of typetc, the TypeCodetype_codemakes from the type ofdata(or one with the same names and shape).- dynamic_
data - The value of
anyas a value ofty, a typedynamic_typemade from the TypeCode ofany(or one with the same names and shape). Members oftythe TypeCode does not have keep their default values. - dynamic_
type - The DDS-XTypes type of
tc, by the rules of the crate documentation andoptions. - type_
code - The TypeCode of
ty, by the rules of the crate documentation: extensibility, keys and member IDs are left out.
Type Aliases§
- Result
- The result of the conversions.