Rise
The Vieneo Province
Loading...
Searching...
No Matches
Orbital::FlightTrace Class Reference

#include <OrbitTrace.h>

Collaboration diagram for Orbital::FlightTrace:
[legend]

Public Member Functions

 FlightTrace (size_t maxBytes=128 *1024 *1024)
 ~FlightTrace ()
 FlightTrace (const FlightTrace &)=delete
FlightTrace & operator= (const FlightTrace &)=delete
bool Active () const
bool Failed () const
bool Limited () const
void Allow (bool permitted) noexcept
const std::filesystem::path & Path () const
void Begin (const std::filesystem::path &directory, const Input &in, const Request &r, const Snapshot &s, const ActuationTelemetry &a) noexcept
void Write (const Input &in, const Request &r, const Snapshot &s, const Guidance &g, const TraceContext &c, const ActuationTelemetry &a, bool ending=false) noexcept

Private Member Functions

void Close () noexcept
void Put (const std::string &line)
void Flush ()
void Geometry (const std::filesystem::path &geometry)

Private Attributes

FILE * file =nullptr
std::array< char, 65536 > buffer {}
std::filesystem::path path
size_t bytes =0
size_t limit
bool failed =false
bool limited =false
bool started =false
bool haveLast =false
bool allowed =false
std::string session
std::string header
Input initial
Request requested
Snapshot committed
ActuationTelemetry initialActuation
Guidance lastGuidance
double lastRow =-1
double lastFlush =-1
TraceContext lastContext
std::uint64_t lastRevision =0
int lastTarget =-1
TargetKind lastKind =TargetKind::None

Detailed Description

Definition at line 98 of file OrbitTrace.h.

Constructor & Destructor Documentation

◆ FlightTrace() [1/2]

Orbital::FlightTrace::FlightTrace ( size_t maxBytes = 128*1024*1024)
inlineexplicit

Definition at line 157 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ ~FlightTrace()

Orbital::FlightTrace::~FlightTrace ( )
inline

Definition at line 158 of file OrbitTrace.h.

Here is the call graph for this function:

◆ FlightTrace() [2/2]

Orbital::FlightTrace::FlightTrace ( const FlightTrace & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ Active()

bool Orbital::FlightTrace::Active ( ) const
inline

Definition at line 161 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ Allow()

void Orbital::FlightTrace::Allow ( bool permitted)
inlinenoexcept

Definition at line 164 of file OrbitTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Begin()

void Orbital::FlightTrace::Begin ( const std::filesystem::path & directory,
const Input & in,
const Request & r,
const Snapshot & s,
const ActuationTelemetry & a )
inlinenoexcept

Definition at line 172 of file OrbitTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Close()

void Orbital::FlightTrace::Close ( )
inlineprivatenoexcept

Definition at line 116 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ Failed()

bool Orbital::FlightTrace::Failed ( ) const
inline

Definition at line 162 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ Flush()

void Orbital::FlightTrace::Flush ( )
inlineprivate

Definition at line 121 of file OrbitTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Geometry()

void Orbital::FlightTrace::Geometry ( const std::filesystem::path & geometry)
inlineprivate

Definition at line 122 of file OrbitTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Limited()

bool Orbital::FlightTrace::Limited ( ) const
inline

Definition at line 163 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ operator=()

FlightTrace & Orbital::FlightTrace::operator= ( const FlightTrace & )
delete
Here is the call graph for this function:

◆ Path()

const std::filesystem::path & Orbital::FlightTrace::Path ( ) const
inline

Definition at line 169 of file OrbitTrace.h.

Here is the caller graph for this function:

◆ Put()

void Orbital::FlightTrace::Put ( const std::string & line)
inlineprivate

Definition at line 117 of file OrbitTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Write()

void Orbital::FlightTrace::Write ( const Input & in,
const Request & r,
const Snapshot & s,
const Guidance & g,
const TraceContext & c,
const ActuationTelemetry & a,
bool ending = false )
inlinenoexcept

Definition at line 204 of file OrbitTrace.h.

Here is the caller graph for this function:

Member Data Documentation

◆ allowed

bool Orbital::FlightTrace::allowed =false
private

Definition at line 104 of file OrbitTrace.h.

◆ buffer

std::array<char,65536> Orbital::FlightTrace::buffer {}
private

Definition at line 101 of file OrbitTrace.h.

◆ bytes

size_t Orbital::FlightTrace::bytes =0
private

Definition at line 103 of file OrbitTrace.h.

◆ committed

Snapshot Orbital::FlightTrace::committed
private

Definition at line 108 of file OrbitTrace.h.

◆ failed

bool Orbital::FlightTrace::failed =false
private

Definition at line 104 of file OrbitTrace.h.

◆ file

FILE* Orbital::FlightTrace::file =nullptr
private

Definition at line 100 of file OrbitTrace.h.

◆ haveLast

bool Orbital::FlightTrace::haveLast =false
private

Definition at line 104 of file OrbitTrace.h.

◆ header

std::string Orbital::FlightTrace::header
private

Definition at line 105 of file OrbitTrace.h.

◆ initial

Input Orbital::FlightTrace::initial
private

Definition at line 106 of file OrbitTrace.h.

◆ initialActuation

ActuationTelemetry Orbital::FlightTrace::initialActuation
private

Definition at line 109 of file OrbitTrace.h.

◆ lastContext

TraceContext Orbital::FlightTrace::lastContext
private

Definition at line 112 of file OrbitTrace.h.

◆ lastFlush

double Orbital::FlightTrace::lastFlush =-1
private

Definition at line 111 of file OrbitTrace.h.

◆ lastGuidance

Guidance Orbital::FlightTrace::lastGuidance
private

Definition at line 110 of file OrbitTrace.h.

◆ lastKind

TargetKind Orbital::FlightTrace::lastKind =TargetKind::None
private

Definition at line 115 of file OrbitTrace.h.

◆ lastRevision

std::uint64_t Orbital::FlightTrace::lastRevision =0
private

Definition at line 113 of file OrbitTrace.h.

◆ lastRow

double Orbital::FlightTrace::lastRow =-1
private

Definition at line 111 of file OrbitTrace.h.

◆ lastTarget

int Orbital::FlightTrace::lastTarget =-1
private

Definition at line 114 of file OrbitTrace.h.

◆ limit

size_t Orbital::FlightTrace::limit
private

Definition at line 103 of file OrbitTrace.h.

◆ limited

bool Orbital::FlightTrace::limited =false
private

Definition at line 104 of file OrbitTrace.h.

◆ path

std::filesystem::path Orbital::FlightTrace::path
private

Definition at line 102 of file OrbitTrace.h.

◆ requested

Request Orbital::FlightTrace::requested
private

Definition at line 107 of file OrbitTrace.h.

◆ session

std::string Orbital::FlightTrace::session
private

Definition at line 105 of file OrbitTrace.h.

◆ started

bool Orbital::FlightTrace::started =false
private

Definition at line 104 of file OrbitTrace.h.


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