library: libCore
#include "TMessageHandler.h"


class description - header file - source file
viewCVS header - viewCVS source

class TMessageHandler: public TNamed

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TMessageHandler(const TMessageHandler&)
TMessageHandler(const TClass* cl, Bool_t derived = kTRUE)
TMessageHandler(const char* cl, Bool_t derived = kTRUE)
voidTObject::AbstractMethod(const char* method) const
virtual voidAdd()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Int_tGetMessageCount(Int_t messId) const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetSize() const
virtual const char*TNamed::GetTitle() const
virtual Int_tGetTotalMessageCount() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tHandleDerived() const
virtual voidHandleMessage(Int_t id, const TObject* obj)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tNotify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidRemove()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
const TClass*fClassclass for which message has to be handled
const TObject*fMessObjobject generating message
Int_tfMessIdmessage id (often matching specific enum in fClass)
Int_tfSizenumber of different messages handled
Int_t*fCntscount per message
Int_t*fMessIdsmessage ids
Bool_tfDerivedif true handle messages also for derived classes
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Description

 Handle messages that might be generated by the system.               
 By default a handler only keeps track of the different messages      
 generated for a specific class. By deriving from this class and      
 overriding Notify() one can implement custom message handling.       
 In Notify() one has access to the message id and the object          
 generating the message. One can install more than one message        
 handler per class. A message handler can be removed or again         
 added when needed.                                                   
 All Root "Warnings"  are logged as message 1001                      
 All Root "Errors"    are logged as message 1002                      
 All Root "SysErrors" are logged as message 1003                      
 All Root "Fatals"    are logged as message 1004                      

TMessageHandler(const TClass *cl, Bool_t derived)
 Create a new message handler for class cl and add it to the list
 of message handlers.
TMessageHandler(const char *cl, Bool_t derived)
 Create a new message handler for class named cl and add it to the list
 of message handlers.
void Add()
 Add this message handler to the list of messages handlers.
Int_t GetMessageCount(Int_t messId)
 Return counter for message with ID=messid.
Int_t GetTotalMessageCount()
 Return total number of messages.
void HandleMessage(Int_t id, const TObject *obj)
 Store message origin, keep statistics and call Notify().
Bool_t Notify()
 This method must be overridden to handle object notifcation.
void Print(Option_t *)
 Print statistics for this message handler.
void Remove()
 Remove this message handler from the list of messages handlers.
TMessageHandler(const TClass *cl, Bool_t derived = kTRUE)
virtual ~TMessageHandler()
Int_t GetSize()
{ return fSize; }
Bool_t HandleDerived()
{ return fDerived; }

Author: Rene Brun 11/11/99
Last update: root/base:$Name: $:$Id: TMessageHandler.cxx,v 1.5 2005/06/23 06:24:27 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.