diff -r 7a28e215f715 -r 99a31b399b59 lemon/lp_base.h --- a/lemon/lp_base.h Tue Apr 14 10:54:42 2009 +0200 +++ b/lemon/lp_base.h Tue Apr 14 10:40:33 2009 +0100 @@ -69,6 +69,21 @@ MAX }; + ///Enum for \c messageLevel() parameter + enum MessageLevel { + /// no output (default value) + MESSAGE_NOTHING, + /// error messages only + MESSAGE_ERROR, + /// warnings + MESSAGE_WARNING, + /// normal output + MESSAGE_NORMAL, + /// verbose output + MESSAGE_VERBOSE + }; + + ///The floating point type used by the solver typedef double Value; ///The infinity constant @@ -973,6 +988,8 @@ virtual const char* _solverName() const = 0; + virtual void _messageLevel(MessageLevel level) = 0; + //Own protected stuff //Constant component of the objective function @@ -1527,6 +1544,9 @@ ///Clears the problem void clear() { _clear(); } + /// Sets the message level of the solver + void messageLevel(MessageLevel level) { _messageLevel(level); } + ///@} };