FlightGear next
FGReplayInternal Struct Reference

#include <replay-internal.hxx>

Public Member Functions

 FGReplayInternal ()
 
virtual ~FGReplayInternal ()
 
void bind ()
 
void init ()
 
void reinit ()
 
void unbind ()
 
void update (double dt)
 
bool start (bool NewTape=false)
 Start replay session.
 
bool saveTape (const SGPropertyNode *ConfigData)
 Write flight recorder tape to disk.
 
bool loadTape (const SGPropertyNode *ConfigData)
 Load a flight recorder tape from disk.
 
bool loadTape (const SGPath &filename, bool preview, bool create_video, double fixed_dt, SGPropertyNode &meta_meta, simgear::HTTP::FileRequestRef file_request=nullptr)
 Read a flight recorder tape with given filename from disk.
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 
static int loadContinuousHeader (const std::string &path, std::istream *in, SGPropertyNode *properties)
 
static std::string makeTapePath (const std::string &tape_name)
 

Public Attributes

double m_sim_time
 
double m_last_mt_time
 
double m_last_lt_time
 
double m_last_msg_time
 
int m_last_replay_state
 
bool m_was_finished_already {false}
 
std::deque< FGReplayData * > m_short_term
 
std::deque< FGReplayData * > m_medium_term
 
std::deque< FGReplayData * > m_long_term
 
std::deque< FGReplayData * > m_recycler
 
std::vector< FGReplayMessagesm_replay_messages
 
std::vector< FGReplayMessages >::iterator m_current_msg
 
SGPropertyNode_ptr m_disable_replay
 
SGPropertyNode_ptr m_replay_master
 
SGPropertyNode_ptr m_replay_master_eof
 
SGPropertyNode_ptr m_replay_time
 
SGPropertyNode_ptr m_replay_time_str
 
SGPropertyNode_ptr m_replay_looped
 
SGPropertyNode_ptr m_replay_duration_act
 
SGPropertyNode_ptr m_speed_up
 
SGPropertyNode_ptr m_replay_multiplayer
 
SGPropertyNode_ptr m_recovery_period
 
SGPropertyNode_ptr m_replay_error
 
SGPropertyNode_ptr m_record_normal_begin
 
SGPropertyNode_ptr m_record_normal_end
 
SGPropertyNode_ptr m_log_frame_times
 
SGPropertyNode_ptr m_sim_startup_xpos
 
SGPropertyNode_ptr m_sim_startup_ypos
 
SGPropertyNode_ptr m_sim_startup_xsize
 
SGPropertyNode_ptr m_sim_startup_ysize
 
SGPropertyNode_ptr m_simple_time_enabled
 
double m_replay_time_prev
 
double m_high_res_time
 
double m_medium_res_time
 
double m_low_res_time
 
double m_medium_sample_rate
 
double m_long_sample_rate
 
std::shared_ptr< FGFlightRecorderm_flight_recorder
 
std::unique_ptr< struct Continuousm_continuous
 
FGMultiplayMgrm_MultiplayMgr
 

Detailed Description

Definition at line 102 of file replay-internal.hxx.

Constructor & Destructor Documentation

◆ FGReplayInternal()

FGReplayInternal::FGReplayInternal ( )

Definition at line 115 of file replay-internal.cxx.

◆ ~FGReplayInternal()

FGReplayInternal::~FGReplayInternal ( )
virtual

Definition at line 227 of file replay-internal.cxx.

Member Function Documentation

◆ bind()

void FGReplayInternal::bind ( )

Definition at line 322 of file replay-internal.cxx.

◆ init()

void FGReplayInternal::init ( )

Definition at line 236 of file replay-internal.cxx.

◆ loadContinuousHeader()

int FGReplayInternal::loadContinuousHeader ( const std::string & path,
std::istream * in,
SGPropertyNode * properties )
static

Definition at line 1800 of file replay-internal.cxx.

◆ loadTape() [1/2]

