00001 /* 00002 * lib/message/handler_console.h 00003 * 00004 * Message handling "system" for errors, warnings and verbose messages. 00005 * This is the (UNIX default) console message handler. 00006 * 00007 * Copyright (c) 2004 by Wolfgang Wieser ] wwieser (a) gmx <*> de [ 00008 * 00009 * This file may be distributed and/or modified under the terms of the 00010 * GNU General Public License version 2 as published by the Free Software 00011 * Foundation. (See COPYING.GPL for details.) 00012 * 00013 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00014 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00015 * 00016 */ 00017 00018 #ifndef _LIB_MESSAGE_HANDLER_CONSOLE_H_ 00019 #define _LIB_MESSAGE_HANDLER_CONSOLE_H_ 1 00020 00029 #include <lib/sconfig.h> /* MUST be first */ 00030 00031 #include <lib/message/handler.h> 00032 00033 00041 class MessageHandler_Console : public MessageHandler 00042 { 00043 private: 00045 void HandleMessage(const Message &m); 00046 00048 int use_color; 00049 00050 private: 00052 MessageHandler_Console(const MessageHandler_Console &); 00054 void operator=(const MessageHandler_Console &); 00055 public: 00064 MessageHandler_Console(Message::Type mtmask=Message::MTAllNonDebug, 00065 int use_color=0); 00067 ~MessageHandler_Console(); 00068 }; 00069 00070 #endif /* _LIB_MESSAGE_HANDLER_CONSOLE_H_ */