]> git.uio.no Git - u/mrichter/AliRoot.git/blame - SHUTTLE/AliCDBPreProcessor.h
Merging changes from v4-04-Release
[u/mrichter/AliRoot.git] / SHUTTLE / AliCDBPreProcessor.h
CommitLineData
73abe331 1#ifndef ALI_CDB_PRE_PROCESSOR_H
2#define ALI_CDB_PRE_PROCESSOR_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9//
10// This class is the CDBPreProcessor interface,
11// supposed to be implemented by any detector
12// interested in immediate processing of data
13// which is retrieved from DCS.
14//
15
16#include <TNamed.h>
17
18class AliShuttle;
19class AliCDBMetaData;
20
21class AliCDBPreProcessor: public TNamed {
22
23 friend class AliShuttle;
24
25public:
26 AliCDBPreProcessor(const char* detector);
27 virtual ~AliCDBPreProcessor();
28
29 Int_t GetRun() const;
30 UInt_t GetStartTime() const;
31 UInt_t GetEndTime() const;
32
33 Bool_t Store(const char* specType, TObject* object,
34 AliCDBMetaData* metaData);
35
36 void SetShuttle(AliShuttle* shuttle) {fShuttle = shuttle;};
37 AliShuttle* GetShuttle() const {return fShuttle;};
38
39protected:
40
41 virtual void Initialize(Int_t /*run*/, UInt_t /*startTime*/,
42 UInt_t /*endTime*/) {};
43
44 virtual void Finalize() {};
45
d477ad88 46 virtual void Process(const char* alias, TObjArray& valueSet,
73abe331 47 Bool_t hasError) = 0;
48
49private:
50
51 AliShuttle* fShuttle;
52
53 ClassDef(AliCDBPreProcessor, 0);
54};
55
56#endif