00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ARGUMENTPARSER_HPP
00009 #define ARGUMENTPARSER_HPP
00010
00011 #include <map>
00012 #include <string>
00013
00014 using namespace std;
00015
00020 class ArgumentParser
00021 {
00022 public:
00023 ArgumentParser();
00024 virtual ~ArgumentParser();
00025
00026 bool parseArguments( int argc, char **argv );
00027 uint numArguments() const;
00028 string argValue( const string &arg ) const;
00029 bool boolArgValue( const string &arg ) const;
00030 bool singleArgSet( char arg ) const;
00031
00032 private:
00033 map<string, string> ArgsMap;
00034 string NoParamArgs;
00035 };
00036
00037
00038 #endif // ARGUMENTPARSER_HPP