-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscheme.h
50 lines (40 loc) · 1.17 KB
/
scheme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef IKOOSKAR_SHARED_SCHEME_H
#define IKOOSKAR_SHARED_SCHEME_H
#include "app.h"
#include "examstudent.h"
#include "hall.h"
#include <QDate>
#include <QMap>
#include <QString>
namespace ikoOSKAR {
namespace Shared {
class Scheme {
public:
QString name;
QDate date;
QList<QPair<QString, QList<ExamStudent>>> classLists; // [ { className, [ExamStudent] } ]
QList<Hall> hallLayouts; // [Hall]
QString path() const
{
return rootPath() + date.toString("dd.MM.yyyy") + "/" + name;
}
const QString classListPath() const
{
return path() + "/Sınıf Karma Listeleri.xlsx";
}
const QString hallLayoutPath() const
{
return path() + "/Oturma Planları.xlsx";
}
static QString path(const QString& examName, const QDate& examDate)
{
return rootPath() + examDate.toString("dd.MM.yyyy") + "/" + examName;
}
static QString rootPath()
{
return ikoOSKAR::App::pathDocsRoot + "/Sınav Düzenleri/";
}
};
} // namespace Shared
} // namespace ikoOSKAR
#endif // IKOOSKAR_SHARED_SCHEME_H