1.1 --- a/lemon/clp.cc Tue Apr 14 10:54:42 2009 +0200
1.2 +++ b/lemon/clp.cc Tue Apr 14 10:40:33 2009 +0100
1.3 @@ -24,7 +24,7 @@
1.4 ClpLp::ClpLp() {
1.5 _prob = new ClpSimplex();
1.6 _init_temporals();
1.7 - messageLevel(MESSAGE_NO_OUTPUT);
1.8 + messageLevel(MESSAGE_NOTHING);
1.9 }
1.10
1.11 ClpLp::ClpLp(const ClpLp& other) {
1.12 @@ -32,7 +32,7 @@
1.13 rows = other.rows;
1.14 cols = other.cols;
1.15 _init_temporals();
1.16 - messageLevel(MESSAGE_NO_OUTPUT);
1.17 + messageLevel(MESSAGE_NOTHING);
1.18 }
1.19
1.20 ClpLp::~ClpLp() {
1.21 @@ -430,8 +430,24 @@
1.22 _clear_temporals();
1.23 }
1.24
1.25 - void ClpLp::messageLevel(MessageLevel m) {
1.26 - _prob->setLogLevel(static_cast<int>(m));
1.27 + void ClpLp::_messageLevel(MessageLevel level) {
1.28 + switch (level) {
1.29 + case MESSAGE_NOTHING:
1.30 + _prob->setLogLevel(0);
1.31 + break;
1.32 + case MESSAGE_ERROR:
1.33 + _prob->setLogLevel(1);
1.34 + break;
1.35 + case MESSAGE_WARNING:
1.36 + _prob->setLogLevel(2);
1.37 + break;
1.38 + case MESSAGE_NORMAL:
1.39 + _prob->setLogLevel(3);
1.40 + break;
1.41 + case MESSAGE_VERBOSE:
1.42 + _prob->setLogLevel(4);
1.43 + break;
1.44 + }
1.45 }
1.46
1.47 } //END OF NAMESPACE LEMON