Expand description
XTCE telemetry metadata: a streaming XML reader and an arena-backed intermediate representation.
This crate turns an XTCE SpaceSystem document into XtceDb, a flat, index-addressed
model that xtce-decode walks to decode CCSDS packets and
that xtce-codegen compiles into static Rust decoders.
§Scope
Only TelemetryMetaData is modelled; see SUPPORTED.md in the repository for the exact
coverage table. Constructs outside the decodable subset are still represented —
they surface as explicit IR variants and via XtceDb::unsupported — so that loading a
real mission database never fails merely because part of it is out of scope. The error
is raised by the decoder, at the point a value actually depends on the construct.
§Example
let db = xtce_model::XtceDb::from_path("testdata/spp/jpss/jpss1_geolocation_xtce_v1.xml")?;
println!("{} parameters, {} containers", db.parameters().len(), db.containers().len());Re-exports§
pub use commands::MetaCommand;pub use containers::BooleanExpr;pub use containers::CompareOp;pub use containers::Comparison;pub use containers::ComparisonValue;pub use containers::Condition;pub use containers::Container;pub use containers::Entry;pub use containers::EntryKind;pub use containers::Location;pub use containers::LocationReference;pub use containers::MatchCriteria;pub use containers::Operand;pub use containers::SpaceSystem;pub use db::Stats;pub use db::Unsupported;pub use db::XtceDb;pub use error::RefKind;pub use error::XtceError;pub use ids::ContainerId;pub use ids::MetaCommandId;pub use ids::ParamId;pub use ids::SpaceSystemId;pub use ids::Span;pub use ids::TypeId;pub use intern::Interner;pub use intern::NameId;pub use types::AggregateMember;pub use types::ArrayDimension;pub use types::BinaryEncoding;pub use types::ByteOrder;pub use types::Calibrator;pub use types::Charset;pub use types::ContextCalibrator;pub use types::DataEncoding;pub use types::DiscreteLookup;pub use types::Enumeration;pub use types::EnumerationList;pub use types::FloatCoding;pub use types::FloatEncoding;pub use types::IntegerCoding;pub use types::IntegerEncoding;pub use types::LinearAdjustment;pub use types::Parameter;pub use types::ParameterType;pub use types::PolynomialTerm;pub use types::SizeSpec;pub use types::Spline;pub use types::SplinePoint;pub use types::StringDelimiter;pub use types::StringEncoding;pub use types::TypeKind;
Modules§
- commands
- Telecommands:
<CommandMetaData>and what it defines. - containers
- Sequence containers, entry lists and the match criteria that select between them.
- db
- The loaded telemetry database.
- error
- Errors produced while reading an XTCE document.
- ids
- Typed indices into the
crate::XtceDbarenas. - intern
- String interning.
- types
- Parameter types, data encodings and calibrators.
- xml
- A compact, arena-backed XML tree tuned for XTCE.