1 #ifndef ALICDBHANDLER_H
2 #define ALICDBHANDLER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////////
9 // The SAX XML file handler used by the OCDB Manager //
10 // get the OCDB Folder <-> Run Range correspondance //
12 // Chiara.Zampolli (Chiara.Zampolli@cern.ch) //
14 ////////////////////////////////////////////////////////////////////////////
19 class AliCDBHandler : public TObject {
24 AliCDBHandler(Int_t run);
25 AliCDBHandler(const AliCDBHandler &sh);
26 virtual ~AliCDBHandler();
27 AliCDBHandler &operator=(const AliCDBHandler &sh);
29 // functions to interface to TSAXHandler
30 void OnStartDocument();
32 void OnStartElement(const char *name, const TList *attributes);
33 void OnEndElement(const char *name);
34 void OnCharacters(const char *name);
35 void OnComment(const char *name);
36 void OnWarning(const char *name);
37 void OnError(const char *name);
38 void OnFatalError(const char *name);
39 void OnCdataBlock(const char *name, Int_t len);
41 Int_t GetStartRunRange() const {return fStartRunRange;}
42 Int_t GetEndRunRange() const {return fEndRunRange;}
43 TString GetOCDBFolder() const {return fOCDBFolder;}
44 void SetRun(Int_t run) {fRun=run;}
47 Int_t fRun; // run for which the LHC Period Folder has to be found
48 Int_t fStartRunRange; // start run corresponding to the request
49 Int_t fEndRunRange; // end run corresponding to the request
50 TString fOCDBFolder; // OCDB folder corresponding to the request
52 ClassDef(AliCDBHandler,0); // The XML file handler for the OCDB