bool FGReplayInternal::loadTape ( const SGPath & filename,
bool preview,
bool create_video,
double fixed_dt,
SGPropertyNode & meta_meta,
simgear::HTTP::FileRequestRef file_request = nullptr )

Read a flight recorder tape with given filename from disk.

Copies MetaData's "meta" node into MetaMeta out-param. Actual data and signal configuration is not read when in "Preview" mode.

If create_video is true we automatically encode a video while replaying. If fixed_dt is not zero we also set /sim/time/fixed-dt while replaying.

Definition at line 1589 of file replay-internal.cxx.

◆ loadTape() [2/2]

bool FGReplayInternal::loadTape ( const SGPropertyNode * config_data)

Load a flight recorder tape from disk.

User/script command.

Definition at line 1806 of file replay-internal.cxx.

◆ makeTapePath()

std::string FGReplayInternal::makeTapePath ( const std::string & tape_name)
static

Definition at line 1789 of file replay-internal.cxx.

◆ reinit()

void FGReplayInternal::reinit ( )

Definition at line 294 of file replay-internal.cxx.

◆ saveTape()

bool FGReplayInternal::saveTape ( const SGPropertyNode * extra)

Write flight recorder tape to disk.

User/script command.

Definition at line 1250 of file replay-internal.cxx.

◆ start()

bool FGReplayInternal::start ( bool NewTape = false)

Start replay session.

Definition at line 426 of file replay-internal.cxx.

◆ staticSubsystemClassId()

static const char * FGReplayInternal::staticSubsystemClassId ( )
inlinestatic

Definition at line 114 of file replay-internal.hxx.

◆ unbind()

void FGReplayInternal::unbind ( )

Definition at line 327 of file replay-internal.cxx.

◆ update()

void FGReplayInternal::update ( double dt)

Definition at line 812 of file replay-internal.cxx.

Member Data Documentation

◆ m_continuous

std::unique_ptr<struct Continuous> FGReplayInternal::m_continuous

Definition at line 191 of file replay-internal.hxx.

◆ m_current_msg

std::vector<FGReplayMessages>::iterator FGReplayInternal::m_current_msg

Definition at line 156 of file replay-internal.hxx.

◆ m_disable_replay

SGPropertyNode_ptr FGReplayInternal::m_disable_replay

Definition at line 158 of file replay-internal.hxx.

◆ m_flight_recorder

std::shared_ptr<FGFlightRecorder> FGReplayInternal::m_flight_recorder

Definition at line 188 of file replay-internal.hxx.

◆ m_high_res_time

double FGReplayInternal::m_high_res_time

Definition at line 182 of file replay-internal.hxx.

◆ m_last_lt_time

double FGReplayInternal::m_last_lt_time

Definition at line 145 of file replay-internal.hxx.

◆ m_last_msg_time

double FGReplayInternal::m_last_msg_time

Definition at line 146 of file replay-internal.hxx.

◆ m_last_mt_time

double FGReplayInternal::m_last_mt_time

Definition at line 144 of file replay-internal.hxx.

◆ m_last_replay_state

int FGReplayInternal::m_last_replay_state

Definition at line 147 of file replay-internal.hxx.

◆ m_log_frame_times

SGPropertyNode_ptr FGReplayInternal::m_log_frame_times

Definition at line 171 of file replay-internal.hxx.

◆ m_long_sample_rate

double FGReplayInternal::m_long_sample_rate

Definition at line 186 of file replay-internal.hxx.

◆ m_long_term

std::deque<FGReplayData*> FGReplayInternal::m_long_term

Definition at line 152 of file replay-internal.hxx.

◆ m_low_res_time

double FGReplayInternal::m_low_res_time

Definition at line 184 of file replay-internal.hxx.

◆ m_medium_res_time

double FGReplayInternal::m_medium_res_time

Definition at line 183 of file replay-internal.hxx.

◆ m_medium_sample_rate

double FGReplayInternal::m_medium_sample_rate

Definition at line 185 of file replay-internal.hxx.

