Expand description
XTypes 1.3 §7.5 DynamicType-API.
Foundation für die XTypes-1.3-Type-System-Vervollständigung. Ziel
ist eine programmatische, Spec-treue Runtime-Sicht auf XTypes-
Datenmodelle (Struct/Union/Enum/Sequence/…), die unabhaengig vom
Wire-Format TypeObject lebt — und ueber das bridge-Submodul auf
das Wire-Format gemappt werden kann (Spec §7.6).
§Module
descriptor—TypeDescriptor,MemberDescriptor,TypeKind,ExtensibilityKind,TryConstructKind.type_—DynamicType,DynamicTypeMember.builder—DynamicTypeBuilder,DynamicTypeBuilderFactory.data—DynamicData+ 12 typed accessors + Sequence/Composite- Loan-Stub.
factory—DynamicDataFactory.bridge— TypeObject ↔ DynamicType.error—DynamicError.
§Implementations-Scope
- Try-Construct-Apply-Logik (DISCARD/USE_DEFAULT/TRIM bei Decoder-Fehlschlag) — kommt mit C4.7. Hier ist nur das Enum + Member-Feld.
- Voller Loan-Refcount mit Lifetime-Tracking — aktuelle Implementation ist ein RAII-Wrapper mit Active-Set.
- Annotations-Apply (Spec §7.4 builtin annotations) — kommt mit C4.3.
- Bitset/Bitmask im Bridge-Pfad — TypeObject-Bridge fuer diese Kinds folgt mit C4.5 XML-Schema-Loader.
Re-exports§
pub use builder::DynamicTypeBuilder;pub use builder::DynamicTypeBuilderFactory;pub use builtin_types::NAME_DDS_BYTES;pub use builtin_types::NAME_DDS_KEYED_BYTES;pub use builtin_types::NAME_DDS_KEYED_STRING;pub use builtin_types::NAME_DDS_STRING;pub use builtin_types::all_builtin_types;pub use builtin_types::dds_bytes;pub use builtin_types::dds_keyed_bytes;pub use builtin_types::dds_keyed_string;pub use builtin_types::dds_string;pub use builtin_types::is_builtin_type_name;pub use data::DataLoan;pub use data::DynamicData;pub use data::DynamicValue;pub use descriptor::ExtensibilityKind;pub use descriptor::MemberDescriptor;pub use descriptor::MemberId;pub use descriptor::TryConstructKind;pub use descriptor::TypeDescriptor;pub use descriptor::TypeKind;pub use error::DynamicError;pub use factory::DynamicDataFactory;pub use try_construct::TryConstructOutcome;pub use try_construct::apply_try_construct;pub use type_::DynamicType;pub use type_::DynamicTypeMember;
Modules§
- bridge
- DynamicType ↔ TypeObject Bridge (XTypes 1.3 §7.6.3 + §7.6.4).
- builder
- DynamicTypeBuilder + DynamicTypeBuilderFactory (XTypes 1.3 §7.5.4, §7.5.5).
- builtin_
types - XTypes 1.3 §7.6.5 + Annex E — Built-in Types Set (C4.4).
- data
- DynamicData (XTypes 1.3 §7.5.6).
- descriptor
- TypeDescriptor + MemberDescriptor (XTypes 1.3 §7.5.1, §7.5.2).
- error
- Fehlertypen fuer DynamicType / DynamicData (Spec §7.5.6 ReturnCode).
- factory
- DynamicDataFactory (XTypes 1.3 §7.5.7).
- try_
construct - XTypes 1.3 §7.5.4.1.2 — TryConstruct-Apply (C4.7).
- type_
- DynamicType + DynamicTypeMember (XTypes 1.3 §7.5.3).