Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

argumentparser.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2003, Frederik Holljen
00003  * All Rights Reserved.
00004  *
00005  * See COPYING for licensing.
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

Generated on Mon Dec 1 14:26:27 2003 for Ck by doxygen 1.3.3