-
Notifications
You must be signed in to change notification settings - Fork 0
/
CTemplateManager.h
33 lines (26 loc) · 815 Bytes
/
CTemplateManager.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
#ifndef CTEMPLATEMANAGER_H
#define CTEMPLATEMANAGER_H
#include <QVector>
#include <QMap>
#include "CTemplate.h"
class CTemplateManager
{
public:
static CTemplateManager* Instance();
private:
// Constructors
CTemplateManager();
CTemplateManager(const CTemplateManager& a_rCTemplateManager);
CTemplateManager& operator=(const CTemplateManager& a_rCTemplateManager);
// Functions
/// \brief build CTemplate object from file path
CTemplate* BuildTemplateFromFile(const QString& a_sPath);
// Attributs
//QVector<CTemplate*> m_vTemplates;
QMap<QString, QVector<CTemplate*>> m_vTemplatesMap;
QString m_sTemplateFolder;
public:
~CTemplateManager();
const QVector<CTemplate*>& GetTemplates(const QString& a_sTemplatesSubfolder);
};
#endif // CTEMPLATEMANAGER_H