6 #ifndef SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONLOGGER_H
7 #define SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONLOGGER_H
10 #include <QStringList>
28 qint64 tsCurrent = -1;
29 qint64 tsInterpolated = -1;
30 double groundFactor = -1;
31 double simTimeFraction = -1;
32 double deltaSampleTimesMs = -1;
33 bool useParts =
false;
34 bool interpolantRecalc =
false;
35 int noNetworkSituations = 0;
36 int noInvalidSituations = 0;
54 const QString &interpolationType()
const;
59 return interpolationSituations.frontOrDefault();
65 return interpolationSituations.backOrDefault();
72 QString toQString(
bool withSetup,
bool withCurrentSituation,
bool withElevation,
bool withOtherPositions,
73 bool withDeltaTimes,
const QString &separator = {
" " })
const;
79 qint64 tsCurrent = -1;
81 int noNetworkParts = 0;
102 CWorker *writeLogInBackground(
bool clearLog);
111 static QString getLogDirectory();
124 void setMaxSituations(
int max);
175 static const QString &filePatternInterpolationLog();
178 static const QString &filePatternPartsLog();
184 static QString msSinceEpochToTime(qint64 ms);
187 static QString msSinceEpochToTimeAndTimestamp(qint64 ms);
190 static QString msSinceEpochToTime(qint64 t1, qint64 t2, qint64 t3 = -1);
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()
NULL PQ.
Value object for interpolator and rendering per callsign.
Record internal state of interpolator for debugging.
Free functions in swift::misc.
Log entry for parts interpolation.
aviation::CAircraftParts parts
parts to be logged
aviation::CCallsign callsign
current callsign
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)
const aviation::CAircraftSituation & newestInterpolationSituation() const
The newest situation.
aviation::CCallsign callsign
current callsign
aviation::CAircraftSituation situationCurrent
interpolated situation
const aviation::CAircraftSituation & oldestInterpolationSituation() const
The oldest situation.
QString elevationInfo
info about elevation retrieval
aviation::CAircraftSituationChange change
change
aviation::CAircraftParts parts
corresponding parts used in interpolator
QString altCorrection
info about altitude correction as CAircraftSituation::AltitudeCorrection
CInterpolationAndRenderingSetupPerCallsign usedSetup
used setup
#define SWIFT_MISC_EXPORT
Export a class or function from the library.