Skip to main content

Crate viva_genapi_xml

Crate viva_genapi_xml 

Source
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.
ConverterDecl
Declaration of a Converter node for bidirectional value transformation.
DocumentIdentity
Which camera a document describes, and which revision of the document it is: the <RegisterDescription> attributes of GenICam Standard v2.1.1 §2.7.
EnumEntryDecl
Declaration for a single enumeration entry.
FormulaBindings
Named literals and sub-formulas declared alongside a formula.
IgnoredElement
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.
IndexedEntry
A <ValueIndexed Index="…"> or <pValueIndexed Index="…">: the value an indexed node holds while its index reads index.
IndexedValue
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):
IntConverterDecl
Declaration of an IntConverter node for integer-specific bidirectional conversion.
MinimalXmlInfo
Minimal metadata extracted from a quick XML scan.
NodeMeta
Shared metadata present on every GenICam node.
PortDecl
A <Port> declaration.
PredicateRefs
References to predicate provider nodes used for runtime gating.
RegisterDecl
Declaration of a <Register> node — raw byte-array register access.
SkippedNode
A node element that could not be parsed and was left out of the model.
StringDecl
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).
SwissKnifeDecl
Declaration of a SwissKnife node consisting of an arithmetic expression.
XmlModel
Full XML model describing the GenICam schema version and all declared nodes.

Enums§

AccessMode
Access privileges for a GenICam node as described in the XML.
AddressTerm
One contribution to a register address.
Addressing
Register addressing metadata for a node.
ByteOrder
Byte order used to interpret a multi-byte register payload.
CachingMode
<Cachable>: whether a register’s value may be answered from a cache.
CommandValueSrc
Where a <Command> takes the value it writes.
EnumValueSrc
Source of the numeric value backing an enumeration entry.
FloatEncoding
Byte-level encoding of the payload behind a <Float> / <FloatReg> node.
IndexOffset
Stride applied to a <pIndex> value.
IndexedSrc
One value of an indexed <Integer> or <Float>: a constant, or the value of another node.
NodeDecl
Declaration of a node extracted from the GenICam XML description.
PortKind
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.