]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Arguments.h
added argument interpreter
[l2e.git] / src / app / Arguments.h
diff --git a/src/app/Arguments.h b/src/app/Arguments.h
new file mode 100644 (file)
index 0000000..c7e37ee
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Arguments.h
+ *
+ *  Created on: Sep 15, 2012
+ *      Author: holy
+ */
+
+#ifndef APP_ARGUMENTS_H_
+#define APP_ARGUMENTS_H_
+
+#include <vector>
+
+namespace app {
+
+class Arguments {
+
+public:
+       Arguments();
+       ~Arguments() { }
+
+public:
+       void Read(int argc, char **argv);
+
+       const std::vector<char *> &Infiles() const { return infiles; }
+
+       bool OutfileSet() const { return outfile; }
+       const char *OutfilePath() const { return outfile; }
+
+private:
+       std::vector<char *> infiles;
+       const char *outfile;
+
+};
+
+}
+
+#endif /* APP_ARGUMENTS_H_ */