1.1 --- a/lemon/lp_base.h Tue Apr 14 10:54:42 2009 +0200
1.2 +++ b/lemon/lp_base.h Tue Apr 14 10:40:33 2009 +0100
1.3 @@ -69,6 +69,21 @@
1.4 MAX
1.5 };
1.6
1.7 + ///Enum for \c messageLevel() parameter
1.8 + enum MessageLevel {
1.9 + /// no output (default value)
1.10 + MESSAGE_NOTHING,
1.11 + /// error messages only
1.12 + MESSAGE_ERROR,
1.13 + /// warnings
1.14 + MESSAGE_WARNING,
1.15 + /// normal output
1.16 + MESSAGE_NORMAL,
1.17 + /// verbose output
1.18 + MESSAGE_VERBOSE
1.19 + };
1.20 +
1.21 +
1.22 ///The floating point type used by the solver
1.23 typedef double Value;
1.24 ///The infinity constant
1.25 @@ -973,6 +988,8 @@
1.26
1.27 virtual const char* _solverName() const = 0;
1.28
1.29 + virtual void _messageLevel(MessageLevel level) = 0;
1.30 +
1.31 //Own protected stuff
1.32
1.33 //Constant component of the objective function
1.34 @@ -1527,6 +1544,9 @@
1.35 ///Clears the problem
1.36 void clear() { _clear(); }
1.37
1.38 + /// Sets the message level of the solver
1.39 + void messageLevel(MessageLevel level) { _messageLevel(level); }
1.40 +
1.41 ///@}
1.42
1.43 };