53 SetName(
"DefaultMessageHandler");
84 if (
fSize <= 0)
return;
95 gROOT->GetListOfMessageHandlers()->Add(
this);
109 if (
fSize <= 0)
return 0;
121 if (
fSize <= 0)
return 0;
157 for (i = 0; i <
fSize; i++) {
167 for (i = 0; i <
fSize-1; i++) {
168 newCnts[i] =
fCnts[i];
202 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 = %5ld has %d counts\n",cl->
GetName(),
id,
fCnts[i]);
238 gROOT->GetListOfMessageHandlers()->Remove(
this);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
externTVirtualMutex * gROOTMutex
#define R__LOCKGUARD(mutex)
TClass instances represent classes, structs and namespaces in the ROOT type system.
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 Int_t GetMessageCount(Long_t messId) const
Return counter for message with ID=messid.
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.
virtual ~TMessageHandler()
Clean up the message handler.
virtual void Remove()
Remove this message handler from the list of messages handlers.
virtual void HandleMessage(Long_t id, const TObject *obj)
Store message origin, keep statistics and call Notify().
void Print(Option_t *option="") const override
Print statistics for this message handler.
virtual Int_t GetTotalMessageCount() const
Return total number of messages.
virtual void Add()
Add this message handler to the list of messages handlers.
Bool_t Notify() override
This method must be overridden to handle object notification.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TClass * IsA() const
TObject()
TObject constructor.