]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Making AliDCSValue sortable (Vladimir)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 11:33:36 +0000 (11:33 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 11:33:36 +0000 (11:33 +0000)
STEER/AliDCSValue.h

index 80c82f7486facb7a620696e855049adfe922cd2c..334611ef0bfdcd89728cef2e9027c0a7d466a087 100644 (file)
@@ -52,7 +52,21 @@ public:
   Int_t GetSize() const;
 
   const Char_t* ToString() const;
-       void Print(Option_t* /*opt*/) const;
+  void Print(Option_t* /*opt*/) const;
+
+
+/**********************************************/
+
+  Int_t Compare(const TObject* obj) const
+    { if( fTimeStamp < ((AliDCSValue *)obj )->fTimeStamp ) return -1;
+      if( fTimeStamp == ((AliDCSValue *)obj )->fTimeStamp ) return 0;
+      return 1;
+    }
+
+  Bool_t IsSortable() const { return kTRUE; }
+
+/*********************************************/
+
 
 protected:
   void Init();