swift
|
Record internal state of interpolator for debugging. More...
Public Member Functions | |
CInterpolationLogger (QObject *parent=nullptr) | |
Constructor. | |
CWorker * | writeLogInBackground (bool clearLog) |
Write a log in background. | |
void | clearLog () |
Clear log file. | |
void | logInterpolation (const SituationLog &log) |
Log current interpolation cycle, only stores in memory, for performance reasons. More... | |
void | logParts (const PartsLog &log) |
Log current parts cycle, only stores in memory, for performance reasons. More... | |
void | setMaxSituations (int max) |
Max.situations logged. | |
QList< SituationLog > | getSituationsLog () const |
All situation logs. More... | |
QList< PartsLog > | getPartsLog () const |
All parts logs. More... | |
QList< SituationLog > | getSituationsLog (const aviation::CCallsign &cs) const |
All situation logs for callsign. More... | |
QList< PartsLog > | getPartsLog (const aviation::CCallsign &cs) const |
All parts logs for callsign. More... | |
SituationLog | getLastSituationLog () const |
Get last log. More... | |
SituationLog | getLastSituationLog (const aviation::CCallsign &cs) const |
Get last log. More... | |
aviation::CAircraftSituation | getLastSituation () const |
Get last situation. More... | |
aviation::CAircraftSituation | getLastSituation (const aviation::CCallsign &cs) const |
Get last situation. More... | |
aviation::CAircraftParts | getLastParts () const |
Get last parts. More... | |
aviation::CAircraftParts | getLastParts (const aviation::CCallsign &cs) const |
Get last parts. More... | |
PartsLog | getLastPartsLog () const |
Get last parts. More... | |
PartsLog | getLastPartsLog (const aviation::CCallsign &cs) const |
Get last parts. More... | |
Static Public Member Functions | |
static const QStringList & | getLogCategories () |
Log categories. | |
static QStringList | getLatestLogFiles () |
Latest log files: 0: Interpolation / 1: Parts. | |
static QString | getLogDirectory () |
Get the log directory. | |
static const QString & | filePatternInterpolationLog () |
File pattern for interpolation log. | |
static const QString & | filePatternPartsLog () |
File pattern for parts log. | |
static const QStringList & | filePatterns () |
All log.file patterns. | |
static QString | msSinceEpochToTime (qint64 ms) |
Create readable time. | |
static QString | msSinceEpochToTimeAndTimestamp (qint64 ms) |
Create readable time plus timestamp. | |
static QString | msSinceEpochToTime (qint64 t1, qint64 t2, qint64 t3=-1) |
Create readable time. | |
Record internal state of interpolator for debugging.
Definition at line 90 of file interpolationlogger.h.
CAircraftParts swift::misc::simulation::CInterpolationLogger::getLastParts | ( | ) | const |
Get last parts.
Definition at line 240 of file interpolationlogger.cpp.
CAircraftParts swift::misc::simulation::CInterpolationLogger::getLastParts | ( | const aviation::CCallsign & | cs | ) | const |
Get last parts.
Definition at line 247 of file interpolationlogger.cpp.
PartsLog swift::misc::simulation::CInterpolationLogger::getLastPartsLog | ( | ) | const |
Get last parts.
Definition at line 254 of file interpolationlogger.cpp.
PartsLog swift::misc::simulation::CInterpolationLogger::getLastPartsLog | ( | const aviation::CCallsign & | cs | ) | const |
Get last parts.
Definition at line 261 of file interpolationlogger.cpp.
CAircraftSituation swift::misc::simulation::CInterpolationLogger::getLastSituation | ( | ) | const |
Get last situation.
Definition at line 226 of file interpolationlogger.cpp.
CAircraftSituation swift::misc::simulation::CInterpolationLogger::getLastSituation | ( | const aviation::CCallsign & | cs | ) | const |
Get last situation.
Definition at line 233 of file interpolationlogger.cpp.
SituationLog swift::misc::simulation::CInterpolationLogger::getLastSituationLog | ( | ) | const |
Get last log.
Definition at line 212 of file interpolationlogger.cpp.
SituationLog swift::misc::simulation::CInterpolationLogger::getLastSituationLog | ( | const aviation::CCallsign & | cs | ) | const |
Get last log.
Definition at line 219 of file interpolationlogger.cpp.
QList< PartsLog > swift::misc::simulation::CInterpolationLogger::getPartsLog | ( | ) | const |
All parts logs.
Definition at line 182 of file interpolationlogger.cpp.
QList< PartsLog > swift::misc::simulation::CInterpolationLogger::getPartsLog | ( | const aviation::CCallsign & | cs | ) | const |
All parts logs for callsign.
Definition at line 200 of file interpolationlogger.cpp.
QList< SituationLog > swift::misc::simulation::CInterpolationLogger::getSituationsLog | ( | ) | const |
All situation logs.
Definition at line 176 of file interpolationlogger.cpp.
QList< SituationLog > swift::misc::simulation::CInterpolationLogger::getSituationsLog | ( | const aviation::CCallsign & | cs | ) | const |
All situation logs for callsign.
Definition at line 188 of file interpolationlogger.cpp.
void swift::misc::simulation::CInterpolationLogger::logInterpolation | ( | const SituationLog & | log | ) |
Log current interpolation cycle, only stores in memory, for performance reasons.
Definition at line 157 of file interpolationlogger.cpp.
void swift::misc::simulation::CInterpolationLogger::logParts | ( | const PartsLog & | log | ) |
Log current parts cycle, only stores in memory, for performance reasons.
Definition at line 164 of file interpolationlogger.cpp.