]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/CDB/AliOCDBtoolkit.h
3beda4709fc967ab201a8d00a1ca72bc6a12253e
[u/mrichter/AliRoot.git] / STEER / CDB / AliOCDBtoolkit.h
1 #ifndef ALIOCDBTOOLKIT_H
2 #define ALIOCDBTOOLKIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7
8 #include <TObject.h>
9 class TStopwatch;
10 class TTree;
11 class TMemStatManager;
12 using std::fstream;
13
14 class AliOCDBtoolkit : public TObject {
15 public:
16   //AliOCDBtoolkit();
17   //static AliOCDBtoolkit * Instance();
18   
19   static void MakeDiffExampleUseCase();    // example usage
20   static void DumpOCDBAsTxt(const TString fInput,const TString fType, const TString outfile);
21   //
22   static Bool_t   ParseInfoFromOcdbString(TString ocdbString, TString &ocdbPath, Int_t &run0, Int_t &run1, Int_t &version, Int_t &subVersion);   
23   static Bool_t   ParseInfoFromOcdbString(TString ocdbString, AliCDBId &cdbId);
24   //
25   //
26   //
27   static void LoadOCDB(const TMap *cdbMap0, const TList *cdbList0); // to be implemented
28   static void LoadOCDBFromList(const char *ocdbList); // to be implemented
29   static void SetStorage(const TMap *cdbMap0){;}   // to be iplemented
30   //
31   static TList  * ConvertListStringToCDBId(const TList *cdbList0);   
32   static void LoadOCDBFromLog(const char *logName, Int_t verbose);
33   static void LoadOCDBFromMap(const TMap *cdbMap, const TList *cdbList);
34   static void MakeDiff(const TMap *cdbMap0, const TList *cdbList0, const TMap *cdbMap1, const TList *cdbList1, Int_t verbose);
35   static void DumpOCDB(const TMap *cdbMap0, const TList *cdbList0, const TString outfile);
36   //
37   // dump object functionality
38   //  
39   static void DumpObjectRecursive(TObject *obj);
40   static void DumpObjectRecursive(TObject *obj, TString prefix, Int_t &counterRec);
41   static void DumpOCDBFile(const char *finput , const char *foutput, Bool_t dumpMetaData, Bool_t xml);
42   //
43   // addopt OCDB entry
44   //
45   static Bool_t AddoptOCDBEntry( const char *finput, const char *output,  Int_t ustartRun, Int_t uendRun);
46 private:
47   AliOCDBtoolkit(const AliOCDBtoolkit& source);
48   AliOCDBtoolkit& operator= (const AliOCDBtoolkit& rec);
49
50   ClassDef(AliOCDBtoolkit,0)
51 };
52
53 #endif