FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Loading...
Searching...
No Matches
trackingmanager.h
1/*
2This file is part of Fast Track.
3
4 FastTrack is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 FastTrack is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with FastTrack. If not, see <https://www.gnu.org/licenses/>.
16*/
17
18#ifndef TRACKINGMANAGER_H
19#define TRACKINGMANAGER_H
20
21#include <QDataStream>
22#include <QDebug>
23#include <QDir>
24#include <QFile>
25#include <QFileDialog>
26#include <QHash>
27#include <QHeaderView>
28#include <QStandardPaths>
29#include <QWidget>
30
31namespace Ui {
32class TrackingManager;
33}
34
35class TrackingManager : public QWidget {
36 Q_OBJECT
37
38 public:
39 explicit TrackingManager(QWidget *parent = nullptr);
40 TrackingManager(const TrackingManager &T) = delete;
41 TrackingManager &operator=(const TrackingManager &T) = delete;
42 TrackingManager &operator=(TrackingManager &&T) = delete;
43 TrackingManager(TrackingManager &&T) = delete;
45
46 private:
47 QString logPath;
48 Ui::TrackingManager *ui;
49
50 public slots:
51 void addLogEntry(QHash<QString, QString> log);
52 void appendToFile(const QString &path, const QHash<QString, QString> &line);
53 void writeToFile(const QString &path, const QList<QHash<QString, QString>> &lines);
54 void readFromFile(const QString &path);
55};
56
57#endif // TRACKINGMANAGER_H
void writeToFile(const QString &path, const QList< QHash< QString, QString > > &lines)
Writes log entries in a file.
Definition trackingmanager.cpp:104
void readFromFile(const QString &path)
Reads a log file.
Definition trackingmanager.cpp:118
void appendToFile(const QString &path, const QHash< QString, QString > &line)
Appends the log entry in a file.
Definition trackingmanager.cpp:91
TrackingManager(QWidget *parent=nullptr)
Constructs the trackingmanager object derived from a QWidget object.
Definition trackingmanager.cpp:37
void addLogEntry(QHash< QString, QString > log)
Adds a log entry inside the ui table and in a log file.
Definition trackingmanager.cpp:77