namespace app {
+/// Specialized argument interpreter.
+/// Reads command line arguments via Read(int, char**) function.
class Arguments {
public:
Arguments();
~Arguments() { }
+public:
+ enum RunLevel {
+ DUMP,
+ PLAY,
+ WRITE,
+
+ // temporary modes
+ BATTLE,
+ MAP,
+ SOURCE_WIKI,
+ };
+
public:
void Read(int argc, char **argv);
+ RunLevel GetRunLevel() const { return runlevel; }
+
const std::vector<char *> &Infiles() const { return infiles; }
bool OutfileSet() const { return outfile; }
private:
std::vector<char *> infiles;
const char *outfile;
+ RunLevel runlevel;
};