swift
Public Member Functions | Static Public Member Functions | List of all members
swift::misc::simulation::CInterpolationLogger Class Reference

Record internal state of interpolator for debugging. More...

Inheritance diagram for swift::misc::simulation::CInterpolationLogger:
[legend]

Public Member Functions

 CInterpolationLogger (QObject *parent=nullptr)
 Constructor.
 
CWorkerwriteLogInBackground (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< SituationLoggetSituationsLog () const
 All situation logs. More...
 
QList< PartsLoggetPartsLog () const
 All parts logs. More...
 
QList< SituationLoggetSituationsLog (const aviation::CCallsign &cs) const
 All situation logs for callsign. More...
 
QList< PartsLoggetPartsLog (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.
 

Detailed Description

Record internal state of interpolator for debugging.

Definition at line 90 of file interpolationlogger.h.

Member Function Documentation

◆ getLastParts() [1/2]

CAircraftParts swift::misc::simulation::CInterpolationLogger::getLastParts ( ) const

Get last parts.

Remarks
This function is thread safe.

Definition at line 240 of file interpolationlogger.cpp.

◆ getLastParts() [2/2]

CAircraftParts swift::misc::simulation::CInterpolationLogger::getLastParts ( const aviation::CCallsign cs) const

Get last parts.

Remarks
This function is thread safe.

Definition at line 247 of file interpolationlogger.cpp.

◆ getLastPartsLog() [1/2]

PartsLog swift::misc::simulation::CInterpolationLogger::getLastPartsLog ( ) const

Get last parts.

Remarks
This function is thread safe.

Definition at line 254 of file interpolationlogger.cpp.

◆ getLastPartsLog() [2/2]

PartsLog swift::misc::simulation::CInterpolationLogger::getLastPartsLog ( const aviation::CCallsign cs) const

Get last parts.

Remarks
This function is thread safe.

Definition at line 261 of file interpolationlogger.cpp.

◆ getLastSituation() [1/2]

CAircraftSituation swift::misc::simulation::CInterpolationLogger::getLastSituation ( ) const

Get last situation.

Remarks
This function is thread safe.

Definition at line 226 of file interpolationlogger.cpp.

◆ getLastSituation() [2/2]

CAircraftSituation swift::misc::simulation::CInterpolationLogger::getLastSituation ( const aviation::CCallsign cs) const

Get last situation.

Remarks
This function is thread safe.

Definition at line 233 of file interpolationlogger.cpp.

◆ getLastSituationLog() [1/2]

SituationLog swift::misc::simulation::CInterpolationLogger::getLastSituationLog ( ) const

Get last log.

Remarks
This function is thread safe.

Definition at line 212 of file interpolationlogger.cpp.

◆ getLastSituationLog() [2/2]

SituationLog swift::misc::simulation::CInterpolationLogger::getLastSituationLog ( const aviation::CCallsign cs) const

Get last log.

Remarks
This function is thread safe.

Definition at line 219 of file interpolationlogger.cpp.

◆ getPartsLog() [1/2]

QList< PartsLog > swift::misc::simulation::CInterpolationLogger::getPartsLog ( ) const

All parts logs.

Remarks
This function is thread safe.

Definition at line 182 of file interpolationlogger.cpp.

◆ getPartsLog() [2/2]

QList< PartsLog > swift::misc::simulation::CInterpolationLogger::getPartsLog ( const aviation::CCallsign cs) const

All parts logs for callsign.

Remarks
This function is thread safe.

Definition at line 200 of file interpolationlogger.cpp.

◆ getSituationsLog() [1/2]

QList< SituationLog > swift::misc::simulation::CInterpolationLogger::getSituationsLog ( ) const

All situation logs.

Remarks
This function is thread safe.

Definition at line 176 of file interpolationlogger.cpp.

◆ getSituationsLog() [2/2]

QList< SituationLog > swift::misc::simulation::CInterpolationLogger::getSituationsLog ( const aviation::CCallsign cs) const

All situation logs for callsign.

Remarks
This function is thread safe.

Definition at line 188 of file interpolationlogger.cpp.

◆ logInterpolation()

void swift::misc::simulation::CInterpolationLogger::logInterpolation ( const SituationLog log)

Log current interpolation cycle, only stores in memory, for performance reasons.

Remarks
const to allow const interpolator functions
This function is thread safe.

Definition at line 157 of file interpolationlogger.cpp.

◆ logParts()

void swift::misc::simulation::CInterpolationLogger::logParts ( const PartsLog log)

Log current parts cycle, only stores in memory, for performance reasons.

Remarks
const to allow const interpolator functions
This function is thread safe.

Definition at line 164 of file interpolationlogger.cpp.


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