diff -r 37216ca5b9c6 -r 745e182d0139 lemon/lp_base.h --- a/lemon/lp_base.h Tue Apr 07 14:50:20 2009 +0100 +++ b/lemon/lp_base.h Wed Apr 08 22:49:28 2009 +0200 @@ -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); } + ///@} };