Expand description
Load and pre-parse GenICam XML using quick-xml.
This crate provides types and functions for parsing GenICam XML descriptions into a structured representation that can be used by the core evaluation engine.
Structs§
- BitField
- Bitfield metadata describing a sub-range of a register payload.
- Converter
Decl - Declaration of a Converter node for bidirectional value transformation.
- Document
Identity - Which camera a document describes, and which revision of the document it
is: the
<RegisterDescription>attributes of GenICam Standard v2.1.1 §2.7. - Enum
Entry Decl - Declaration for a single enumeration entry.
- Formula
Bindings - Named literals and sub-formulas declared alongside a formula.
- Ignored
Element - A child element of a node that the parser read past without interpreting it: the node loaded, but whatever the element says was not taken into account.
- Indexed
Entry - A
<ValueIndexed Index="…">or<pValueIndexed Index="…">: the value an indexed node holds while its index readsindex. - Indexed
Value - An
<Integer>or<Float>that picks its value from a table by the value of an index node (GenICam Standard v2.1.1 §2.8.5, §2.8.9): - IntConverter
Decl - Declaration of an IntConverter node for integer-specific bidirectional conversion.
- Minimal
XmlInfo - Minimal metadata extracted from a quick XML scan.
- Node
Meta - Shared metadata present on every GenICam node.
- Port
Decl - A
<Port>declaration. - Predicate
Refs - References to predicate provider nodes used for runtime gating.
- Register
Decl - Declaration of a
<Register>node — raw byte-array register access. - Skipped
Node - A node element that could not be parsed and was left out of the model.
- String
Decl - Declaration of a string feature: a
<StringReg>, which reads a register, or a<String>, which holds a<Value>or takes its value from the node<pValue>names (GenICam Standard v2.1.1 §2.8.11 and §2.8.12). - Swiss
Knife Decl - Declaration of a SwissKnife node consisting of an arithmetic expression.
- XmlModel
- Full XML model describing the GenICam schema version and all declared nodes.
Enums§
- Access
Mode - Access privileges for a GenICam node as described in the XML.
- Address
Term - One contribution to a register address.
- Addressing
- Register addressing metadata for a node.
- Byte
Order - Byte order used to interpret a multi-byte register payload.
- Caching
Mode <Cachable>: whether a register’s value may be answered from a cache.- Command
Value Src - Where a
<Command>takes the value it writes. - Enum
Value Src - Source of the numeric value backing an enumeration entry.
- Float
Encoding - Byte-level encoding of the payload behind a
<Float>/<FloatReg>node. - Index
Offset - Stride applied to a
<pIndex>value. - Indexed
Src - One value of an indexed
<Integer>or<Float>: a constant, or the value of another node. - Node
Decl - Declaration of a node extracted from the GenICam XML description.
- Port
Kind - What a
<Port>gives access to. - Representation
- Recommended UI representation for a numeric feature.
- Sign
- Whether a register’s bits are interpreted as a signed or unsigned integer.
- SkOutput
- Output type of a SwissKnife expression node.
- Slope
- How a converter’s
<FormulaFrom>moves with its raw value. - Visibility
- Visibility level controlling which users see a feature.
- XmlError
- Why a GenICam XML document could not be read or fetched.
Functions§
- fetch_
and_ load_ xml - Fetch the GenICam XML document using the provided memory reader closure.
- fetch_
raw_ xml - Fetch the bytes the device’s XML URL points at, exactly as the device serves them: a ZIP archive is not unpacked and nothing is decoded.
- parse
- Parse a GenICam XML document into an
XmlModel. - parse_
into_ minimal_ nodes - Parse a GenICam XML snippet and collect minimal metadata.