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

CCSDS OEM (Orbit Ephemeris Message) parser C++ wrapper. More...

#include "ffi_core.hpp"
#include <array>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for oem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  siderust::oem::detail::OemStatesGuard
 
struct  siderust::oem::StateVector
 A single spacecraft state vector from a CCSDS OEM file. More...
 

Namespaces

namespace  siderust
 
namespace  siderust::oem
 
namespace  siderust::oem::detail
 

Functions

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

Detailed Description

CCSDS OEM (Orbit Ephemeris Message) parser C++ wrapper.

Wraps siderust_oem_parse_str to parse a CCSDS OEM v2/v3 document from a std::string and return a std::vector<StateVector>.

Typical usage

#include <siderust/oem.hpp>
#include <fstream>
#include <sstream>
std::ifstream f("orbit.oem");
std::ostringstream ss;
ss << f.rdbuf();
auto states = siderust::oem::parse(ss.str());
for (auto& sv : states) {
std::cout << sv.epoch_jd << " "
<< sv.pos_km[0] << " " << sv.pos_km[1] << " " << sv.pos_km[2] << '\n';
}
std::vector< StateVector > parse(std::string_view text)
Parse a CCSDS OEM (KVN) document from a string.
Definition oem.hpp:75
CCSDS OEM (Orbit Ephemeris Message) parser C++ wrapper.

Definition in file oem.hpp.