Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MsgServiceWrapper.h

Go to the documentation of this file.
00001 #ifndef MSGSERVICEWRAPPER_H
00002 #define MSGSERVICEWRAPPER_H
00003 
00004 //#define SRT_PROJECT_MINOS 1
00005 
00006 #if SRT_PROJECT_MINOS
00007 
00008 #include "MessageService/MsgService.h"
00009 
00010 #else
00011 
00012 //#warning not MINOS so MsgService is very primitive
00013 // stolen from MsgService.h
00014 #include <iosfwd>
00015 
00016 // this need to be defined for MSG() usage
00017 class Msg
00018 {
00019 public:
00020   //======================================================================
00021   // Define the various print levels for messages
00022   //======================================================================
00023   typedef int LogLevel_t;
00024   static const LogLevel_t kMinLogLevel = 0;
00025   static const LogLevel_t kVerbose     = 0;
00026   static const LogLevel_t kDebug       = 1;
00027   static const LogLevel_t kSynopsis    = 2;
00028   static const LogLevel_t kInfo        = 3;
00029   static const LogLevel_t kWarning     = 5;
00030   static const LogLevel_t kError       = 6;
00031   static const LogLevel_t kFatal       = 7;
00032   static const LogLevel_t kNLogLevel   = 8;
00033 };
00034 
00035 #ifdef MACOSX
00036   static string __CVSID__ = "__CVSID__ undefined";
00037   class SegMsgCVSID {
00038   public:
00039     SetMsgCVSID(const char* cvsid) { __CVSID__ = cvsid; }
00040   };
00041   #define CVSID(x) static SetMsgCVSID setmsgcvsid(x)
00042 #else
00043   #if (( __GNUC__ >= 3) && !(__CINT__))
00044     #define CVSID(x) static const char* __CVSID__  __attribute__ ((__unused__)) = x
00045   #else
00046     #define CVSID(x) static const char* __CVSID__ = x
00047   #endif
00048 #endif // MACOSX
00049 
00050 #include <iostream>
00051 #include <iomanip>
00052 using std::cout;
00053 using std::endl;
00054 
00055 // really stupid substitutions
00056 #define MSG(s,l) std::cout << "s=" << s << " l=" << (int)l << " "
00057 #define MAXMSG(s,l,c) std::cout << "s=" << s << " l=" << (int)l << " "
00058 
00059 
00060 
00061 #endif
00062 
00063 #endif  // MSGSERVICEWRAPPER_H

Generated on Sat Nov 21 22:46:46 2009 for loon by  doxygen 1.3.9.1