FlightGear next
flightrecorder.cxx File Reference
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <Main/fg_props.hxx>
#include <MultiPlayer/mpmessages.hxx>
#include <MultiPlayer/multiplaymgr.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/SGMath.hxx>
#include <simgear/misc/ResourceManager.hxx>
#include <simgear/misc/strutils.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/structure/exception.hxx>
#include "flightrecorder.hxx"

Go to the source code of this file.

Classes

struct  RecordExtraProperties
 

Functions

static void s_Append (std::vector< char > &out, const void *data, size_t data_len)
 
static void s_AppendNumber (std::vector< char > &out, int16_t number)
 
static void s_AppendString (std::vector< char > &out, const std::string &s)
 
static void s_RecordPropertyDiffs (std::vector< char > &out, SGPropertyNode *a, SGPropertyNode *b, const std::vector< const char * > *path_exclude_prefixes)
 
static double weighting (TInterpolation interpolation, double ratio, double v1, double v2)
 Do interpolation as defined by given interpolation type and weighting ratio.
 
static void setInt (const std::string &value, int *out)
 
static void string_to_double (const std::string &s, double &out, bool &ok)
 
static void replayProperty (const std::string &path, const std::string &value_next_string, const FGReplayData *frame_prev, double ratio)
 

Variables

static std::shared_ptr< RecordExtraPropertiess_record_extra_properties
 

Function Documentation

◆ replayProperty()

static void replayProperty ( const std::string & path,
const std::string & value_next_string,
const FGReplayData * frame_prev,
double ratio )
static

Definition at line 677 of file flightrecorder.cxx.

◆ s_Append()

static void s_Append ( std::vector< char > & out,
const void * data,
size_t data_len )
static

Definition at line 32 of file flightrecorder.cxx.

◆ s_AppendNumber()

static void s_AppendNumber ( std::vector< char > & out,
int16_t number )
static

Definition at line 40 of file flightrecorder.cxx.

◆ s_AppendString()

static void s_AppendString ( std::vector< char > & out,
const std::string & s )
static

Definition at line 46 of file flightrecorder.cxx.

◆ s_RecordPropertyDiffs()

static void s_RecordPropertyDiffs ( std::vector< char > & out,
SGPropertyNode * a,
SGPropertyNode * b,
const std::vector< const char * > * path_exclude_prefixes )
static

Definition at line 62 of file flightrecorder.cxx.

◆ setInt()

static void setInt ( const std::string & value,
int * out )
static

Definition at line 649 of file flightrecorder.cxx.

◆ string_to_double()

static void string_to_double ( const std::string & s,
double & out,
bool & ok )
static

Definition at line 662 of file flightrecorder.cxx.

◆ weighting()

static double weighting ( TInterpolation interpolation,
double ratio,
double v1,
double v2 )
static

Do interpolation as defined by given interpolation type and weighting ratio.

Definition at line 608 of file flightrecorder.cxx.

Variable Documentation

◆ s_record_extra_properties

std::shared_ptr<RecordExtraProperties> s_record_extra_properties
static

Definition at line 195 of file flightrecorder.cxx.