]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliRunDB.h
Use new naming conventions from QuadSet.
[u/mrichter/AliRoot.git] / RAW / AliRunDB.h
1 #ifndef ALIRUNDB_H
2 #define ALIRUNDB_H
3 // @(#)alimdc:$Name$:$Id$
4 // Author: Fons Rademakers  26/11/99
5
6 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7  * See cxx source for full Copyright notice                               */
8
9 //////////////////////////////////////////////////////////////////////////
10 //                                                                      //
11 // AliRunDB                                                             //
12 //                                                                      //
13 //////////////////////////////////////////////////////////////////////////
14
15 #ifndef ROOT_TObject
16 #include <TObject.h>
17 #endif
18
19 #ifndef ROOT_TString
20 #include <TString.h>
21 #endif
22
23
24 // Forward class declarations
25 class AliStats;
26 class TFile;
27
28
29 class AliRunDB : public TObject {
30
31 public:
32    AliRunDB(const char* localFS, Bool_t rdbms = kFALSE, 
33             const char* alienHost = NULL, const char* alienDir = NULL);
34    ~AliRunDB() { Close(); }
35
36    void Update(AliStats *stats);
37    void UpdateLocal(AliStats *stats);
38    void UpdateRDBMS(AliStats *stats);
39    void UpdateAliEn(AliStats *stats);
40    void Close();
41
42 private:
43    TFile  *fRunDB;     // run database
44    Bool_t  fRDBMS;     // flag for usage of central MySQL DB
45    TString fAlienHost; // alien host name
46    TString fAlienDir;  // alien directory
47
48    AliRunDB(const AliRunDB& runDB);
49    AliRunDB& operator = (const AliRunDB& runDB);
50
51    ClassDef(AliRunDB,0)  // Run (bookkeeping) DB
52 };
53
54 #endif