siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::tle::Tle Class Reference

Move-only RAII wrapper around a parsed Two-Line Element set. More...

#include <siderust/sgp4.hpp>

Public Member Functions

 Tle (Tle &&other) noexcept
 
Tleoperator= (Tle &&other) noexcept
 
 Tle (const Tle &)=delete
 
Tleoperator= (const Tle &)=delete
 
 ~Tle ()
 
std::uint32_t norad_id () const
 Return the NORAD catalog number.
 
const SiderustTle * raw () const noexcept
 Expose the raw opaque handle (for use by Propagator constructor).
 

Static Public Member Functions

static Tle parse (std::string_view line1, std::string_view line2)
 

Detailed Description

Move-only RAII wrapper around a parsed Two-Line Element set.

Construct via Tle::parse(line1, line2).

Definition at line 45 of file sgp4.hpp.

Constructor & Destructor Documentation

◆ Tle() [1/2]

siderust::tle::Tle::Tle ( Tle &&  other)
inlinenoexcept

Definition at line 60 of file sgp4.hpp.

◆ Tle() [2/2]

siderust::tle::Tle::Tle ( const Tle )
delete

◆ ~Tle()

siderust::tle::Tle::~Tle ( )
inline

Definition at line 72 of file sgp4.hpp.

Member Function Documentation

◆ norad_id()

std::uint32_t siderust::tle::Tle::norad_id ( ) const
inline

Return the NORAD catalog number.

Definition at line 75 of file sgp4.hpp.

References siderust::check_status().

◆ operator=() [1/2]

Tle & siderust::tle::Tle::operator= ( const Tle )
delete

◆ operator=() [2/2]

Tle & siderust::tle::Tle::operator= ( Tle &&  other)
inlinenoexcept

Definition at line 61 of file sgp4.hpp.

◆ parse()

static Tle siderust::tle::Tle::parse ( std::string_view  line1,
std::string_view  line2 
)
inlinestatic

Parse a two-line element set.

Parameters
line1TLE line 1 (null termination added internally).
line2TLE line 2 (null termination added internally).
Exceptions
siderust::InvalidArgumentErroron parse failure.
Examples
17_sgp4_from_tle.cpp.

Definition at line 52 of file sgp4.hpp.

References siderust::check_status().

◆ raw()

const SiderustTle * siderust::tle::Tle::raw ( ) const
inlinenoexcept

Expose the raw opaque handle (for use by Propagator constructor).

Definition at line 82 of file sgp4.hpp.


The documentation for this class was generated from the following file: