]> git.localhorst.tv Git - l2e.git/blob - src/app/Arguments.h
implemented modulo operation for scripts
[l2e.git] / src / app / Arguments.h
1 /*
2  * Arguments.h
3  *
4  *  Created on: Sep 15, 2012
5  *      Author: holy
6  */
7
8 #ifndef APP_ARGUMENTS_H_
9 #define APP_ARGUMENTS_H_
10
11 #include <vector>
12
13 namespace app {
14
15 class Arguments {
16
17 public:
18         Arguments();
19         ~Arguments() { }
20
21 public:
22         enum RunLevel {
23                 DUMP,
24                 PLAY,
25                 WRITE,
26
27                 // temporary modes
28                 BATTLE,
29                 MAP,
30                 SOURCE_WIKI,
31         };
32
33 public:
34         void Read(int argc, char **argv);
35
36         RunLevel GetRunLevel() const { return runlevel; }
37
38         const std::vector<char *> &Infiles() const { return infiles; }
39
40         bool OutfileSet() const { return outfile; }
41         const char *OutfilePath() const { return outfile; }
42
43 private:
44         std::vector<char *> infiles;
45         const char *outfile;
46         RunLevel runlevel;
47
48 };
49
50 }
51
52 #endif /* APP_ARGUMENTS_H_ */