Interfaced Iterator and Print method from AliMUONStringIntMap
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Nov 2007 17:05:11 +0000 (17:05 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Nov 2007 17:05:11 +0000 (17:05 +0000)
(Christian)

MUON/AliMUONLogger.cxx
MUON/AliMUONLogger.h

index 688ff76..cc161b6 100644 (file)
@@ -89,4 +89,34 @@ AliMUONLogger::Print(Option_t* opt) const
     cout << "No message" << endl;
   }
 }
+  
+//_____________________________________________________________________________
+void
+AliMUONLogger::Print(TString& key, ofstream& out) const
+{
+  /// print out into a given streamer with a key word in front of the message
+  fLog->Print(key, out); 
+
+      
+}
+   
+//_____________________________________________________________________________
+void 
+AliMUONLogger::ResetItr()
+{
+  /// call reset iterator method
+  fLog->ResetItr();
+     
+}
+//_____________________________________________________________________________
+Bool_t 
+AliMUONLogger::Next(TString& msg, Int_t& occurance)
+{
+  /// call next iterator method
+  return fLog->Next(msg, occurance);
+     
+}
+    
+    
 
index a204cf7..0a24244 100644 (file)
 /// 
 //  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,9 +30,14 @@ 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 Print(Option_t* opt="") const;
+  Bool_t Next(TString& msg, Int_t& occurance);
+  void   ResetItr();
   
 private:
   /// Not implemented