◆ m_medium_term

std::deque<FGReplayData*> FGReplayInternal::m_medium_term

Definition at line 151 of file replay-internal.hxx.

◆ m_MultiplayMgr

FGMultiplayMgr* FGReplayInternal::m_MultiplayMgr

Definition at line 193 of file replay-internal.hxx.

◆ m_record_normal_begin

SGPropertyNode_ptr FGReplayInternal::m_record_normal_begin

Definition at line 169 of file replay-internal.hxx.

◆ m_record_normal_end

SGPropertyNode_ptr FGReplayInternal::m_record_normal_end

Definition at line 170 of file replay-internal.hxx.

◆ m_recovery_period

SGPropertyNode_ptr FGReplayInternal::m_recovery_period

Definition at line 167 of file replay-internal.hxx.

◆ m_recycler

std::deque<FGReplayData*> FGReplayInternal::m_recycler

Definition at line 153 of file replay-internal.hxx.

◆ m_replay_duration_act

SGPropertyNode_ptr FGReplayInternal::m_replay_duration_act

Definition at line 164 of file replay-internal.hxx.

◆ m_replay_error

SGPropertyNode_ptr FGReplayInternal::m_replay_error

Definition at line 168 of file replay-internal.hxx.

◆ m_replay_looped

SGPropertyNode_ptr FGReplayInternal::m_replay_looped

Definition at line 163 of file replay-internal.hxx.

◆ m_replay_master

SGPropertyNode_ptr FGReplayInternal::m_replay_master

Definition at line 159 of file replay-internal.hxx.

◆ m_replay_master_eof

SGPropertyNode_ptr FGReplayInternal::m_replay_master_eof

Definition at line 160 of file replay-internal.hxx.

◆ m_replay_messages

std::vector<FGReplayMessages> FGReplayInternal::m_replay_messages

Definition at line 155 of file replay-internal.hxx.

◆ m_replay_multiplayer

SGPropertyNode_ptr FGReplayInternal::m_replay_multiplayer

Definition at line 166 of file replay-internal.hxx.

◆ m_replay_time

SGPropertyNode_ptr FGReplayInternal::m_replay_time

Definition at line 161 of file replay-internal.hxx.

◆ m_replay_time_prev

double FGReplayInternal::m_replay_time_prev

Definition at line 179 of file replay-internal.hxx.

◆ m_replay_time_str

SGPropertyNode_ptr FGReplayInternal::m_replay_time_str

Definition at line 162 of file replay-internal.hxx.

◆ m_short_term

std::deque<FGReplayData*> FGReplayInternal::m_short_term

Definition at line 150 of file replay-internal.hxx.

◆ m_sim_startup_xpos

SGPropertyNode_ptr FGReplayInternal::m_sim_startup_xpos

Definition at line 173 of file replay-internal.hxx.

◆ m_sim_startup_xsize

SGPropertyNode_ptr FGReplayInternal::m_sim_startup_xsize

Definition at line 175 of file replay-internal.hxx.

◆ m_sim_startup_ypos

SGPropertyNode_ptr FGReplayInternal::m_sim_startup_ypos

Definition at line 174 of file replay-internal.hxx.

◆ m_sim_startup_ysize

SGPropertyNode_ptr FGReplayInternal::m_sim_startup_ysize

Definition at line 176 of file replay-internal.hxx.

◆ m_sim_time

double FGReplayInternal::m_sim_time

Definition at line 142 of file replay-internal.hxx.

◆ m_simple_time_enabled

SGPropertyNode_ptr FGReplayInternal::m_simple_time_enabled

Definition at line 177 of file replay-internal.hxx.

◆ m_speed_up

SGPropertyNode_ptr FGReplayInternal::m_speed_up

Definition at line 165 of file replay-internal.hxx.

◆ m_was_finished_already

bool FGReplayInternal::m_was_finished_already {false}

Definition at line 148 of file replay-internal.hxx.


The documentation for this struct was generated from the following files: