1 /* $Id$ */ 2 // Copyright (C) 2002, International Business Machines 3 // Corporation and others. All Rights Reserved. 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 6 #ifndef CbcMessage_H 7 #define CbcMessage_H 8 9 #if defined(_MSC_VER) 10 // Turn off compiler warning about long names 11 #pragma warning(disable : 4786) 12 #endif 13 14 /** This deals with Cbc messages (as against Clp messages etc). 15 CoinMessageHandler.hpp is the general part of message handling. 16 All it has are enum's for the various messages. 17 CbcMessage.cpp has text in various languages. 18 19 It is trivial to use the .hpp and .cpp file as a basis for 20 messages for other components. 21 */ 22 23 #include "CoinMessageHandler.hpp" 24 enum CBC_Message { 25 CBC_END_GOOD, 26 CBC_MAXNODES, 27 CBC_MAXTIME, 28 CBC_MAXSOLS, 29 CBC_EVENT, 30 CBC_MAXITERS, 31 CBC_SOLUTION, 32 CBC_END_SOLUTION, 33 CBC_SOLUTION2, 34 CBC_END, 35 CBC_INFEAS, 36 CBC_STRONG, 37 CBC_SOLINDIVIDUAL, 38 CBC_INTEGERINCREMENT, 39 CBC_STATUS, 40 CBC_GAP, 41 CBC_ROUNDING, 42 CBC_TREE_SOL, 43 CBC_ROOT, 44 CBC_GENERATOR, 45 CBC_BRANCH, 46 CBC_STRONGSOL, 47 CBC_NOINT, 48 CBC_VUB_PASS, 49 CBC_VUB_END, 50 CBC_NOTFEAS1, 51 CBC_NOTFEAS2, 52 CBC_NOTFEAS3, 53 CBC_CUTOFF_WARNING1, 54 CBC_ITERATE_STRONG, 55 CBC_PRIORITY, 56 CBC_WARNING_STRONG, 57 CBC_START_SUB, 58 CBC_END_SUB, 59 CBC_THREAD_STATS, 60 CBC_CUTS_STATS, 61 CBC_STRONG_STATS, 62 CBC_UNBOUNDED, 63 CBC_OTHER_STATS, 64 CBC_HEURISTICS_OFF, 65 CBC_STATUS2, 66 CBC_FPUMP1, 67 CBC_FPUMP2, 68 CBC_STATUS3, 69 CBC_OTHER_STATS2, 70 CBC_RELAXED1, 71 CBC_RELAXED2, 72 CBC_RESTART, 73 CBC_GENERAL, 74 CBC_ROOT_DETAIL, 75 #ifndef NO_FATHOM_PRINT 76 CBC_FATHOM_CHANGE, 77 #endif 78 CBC_DUMMY_END 79 }; 80 81 class CbcMessage : public CoinMessages { 82 83 public: 84 /**@name Constructors etc */ 85 //@{ 86 /** Constructor */ 87 CbcMessage(Language language = us_en); 88 //@} 89 }; 90 91 #endif 92 93 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2 94 */ 95