• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

msgh.h

00001 #ifndef msgh_h
00002 #define msgh_h
00003 
00004 /*
00005 ________________________________________________________________________
00006 
00007  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
00008  Author:        A.H.Bril
00009  Date:          19-10-1995
00010  Contents:      Error handler
00011  RCS:           $Id: msgh.h,v 1.12 2009-07-22 16:01:14 cvsbert Exp $
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

Generated on Tue Nov 30 2010 for Basic by  doxygen 1.7.1