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;
86 QString toQString(
const QString &separator = {
" " })
const;
99 static const QStringList &getLogCategories();
102 CWorker *writeLogInBackground(
bool clearLog);
108 static QStringList getLatestLogFiles();
111 static QString getLogDirectory();
124 void setMaxSituations(
int max);
128 QList<SituationLog> getSituationsLog()
const;
132 QList<PartsLog> getPartsLog()
const;
175 static const QString &filePatternInterpolationLog();
178 static const QString &filePatternPartsLog();
181 static const QStringList &filePatterns();
184 static QString msSinceEpochToTime(qint64 ms);
187 static QString msSinceEpochToTimeAndTimestamp(qint64 ms);
190 static QString msSinceEpochToTime(qint64 t1, qint64 t2, qint64 t3 = -1);
194 static QString getHtmlInterpolationLog(
const QList<SituationLog> &logs);
197 static QString getKmlChangedSituations(
const QList<SituationLog> &logs);
200 static QString getKmlElevations(
const QList<SituationLog> &logs);
203 static QString getKmlInterpolatedSituations(
const QList<SituationLog> &logs);
206 static QString getHtmlPartsLog(
const QList<PartsLog> &logs);
210 const QList<PartsLog> &getPartsLog);
213 static CStatusMessage logStatusFileWriting(
bool success,
const QString &fileName);
215 mutable QReadWriteLock m_lockSituations;
216 mutable QReadWriteLock m_lockParts;
217 int m_maxSituations = 2500;
218 QList<PartsLog> m_partsLogs;
219 QList<SituationLog> m_situationLogs;
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.