]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONLogger.h
Completing commit 45100 - .h file was missing
[u/mrichter/AliRoot.git] / MUON / AliMUONLogger.h
index cacbdb095407338a0d485e5850566f8cd9ccef6b..f9f1b39df3bca003d2215017d02c176b7d1a1608 100644 (file)
@@ -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 <Riostream.h>
+
 #ifndef ROOT_TObject
 #  include "TObject.h"
 #endif
 
+#ifndef ROOT_TString
+#  include "TString.h"
+#endif
+
 class AliMUONStringIntMap;
 
 class AliMUONLogger : public TObject
@@ -24,13 +30,24 @@ 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(Option_t* opt="") const;
   
-private:
+  void   Print(TString& key, ofstream& out) const;
+  
+  void   Clear(Option_t* /*option*/ ="");
   
+  Bool_t Next(TString& msg, Int_t& occurance);
+  
+  void   ResetItr();
+  
+  Int_t NumberOfEntries() const;
+  
+private:
+  /// Not implemented
   AliMUONLogger(const AliMUONLogger& rhs); // not implemented
+  /// Not implemented
   AliMUONLogger& operator=(const AliMUONLogger& rhs); // not implemented
   
 private:
@@ -38,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