OpendTect  6.3
msgh.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H.Bril
8  Date: 19-10-1995
9  Contents: Error handler
10 ________________________________________________________________________
11 
12 */
13 
14 #include "basicmod.h"
15 #include "callback.h"
16 
17 
25 mExpClass(Basic) MsgClass : public CallBacker
26 {
27 public:
28 
29  enum Type { Info, Message, Warning, Error, ProgrammerError };
30 
31  MsgClass( const char* s, Type t=Info )
32  : msg(s), type_(t) {}
33 
34  const char* msg;
36 
37  static CallBack& theCB( const CallBack* cb=0 );
39  static const char* nameOf(Type);
40 
41 };
42 
43 
44 mGlobal(Basic) void UsrMsg(const char*,MsgClass::Type t=MsgClass::Info);
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Type
Definition: msgh.h:29
#define mGlobal(module)
Definition: commondefs.h:160
Definition: msgh.h:29
const char * msg
Definition: msgh.h:34
MsgClass(const char *s, Type t=Info)
Definition: msgh.h:31
void UsrMsg(const char *, MsgClass::Type t=MsgClass::Info)
Will pass the message to the appropriate destination.
Type type_
Definition: msgh.h:35
Class to encapsulate a message to the user.
Definition: msgh.h:25
const char * nameOf(ButtonState)
CallBacks object-oriented (object + method).
Definition: callback.h:62

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017