6#ifndef SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONLOGGER_H
7#define SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONLOGGER_H
54 const QString &interpolationType()
const;
72 QString toQString(
bool withSetup,
bool withCurrentSituation,
bool withElevation,
bool withOtherPositions,
73 bool withDeltaTimes,
const QString &separator = {
" " })
const;
217 int m_maxSituations = 2500;
Streamable status message, e.g.
Status messages, e.g. from Core -> GUI.
Class for doing some arbitrary parcel of work in its own thread.
Value object encapsulating information of aircraft's parts.
Value object about changes in situations.
Value object encapsulating information of an aircraft's situation.
List of aircraft situations.
Value object encapsulating information of a callsign.
Physical unit length (length).
static const CLength & null()
Value object for interpolator and rendering per callsign.
static const QStringList & filePatterns()
All log.file patterns.
static QString msSinceEpochToTime(qint64 ms)
Create readable time.
CInterpolationLogger(QObject *parent=nullptr)
Constructor.
static const QString & filePatternPartsLog()
File pattern for parts log.
void setMaxSituations(int max)
Max.situations logged.
static QString msSinceEpochToTimeAndTimestamp(qint64 ms)
Create readable time plus timestamp.
aviation::CAircraftParts getLastParts() const
Get last parts.
static QString getLogDirectory()
Get the log directory.
PartsLog getLastPartsLog() const
Get last parts.
static const QStringList & getLogCategories()
Log categories.
void logInterpolation(const SituationLog &log)
Log current interpolation cycle, only stores in memory, for performance reasons.
SituationLog getLastSituationLog() const
Get last log.
static QStringList getLatestLogFiles()
Latest log files: 0: Interpolation / 1: Parts.
CWorker * writeLogInBackground(bool clearLog)
Write a log in background.
aviation::CAircraftSituation getLastSituation() const
Get last situation.
QList< PartsLog > getPartsLog() const
All parts logs.
static const QString & filePatternInterpolationLog()
File pattern for interpolation log.
void clearLog()
Clear log file.
QList< SituationLog > getSituationsLog() const
All situation logs.
void logParts(const PartsLog &log)
Log current parts cycle, only stores in memory, for performance reasons.
Free functions in swift::misc.
QObject * parent() const const
Log entry for parts interpolation.
int noNetworkParts
available network situations
aviation::CAircraftParts parts
parts to be logged
qint64 tsCurrent
current timestamp
aviation::CCallsign callsign
current callsign
QString toQString(const QString &separator={ " " }) const
To string.
Log entry for situation interpolation.
double deltaCurrentToInterpolatedTime() const
Delta time between interpolation and current time.
QChar interpolator
what interpolator is used
aviation::CAircraftSituationList interpolationSituations
the interpolator uses 2, 3 situations (latest at end)
physical_quantities::CLength sceneryOffset
scenery offset
aviation::CCallsign callsign
current callsign
aviation::CAircraftSituation situationCurrent
interpolated situation
int noNetworkSituations
available network situations
const aviation::CAircraftSituation & newestInterpolationSituation() const
The newest situation.
const aviation::CAircraftSituation & oldestInterpolationSituation() const
The oldest situation.
qint64 tsInterpolated
timestamp interpolated
QString elevationInfo
info about elevation retrieval
double deltaSampleTimesMs
delta time between samples (i.e.
aviation::CAircraftSituationChange change
change
bool useParts
supporting aircraft parts
double groundFactor
current ground factor
physical_quantities::CLength cgAboveGround
center of gravity (CG)
double simTimeFraction
time fraction, expected 0..1
qint64 tsCurrent
current timestamp
aviation::CAircraftParts parts
corresponding parts used in interpolator
bool interpolantRecalc
interpolant recalculated
QString altCorrection
info about altitude correction as CAircraftSituation::AltitudeCorrection
int noInvalidSituations
invalid situations, missing situations for timestampd
CInterpolationAndRenderingSetupPerCallsign usedSetup
used setup
#define SWIFT_MISC_EXPORT
Export a class or function from the library.