| 1 | #ifndef __argProcessor__ |
| 2 | #define __argProcessor__ |
| 3 | |
| 4 | #include <map> |
| 5 | #include <string> |
| 6 | using namespace std; |
| 7 | |
| 8 | class ArgProcessor { |
| 9 | |
| 10 | public: |
| 11 | ArgProcessor(int argc, char* argv[]); |
| 12 | |
| 13 | bool isArgSet(string arg); |
| 14 | |
| 15 | int getIntVal(string arg); |
| 16 | |
| 17 | long getLongVal(string arg); |
| 18 | |
| 19 | float getFloatVal(string arg); |
| 20 | |
| 21 | string getStringVal(string arg); |
| 22 | |
| 23 | private: |
| 24 | map<string,bool> argSet; |
| 25 | map<string,string> argVal; |
| 26 | |
| 27 | }; |
| 28 | |
| 29 | |
| 30 | #endif |
| 31 |