#include "hmessagemgr.h"

HMessageMgr


class description - source file - inheritance tree (.pdf)

class HMessageMgr : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
HMessageMgr

    protected:
void ewrite(const char* text) void write(const char* text) public:
HMessageMgr(const char* name, const char* title) HMessageMgr(const HMessageMgr&) ~HMessageMgr() static TClass* Class() void debug(Char_t level, Int_t det, const char* className, const char* text) void debug(Int_t level, Int_t det, const char* className, const char* text) void debug(Int_t level, Int_t det, const char* className, const char* file, Int_t line, const char* text) void debugB(Char_t level, Int_t det, const char* text) void enableDetectorMsg(Int_t det) void error(Char_t level, Int_t det, const char* className, const char* text) void error(Int_t level, Int_t det, const char* className, const char* text) void errorB(Char_t level, Int_t det, const char* text) static void hydraErrorHandler(int level, Bool_t abort, const char* location, const char* msg) void info(Char_t level, Int_t det, const char* className, const char* text) void info(Int_t level, Int_t det, const char* className, const char* text) void infoB(Char_t level, Int_t det, const char* text) virtual TClass* IsA() const void messageSeperator(Char_t* seperator, Int_t num) HMessageMgr& operator=(const HMessageMgr&) void setDebugLevel(Char_t level) Bool_t setDefault() void setF(const char* name) Bool_t setFile(const char* dir) void setInfoLevel(Char_t level) void setL(int num) Bool_t setPort(const char* host, Int_t port) void setScreenOutput(Bool_t f = kTRUE) void setWarningLevel(Char_t level) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t switchOff() void warning(Char_t level, Int_t det, const char* className, const char* text) void warning(Int_t level, Int_t det, const char* className, const char* text) void warningB(Char_t level, Int_t det, const char* text)

Data Members

    private:
Char_t debugLevel !< Level up to which the messages wil be printed. Char_t warningLevel !< Level up to which the messages wil be printed. Char_t infoLevel !< Level up to which the messages wil be printed. ofstream* msgFile !< File to write messages to (debug,warning,info) ofstream* errorFile !< File to write error messages to TSocket* msgSocket !< Socket to send messages to (debug,warning,info) TSocket* errorSocket !< Socket to send error messages to TString* thisHost !< Name of this host Int_t detectorMsg !< Bitmask fo which detector to print messages Char_t* msg1 !< internal message variable Char_t* msg2 !< internal message variable Char_t* file !< pointer to store name of file where message comes from Int_t line !< line in file where message comes from Bool_t screen !< write to stdout in addition to file or socket public:
static const HMessageMgr::Detector DET_RICH static const HMessageMgr::Detector DET_START static const HMessageMgr::Detector DET_MDC static const HMessageMgr::Detector DET_TOF static const HMessageMgr::Detector DET_TOFINO static const HMessageMgr::Detector DET_SHOWER static const HMessageMgr::Detector DET_TRIGGER static const HMessageMgr::Detector DET_RUNTIMEDB static const HMessageMgr::Detector DET_KICKPLANE static const HMessageMgr::Detector DET_QA static const HMessageMgr::Detector DET_ALL

Class Description


  HMessageMgr

  This class manages three different outputs for all kind of messages.
  Besides the standart output, which is the default, one can also
  write the messages to a file, or via a socket to a remote logging process.

  The usage of this class should be done via the four macros that are defined
  in the hmessagemgr.h file.
  DEBUG_msg(level, det, text)
  ERROR_msg(det, text)
  WARNING_msg(level, det, text)
  INFO_msg(level, det, text)

  The meaning of the parameters is:
  level - level of this message, never set it to zero because this means
          no message at all will be printed
  det   - detector which sends this message, can be one of:
          DET_RICH DET_START DET_MDC DET_TOF DET_TOFINO DET_SHOWER
          DET_TRIGGER
  text  - text to print



HMessageMgr(const char *name, const char *title) : TNamed(name,title)

~HMessageMgr(void)

Bool_t setDefault(void)

Bool_t setFile(const char *dir)

Bool_t setPort(const char *host, Int_t port)

Bool_t switchOff(void)

void setDebugLevel(Char_t level)

void setInfoLevel(Char_t level)

void setWarningLevel(Char_t level)

void enableDetectorMsg(Int_t det)

void messageSeperator(Char_t *seperator, Int_t num)

void hydraErrorHandler(int level, Bool_t abort, const char *location, const char *msg)

void debug(Char_t level, Int_t det, const char *className, const char *text)

void error(Char_t level, Int_t det, const char *className, const char *text)

void warning(Char_t level, Int_t det, const char *className, const char *text)

void info(Char_t level, Int_t det, const char *className, const char *text)

void debug(Int_t level, Int_t det, const char *className, const char *text, ...)

void error(Int_t level, Int_t det, const char *className, const char *text, ...)

void warning(Int_t level, Int_t det, const char *className, const char *text, ...)

void info(Int_t level, Int_t det, const char *className, const char *text, ...)

void debugB(Char_t level, Int_t det, const char *text, ...)

void errorB(Char_t level, Int_t det, const char *text, ...)

void warningB(Char_t level, Int_t det, const char *text, ...)

void infoB(Char_t level, Int_t det, const char *text, ...)

void debug(Int_t level, Int_t det, const char * className, const char *file, Int_t line, const char *text, ...)

void write(const char *text)

void ewrite(const char *text)

void setF(const char *name)

void setL(int num)



Inline Functions


                void setScreenOutput(Bool_t f = kTRUE)
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
         HMessageMgr HMessageMgr(const HMessageMgr&)
        HMessageMgr& operator=(const HMessageMgr&)


Author: Joern Wuestenfeld
Last update: 15/04/2002 by Joern Wuestenfeld


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.