X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FArguments.h;h=ee7654fae3656060344eb5dd46c71c4513ebe1d1;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=c7e37eee1419209d95cb2db9453982376de71c09;hpb=7830acc2ab78d0c82a72948c4eb87eeb6463693c;p=l2e.git diff --git a/src/app/Arguments.h b/src/app/Arguments.h index c7e37ee..ee7654f 100644 --- a/src/app/Arguments.h +++ b/src/app/Arguments.h @@ -1,10 +1,3 @@ -/* - * Arguments.h - * - * Created on: Sep 15, 2012 - * Author: holy - */ - #ifndef APP_ARGUMENTS_H_ #define APP_ARGUMENTS_H_ @@ -12,15 +5,31 @@ 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 &Infiles() const { return infiles; } bool OutfileSet() const { return outfile; } @@ -29,9 +38,10 @@ public: private: std::vector infiles; const char *outfile; + RunLevel runlevel; }; } -#endif /* APP_ARGUMENTS_H_ */ +#endif