00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __ARGS__H_
00017 #define __ARGS__H_
00018
00019 #include<string>
00020 #include<vector>
00021 #include<iostream>
00022
00023 namespace mx
00024 {
00025 using std::string;
00027 class mxArgs {
00028 public:
00033 explicit mxArgs(int &argc, char **argv);
00039 bool testForSwitchAndRemove(string what);
00044 bool testForSwitchAndLeave(string what);
00049 string testForItem(string what);
00050 private:
00052 std::vector<std::string> arglist;
00053 };
00054
00055 }
00056
00057
00058 #endif
00059