pub enum TypeKind {
Integer,
Float,
String,
Binary,
Boolean {
zero_label: Option<NameId>,
one_label: Option<NameId>,
},
Enumerated(EnumerationList),
AbsoluteTime {
epoch: Option<NameId>,
offset_from: Option<ParamId>,
},
RelativeTime,
Aggregate {
members: Vec<AggregateMember>,
},
Array {
element: TypeId,
dimensions: Vec<ArrayDimension>,
},
Unsupported {
element: NameId,
},
}Expand description
The semantic family of a parameter type.
Variants§
Integer
IntegerParameterType.
Float
FloatParameterType.
String
StringParameterType.
Binary
BinaryParameterType.
Boolean
BooleanParameterType.
XTCE calls this “a restricted form of enumeration”, and the reference
implementation derives truthiness from the raw value, ignoring the label
attributes. The labels are kept here so callers can render them; see
crate::XtceDb::boolean_label.
Fields
Enumerated(EnumerationList)
EnumeratedParameterType.
AbsoluteTime
AbsoluteTimeParameterType.
Fields
RelativeTime
RelativeTimeParameterType.
Aggregate
AggregateParameterType: a record, “analogous to a C-struct”.
Like an array, a parameter of this type never reaches a decoder: the container entry
naming it is expanded at load time into one synthetic parameter per member. XTCE says
the members are “ordered and contiguous … (packed)” and addressed “by the dot syntax
similar to C such as P.voltage”, so that is what the expansion produces.
Fields
members: Vec<AggregateMember>Members in document order, which is the order they occupy in the packet.
Array
ArrayParameterType: a repetition of one element type.
A parameter of this type never reaches a decoder. The container entry that names it is
expanded at load time into one synthetic parameter per index, each of the element
type, so everything downstream sees ordinary fields — see XtceDb::array_element_of.
The type is kept because xtce info reports it and because the expansion needs it.
Fields
dimensions: Vec<ArrayDimension>One entry per dimension, outermost first. XTCE writes Array[1st][2nd][last] and
says the last dimension varies fastest, so the layout is row-major.
Unsupported
A parameter type this crate models structurally but cannot decode.
Loading succeeds; decoding a parameter of this type reports
XtceError::Unsupported naming the element below.