blob: dc56d3464d0c7603ff9e023660dc2034984e2dbc (
plain) (
blame)
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
|
#ifndef COMMANDLINEOPTIONS_H
#define COMMANDLINEOPTIONS_H
#include <QMap>
#include <QString>
class CommandLineOptions {
public:
CommandLineOptions(int argc, char * const argv[]);
~CommandLineOptions();
bool contains(const QString& key) const {
return options.contains(key);
}
QString value(const QString& key) const {
return options.value(key);
}
private:
QMap<QString, QString> options;
};
#endif // COMMANDLINEOPTIONS_H
|