siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::oem Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  StateVector
 A single spacecraft state vector from a CCSDS OEM file. More...
 

Functions

std::vector< StateVectorparse (std::string_view text)
 Parse a CCSDS OEM (KVN) document from a string.
 

Function Documentation

◆ parse()

std::vector< StateVector > siderust::oem::parse ( std::string_view  text)
inline

Parse a CCSDS OEM (KVN) document from a string.

All state vectors from all OEM segments are returned in a flat vector, in the order they appear in the document.

Parameters
textOEM document text (null termination added internally).
Returns
std::vector<StateVector> Parsed state vectors (may be empty).
Exceptions
siderust::InvalidArgumentErrorif the OEM document is malformed.
Examples
18_lisa_pod.cpp.

Definition at line 75 of file oem.hpp.

References siderust::check_status(), and siderust::oem::detail::OemStatesGuard::ptr.