X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONLogger.h;h=f9f1b39df3bca003d2215017d02c176b7d1a1608;hb=2afdea6931eac40fee865628e30669825f13a13e;hp=428e25a99f63eeb2e80b6f62a64be86f59764077;hpb=71a2d3aa63e94daa0244d8d6d1c7c162ae29a374;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONLogger.h b/MUON/AliMUONLogger.h index 428e25a99f6..f9f1b39df3b 100644 --- a/MUON/AliMUONLogger.h +++ b/MUON/AliMUONLogger.h @@ -6,16 +6,22 @@ // $Id$ -/// \ingroup base +/// \ingroup core /// \class AliMUONLogger /// \brief A logger that keeps track of the number of times a message appeared /// // Author Laurent Aphecetche +#include + #ifndef ROOT_TObject # include "TObject.h" #endif +#ifndef ROOT_TString +# include "TString.h" +#endif + class AliMUONStringIntMap; class AliMUONLogger : public TObject @@ -24,9 +30,19 @@ public: AliMUONLogger(Int_t maxNumberOfEntries=-1); virtual ~AliMUONLogger(); - Int_t Log(const char* message); + Int_t Log(const char* message); + + void Print(Option_t* opt="") const; + + void Print(TString& key, ofstream& out) const; + + void Clear(Option_t* /*option*/ =""); + + Bool_t Next(TString& msg, Int_t& occurance); + + void ResetItr(); - void Print(Option_t* opt="") const; + Int_t NumberOfEntries() const; private: /// Not implemented @@ -39,7 +55,7 @@ private: Int_t fMaxNumberOfEntries; //!< after this number, print and reset AliMUONStringIntMap* fLog; //!< map from message to number of times the message was issued - ClassDef(AliMUONLogger,1) // + ClassDef(AliMUONLogger,1) // A logger that keeps track of the number of times a message appeared }; #endif