ROOT logo
#ifndef ALIOCDBTOOLKIT_H
#define ALIOCDBTOOLKIT_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */



#include <TObject.h>
class TStopwatch;
class TTree;
class TMemStatManager;
using std::fstream;

class AliOCDBtoolkit : public TObject {
public:  
  static void MakeDiffExampleUseCase();    // example usage
  static void DumpOCDBAsTxt(const TString fInput,const TString fType, const TString outfile);
  static void MakeSnapshotFromTxt(const TString fInput,const TString outfile, Bool_t singleKeys); 
  //
  static Bool_t   ParseInfoFromOcdbString(TString ocdbString, TString &ocdbPath, Int_t &run0, Int_t &run1, Int_t &version, Int_t &subVersion);   
  static Bool_t   ParseInfoFromOcdbString(TString ocdbString, AliCDBId &cdbId);
  static TList  * ConvertListStringToCDBId(const TList */*cdbList0*/);   
  //
  // Load OCDB entries 
  //
  static void SetStorage(const TMap *cdbMap0);   
  static void LoadOCDBFromMap(const TMap *cdbMap, const TList *cdbList);
  static void LoadOCDBFromLog(const char *logName, Int_t verbose);
  static void LoadOCDBFromESD(const char *fname="AliESDs.root");
  static void LoadOCDBFromList(const char */*ocdbList*/){;} // to be implemented  

  //
  // Dump object functionality
  //  
  static void DumpOCDB(const TMap *cdbMap0, const TList *cdbList0, const TString outfile);
  static void DumpObjectRecursive(TObject *obj);
  static void DumpObjectRecursive(TObject *obj, TString prefix, Int_t &counterRec);
  static void DumpOCDBFile(const char *finput , const char *foutput, Bool_t dumpMetaData, Bool_t xml);
  static void MakeDiff(const TMap *cdbMap0, const TList *cdbList0, const TMap *cdbMap1, const TList *cdbList1, Int_t verbose);
  //
  // addopt OCDB entry
  //
  static Bool_t AddoptOCDBEntry( const char *finput, const char *output,  Int_t ustartRun, Int_t uendRun);
private:
  AliOCDBtoolkit(const AliOCDBtoolkit& source);
  AliOCDBtoolkit& operator= (const AliOCDBtoolkit& rec);

  ClassDef(AliOCDBtoolkit,0)
};

#endif
 AliOCDBtoolkit.h:1
 AliOCDBtoolkit.h:2
 AliOCDBtoolkit.h:3
 AliOCDBtoolkit.h:4
 AliOCDBtoolkit.h:5
 AliOCDBtoolkit.h:6
 AliOCDBtoolkit.h:7
 AliOCDBtoolkit.h:8
 AliOCDBtoolkit.h:9
 AliOCDBtoolkit.h:10
 AliOCDBtoolkit.h:11
 AliOCDBtoolkit.h:12
 AliOCDBtoolkit.h:13
 AliOCDBtoolkit.h:14
 AliOCDBtoolkit.h:15
 AliOCDBtoolkit.h:16
 AliOCDBtoolkit.h:17
 AliOCDBtoolkit.h:18
 AliOCDBtoolkit.h:19
 AliOCDBtoolkit.h:20
 AliOCDBtoolkit.h:21
 AliOCDBtoolkit.h:22
 AliOCDBtoolkit.h:23
 AliOCDBtoolkit.h:24
 AliOCDBtoolkit.h:25
 AliOCDBtoolkit.h:26
 AliOCDBtoolkit.h:27
 AliOCDBtoolkit.h:28
 AliOCDBtoolkit.h:29
 AliOCDBtoolkit.h:30
 AliOCDBtoolkit.h:31
 AliOCDBtoolkit.h:32
 AliOCDBtoolkit.h:33
 AliOCDBtoolkit.h:34
 AliOCDBtoolkit.h:35
 AliOCDBtoolkit.h:36
 AliOCDBtoolkit.h:37
 AliOCDBtoolkit.h:38
 AliOCDBtoolkit.h:39
 AliOCDBtoolkit.h:40
 AliOCDBtoolkit.h:41
 AliOCDBtoolkit.h:42
 AliOCDBtoolkit.h:43
 AliOCDBtoolkit.h:44
 AliOCDBtoolkit.h:45
 AliOCDBtoolkit.h:46
 AliOCDBtoolkit.h:47
 AliOCDBtoolkit.h:48
 AliOCDBtoolkit.h:49
 AliOCDBtoolkit.h:50
 AliOCDBtoolkit.h:51