00001 #ifndef msgh_h
00002 #define msgh_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "callback.h"
00017
00018
00026 mClass MsgClass : public CallBacker
00027 {
00028 public:
00029
00030 enum Type { Info, Message, Warning, Error, ProgrammerError };
00031
00032 MsgClass( const char* s, Type t=Info )
00033 : msg(s), type_(t) {}
00034
00035 const char* msg;
00036 Type type_;
00037
00038 static CallBack& theCB( const CallBack* cb=0 );
00040 static const char* nameOf(Type);
00041
00042 };
00043
00044
00045 mGlobal void UsrMsg(const char*,MsgClass::Type t=MsgClass::Info);
00047
00048
00049
00050 #endif