Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBmessage.hxx

Go to the documentation of this file.
00001 #ifndef _CTBmessage_HXX
00002 #define _CTBmessage_HXX 1
00003 
00008 /*----------------------------------------------------------------------------*/
00009 /* C Tool Box: Designed and implemented by:                                   */
00010 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00011 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00012 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00013 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00014 /*------------------------------------------+---------------------------------*/
00015 
00016 class CTBmessageWriter;                     // forward declaration
00017 
00018 class CTBmessage {
00019 
00020   public: 
00021 
00022     static void     Status(const char* c_text);
00023     static void     Info(const char* c_text);
00024     static void     Warning(const char* c_text);
00025     static CTBint   Error(const char* c_text);
00026 
00027     static void     Hook(CTBmessageWriter* p_mw = 0);
00028 
00029   private:
00030 
00031     static CTBmessageWriter* mp_mw;
00032 
00033 };
00034 
00035 class CTBmessageWriter {
00036   public:
00037 
00038     virtual         ~CTBmessageWriter();
00039   
00040     virtual void    Status(const char* c_text) = 0;
00041     virtual void    Info(const char* c_text) = 0;
00042     virtual void    Warning(const char* c_text) = 0;
00043     virtual CTBint  Error(const char* c_text) = 0;
00044 
00045 };
00046 
00047 #if !(defined(CTB__OutLine) || defined(CTBmessage__OutLine))
00048 //#include "CTBmessage.icc"
00049 #endif
00050 
00051 #endif

Generated at Fri Oct 24 18:11:29 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001