diff -r 7f6e2bd76654 -r 141f9c0db4a3 lemon/arg_parser.h --- a/lemon/arg_parser.h Wed Mar 17 12:35:52 2010 +0100 +++ b/lemon/arg_parser.h Sat Mar 06 14:35:12 2010 +0000 @@ -2,7 +2,7 @@ * * This file is a part of LEMON, a generic C++ optimization library. * - * Copyright (C) 2003-2009 + * Copyright (C) 2003-2010 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * @@ -42,10 +42,10 @@ UNKNOWN_OPT, /// Unknown option was given INVALID_OPT /// Invalid combination of options }; - + private: Reason _reason; - + public: ///Constructor ArgParserException(Reason r) throw() : _reason(r) {} @@ -141,7 +141,7 @@ std::vector _file_args; std::string _command_name; - + private: //Bind a function to an option. @@ -155,7 +155,7 @@ void (*func)(void *),void *data); bool _exit_on_problems; - + void _terminate(ArgParserException::Reason reason) const; public: @@ -423,7 +423,7 @@ const std::vector &files() const { return _file_args; } ///Throw instead of exit in case of problems - void throwOnProblems() + void throwOnProblems() { _exit_on_problems=false; }