iVS3D v2.0.0
Loading...
Searching...
No Matches
LogFileParent.h
1#ifndef LOGFILEPARENT_H
2#define LOGFILEPARENT_H
3
4#include <QObject>
5#include <QDateTime>
6#include <QMap>
7#include <QVariant>
8#include <QElapsedTimer>
9#include <QJsonObject>
10#include <QJsonDocument>
11#include <QJsonArray>
12#include <QFile>
13#include <sstream>
14
15#include "stringcontainer.h"
16
17#define EMPTY_TYPE ""
18#define DATE_FORMAT "dd.MM.yyyy hh:mm:ss.z"
19
29class LogFileParent : public QObject
30{
31 //Q_OBJECT
32public:
37 virtual QString getName() = 0;
42 virtual QString getCreationTime() = 0;
47 virtual bool getIsPlugin() = 0;
52 virtual void setSettings(QMap<QString, QVariant> settings) = 0;
57 virtual void setInputInfo(std::vector<uint> inputFrames) = 0;
62 virtual void setResultsInfo(std::vector<uint> keyframes) = 0;
69 virtual void addCustomEntry(QString entryName, QVariant entryValue, QString type = EMPTY_TYPE) = 0;
74 virtual void startTimer(QString timerName) = 0;
78 virtual void stopTimer() = 0;
83 virtual QJsonObject toQJSON() = 0;
89 virtual bool print(QString path) = 0;
90};
91
92#endif // LOGFILEPARENT_H
The LogFileParent class logs progress as well as information about a process (e.g....
Definition LogFileParent.h:30
virtual bool getIsPlugin()=0
getIsPlugin Returns true if the logged process is a plugin
virtual void stopTimer()=0
stopTimer Stops the currently running timer and logs the surpassed timespan
virtual void startTimer(QString timerName)=0
startTimer Starts a timer to measure a specific internal process
virtual QJsonObject toQJSON()=0
toQJSON Returns the current state of the log file in form of a QJsonObject
virtual void addCustomEntry(QString entryName, QVariant entryValue, QString type=EMPTY_TYPE)=0
addCustomEntry allows to log with custom entries and types
virtual bool print(QString path)=0
print Saves the current sate of the log file as a file at the given path
virtual QString getName()=0
getName Returns the name
virtual QString getCreationTime()=0
getCreationTime Returns the time and date when the file was initalized
virtual void setInputInfo(std::vector< uint > inputFrames)=0
setInputInfo allows to log the used input
virtual void setResultsInfo(std::vector< uint > keyframes)=0
setResultsInfo allows to log the returned result of the process
virtual void setSettings(QMap< QString, QVariant > settings)=0
setSettings Allows to log the used settings