4#include "LogFileParent.h"
31 LogFile(
const QString &name,
bool isPlugin);
51 void setSettings(QMap<QString, QVariant> settings)
override;
56 void setInputInfo(std::vector<uint> inputFrames)
override;
68 void addCustomEntry(QString entryName, QVariant entryValue, QString type = EMPTY_TYPE)
override;
88 bool print(QString path)
override;
94 QDateTime m_creationTime;
96 QList<QJsonObject> m_customLog;
97 QList<INTERNAL_PROCEDURE> m_procedureList;
98 QElapsedTimer m_timer;
99 QMap<QString, QVariant> m_settings;
100 QJsonObject m_inputInfo, m_resultInfo;
102 QString m_globalProcedureStart, m_globalProcedureStop;
103 qint64 m_globalProcedureElapsed;
104 QElapsedTimer m_totalProcedures;
106 QVariant vectorToVariant(std::vector<uint> vector);
107 QString getCurrentTime();
The LogFile class logs progress as well as information about a process (e.g. Inport,...
Definition logfile.h:23
QJsonObject toQJSON() override
toQJSON Returns the current state of the log file in form of a QJsonObject
Definition logfile.cpp:104
void setResultsInfo(std::vector< uint > keyframes) override
setResultsInfo allows to log the returned result of the process
Definition logfile.cpp:41
void setInputInfo(std::vector< uint > inputFrames) override
setInputInfo allows to log the used input
Definition logfile.cpp:33
bool getIsPlugin() override
getIsPlugin Returns true if the logged process is a plugin
Definition logfile.cpp:22
QString getCreationTime() override
getCreationTime Returns the time and date when the file was initalized
Definition logfile.cpp:17
QString getName() override
getName Returns the name
Definition logfile.cpp:12
bool print(QString path) override
print Saves the current sate of the log file as a file at the given path
Definition logfile.cpp:151
void addCustomEntry(QString entryName, QVariant entryValue, QString type=EMPTY_TYPE) override
addCustomEntry allows to log with custom entries and types
Definition logfile.cpp:49
void stopTimer() override
stopTimer Stops the currently running timer and logs the surpassed timespan
Definition logfile.cpp:82
void setSettings(QMap< QString, QVariant > settings) override
setSettings Allows to log the used settings
Definition logfile.cpp:27
void startTimer(QString timerName) override
startTimer Starts a timer to measure a specific internal process
Definition logfile.cpp:62
The LogFileParent class logs progress as well as information about a process (e.g....
Definition LogFileParent.h:30