Fixes for the head of root, effc++
[u/mrichter/AliRoot.git] / RAW / AliRunDB.h
CommitLineData
a197a4ce 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
e10815f1 19#ifndef ROOT_TString
20#include <TString.h>
21#endif
22
a197a4ce 23
24// Forward class declarations
25class AliStats;
26class TFile;
27
28
29class AliRunDB : public TObject {
30
31public:
e10815f1 32 AliRunDB(const char* localFS, Bool_t rdbms = kFALSE,
33 const char* alienHost = NULL, const char* alienDir = NULL);
a197a4ce 34 ~AliRunDB() { Close(); }
35
36 void Update(AliStats *stats);
e10815f1 37 void UpdateLocal(AliStats *stats);
a197a4ce 38 void UpdateRDBMS(AliStats *stats);
39 void UpdateAliEn(AliStats *stats);
40 void Close();
41
42private:
43 TFile *fRunDB; // run database
e10815f1 44 Bool_t fRDBMS; // flag for usage of central MySQL DB
45 TString fAlienHost; // alien host name
46 TString fAlienDir; // alien directory
a197a4ce 47
48 AliRunDB(const AliRunDB& runDB);
49 AliRunDB& operator = (const AliRunDB& runDB);
50
51 ClassDef(AliRunDB,0) // Run (bookkeeping) DB
52};
53
54#endif