-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigparser.h
More file actions
34 lines (24 loc) · 779 Bytes
/
configparser.h
File metadata and controls
34 lines (24 loc) · 779 Bytes
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
#ifndef CONFIGPARSER_H
#define CONFIGPARSER_H
#include <QString>
#include <QMap>
#include <QVector>
#include <QDomDocument>
class ConfigParser
{
public:
ConfigParser();
virtual ~ConfigParser();
bool load(const QString& cfg_file);
const QMap<QString, QVector<QString> >& weeklies() const { return m_weeklies; }
const QMap<QString, QString>& gamerTagReplacements() const { return m_gamerTagReplacements; }
QString lastError() const { return m_lastError; }
private:
bool parseWeeklies(QDomElement e);
QString m_lastError;
QString m_elo_ranking_path;
QString m_pvp_path;
QMap<QString, QVector<QString> > m_weeklies;
QMap<QString, QString> m_gamerTagReplacements;
};
#endif // CONFIGPARSER_H