From: Christian P. <cp...@us...> - 2005-01-21 09:21:15
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24324/include/pclasses/App Modified Files: CmdLine.h Log Message: Removed default values from ctor. Index: CmdLine.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/CmdLine.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CmdLine.h 20 Jan 2005 19:56:29 -0000 1.4 +++ CmdLine.h 21 Jan 2005 09:21:07 -0000 1.5 @@ -68,26 +68,23 @@ class PAPP_EXPORT CmdLineFlag: public CmdLineOption { public: CmdLineFlag(const std::string& shortOpt, const std::string& longOpt, - const std::string& helpText, bool defaultVal = false, - bool required = false); + const std::string& helpText, bool required = false); ~CmdLineFlag(); void setValue(const std::string& val); std::string value() const throw(); - private: - bool _defaultVal; }; //! Command-line value class PAPP_EXPORT CmdLineValue: public CmdLineOption { public: CmdLineValue(const std::string& shortOpt, const std::string& longOpt, - const std::string& helpText, const std::string& defaultVal); + const std::string& helpText); CmdLineValue(const std::string& shortOpt, const std::string& longOpt, - const std::string& helpText, bool requird = false); + const std::string& helpText, bool required); ~CmdLineValue(); @@ -95,7 +92,6 @@ std::string value() const throw(); private: - std::string _defaultVal; std::string _value; }; |