From: Christian P. <cp...@us...> - 2005-01-20 11:02:12
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3925/include/pclasses/App Modified Files: CmdLine.h Log Message: More work on CmdLine (early commit .. sorry) Index: CmdLine.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/CmdLine.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CmdLine.h 19 Jan 2005 13:43:59 -0000 1.2 +++ CmdLine.h 20 Jan 2005 11:01:59 -0000 1.3 @@ -37,6 +37,12 @@ ~CmdLineOption(); + const std::string& shortName() const throw(); + + const std::string& longName() const throw(); + + bool required() const throw(); + private: std::string _shortOpt; std::string _longOpt; @@ -70,7 +76,7 @@ //! Advanced command-line parser class PAPP_EXPORT CmdLineParser { public: - CmdLineParser(CmdLineOption* opts = 0); + CmdLineParser(CmdLineOption* opts[] = 0); ~CmdLineParser(); bool parse(int argc, char* argv[]); @@ -80,7 +86,7 @@ typedef std::map<std::string, CmdLineOption*> ParsedCmdOptMap; - CmdLineOption* _opts; + CmdLineOption** _opts; ParsedCmdOptMap _parsedOpts; }; |