54 SetName(
"DefaultMessageHandler");
85 if (
fSize <= 0)
return;
96 gROOT->GetListOfMessageHandlers()->Add(
this);
110 if (
fSize <= 0)
return 0;
122 if (
fSize <= 0)
return 0;
140 if (obj->IsA() !=
fClass)
return;
158 for (i = 0; i <
fSize; i++) {
168 for (i = 0; i < fSize-1; i++) {
169 newCnts[i] =
fCnts[i];
203 if (
fSize <= 0)
return;
215 while ((cl = (
TClass*)next())) {
219 if (!cl) cl =
gROOT->IsA();
221 printf(
" Class: %-20s WARNINGs has %d counts\n",cl->
GetName(),
fCnts[i]);
225 printf(
" Class: %-20s ERRORs has %d counts\n",cl->
GetName(),
fCnts[i]);
228 printf(
" Class: %-20s MessID = %5d has %d counts\n",cl->
GetName(),
id,
fCnts[i]);
238 gROOT->GetListOfMessageHandlers()->Remove(
this);
virtual Int_t GetMessageCount(Int_t messId) const
Return counter for message with ID=messid.
virtual const char * GetName() const
Returns name of object.
virtual UInt_t GetUniqueID() const
Return the unique object id.
Handle messages that might be generated by the system.
virtual void Add()
Add this message handler to the list of messages handlers.
virtual void HandleMessage(Int_t id, const TObject *obj)
Store message origin, keep statistics and call Notify().
virtual void SetName(const char *name)
Set the name of the TNamed.
R__EXTERN TVirtualMutex * gROOTMutex
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
The ROOT global object gROOT contains a list of all defined classes.
#define R__LOCKGUARD2(mutex)
virtual ~TMessageHandler()
Clean up the message handler.
virtual void Print(Option_t *option="") const
Print statistics for this message handler.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void Remove()
Remove this message handler from the list of messages handlers.
Mother of all ROOT objects.
virtual Int_t GetTotalMessageCount() const
Return total number of messages.
TMessageHandler(const TClass *cl, Bool_t derived=kTRUE)
Create a new message handler for class cl and add it to the list of message handlers.