Skip to main content

microrti_encoding/
handles.rs

1//! Handle elements (12.2, 12.11.4.2): a handle travels inside attribute and parameter values as the MIM
2//! array datatype of the same name, an `HLAvariableArray` of `HLAbyte` holding the handle's encoded form.
3//!
4//! The octets are whatever the RTI handed out. They are opaque here and are not validated when decoding.
5
6use crate::strings::octet_array_element;
7
8octet_array_element! {
9    /// `HLAfederateHandle`: the encoded form of a federate handle.
10    HLAfederateHandle
11}
12octet_array_element! {
13    /// `HLAobjectClassHandle`: the encoded form of an object class handle.
14    HLAobjectClassHandle
15}
16octet_array_element! {
17    /// `HLAattributeHandle`: the encoded form of an attribute handle.
18    HLAattributeHandle
19}
20octet_array_element! {
21    /// `HLAinteractionClassHandle`: the encoded form of an interaction class handle.
22    HLAinteractionClassHandle
23}
24octet_array_element! {
25    /// `HLAparameterHandle`: the encoded form of a parameter handle.
26    HLAparameterHandle
27}
28octet_array_element! {
29    /// `HLAobjectInstanceHandle`: the encoded form of an object instance handle.
30    HLAobjectInstanceHandle
31}
32octet_array_element! {
33    /// `HLAdimensionHandle`: the encoded form of a dimension handle.
34    HLAdimensionHandle
35}
36octet_array_element! {
37    /// `HLAregionHandle`: the encoded form of a region handle.
38    HLAregionHandle
39}
40octet_array_element! {
41    /// `HLAtransportationTypeHandle`: the encoded form of a transportation type handle.
42    HLAtransportationTypeHandle
43}
44octet_array_element! {
45    /// `HLAmessageRetractionHandle`: the encoded form of a message retraction handle.
46    HLAmessageRetractionHandle
47}