]>
Commit | Line | Data |
---|---|---|
9e1ceb13 | 1 | #ifndef ALI_META_DATA_H |
2 | #define ALI_META_DATA_H | |
3 | ||
fe913d8f | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
9e1ceb13 | 7 | ///////////////////////////////////////////////////////////////////// |
8 | // // | |
9 | // class AliCDBMetaData // | |
10 | // Set of data describing the object // | |
11 | // but not used to identify the object // | |
12 | // // | |
13 | ///////////////////////////////////////////////////////////////////// | |
fe913d8f | 14 | |
15 | #include <TObject.h> | |
9e1ceb13 | 16 | #include <TMap.h> |
fe913d8f | 17 | |
18 | class AliCDBMetaData: public TObject { | |
9e1ceb13 | 19 | |
fe913d8f | 20 | public: |
9e1ceb13 | 21 | AliCDBMetaData(); |
22 | virtual ~AliCDBMetaData(); | |
fe913d8f | 23 | |
9e1ceb13 | 24 | void SetObjectClassName(const char* name) |
25 | {fObjectClassName = name;}; | |
26 | const char* GetObjectClassName() const | |
27 | {return fObjectClassName.Data();}; | |
28 | ||
29 | void SetResponsible(const char* yourName) | |
30 | {fResponsible = yourName;}; | |
31 | const char* GetResponsible() const | |
32 | {return fResponsible.Data();}; | |
fe913d8f | 33 | |
9e1ceb13 | 34 | void SetBeamPeriod(UInt_t period) |
35 | {fBeamPeriod = period;}; | |
36 | UInt_t GetBeamPeriod() const | |
37 | {return fBeamPeriod;}; | |
fe913d8f | 38 | |
9e1ceb13 | 39 | void SetAliRootVersion(const char* version) |
40 | {fAliRootVersion = version;}; | |
41 | const char* GetAliRootVersion() const | |
42 | {return fAliRootVersion.Data();}; | |
fe913d8f | 43 | |
9e1ceb13 | 44 | void SetComment(const char* comment) |
45 | {fComment = comment;}; | |
46 | const char* GetComment() const | |
47 | {return fComment.Data();}; | |
fe913d8f | 48 | |
9e1ceb13 | 49 | void SetProperty(const char* property, TObject* object); |
50 | TObject* GetProperty(const char* property) const; | |
51 | Bool_t RemoveProperty(const char* property); | |
52 | ||
53 | void PrintMetaData(); | |
54 | ||
55 | private: | |
fe913d8f | 56 | |
9e1ceb13 | 57 | TString fObjectClassName; // object's class name |
58 | TString fResponsible; // object's responsible person | |
b05400be | 59 | UInt_t fBeamPeriod; // beam period |
9e1ceb13 | 60 | TString fAliRootVersion; // AliRoot version |
61 | TString fComment; // extra comments | |
62 | //TList fCalibRuns; | |
63 | ||
64 | TMap fProperties; // list of object specific properties | |
fe913d8f | 65 | |
9e1ceb13 | 66 | ClassDef(AliCDBMetaData, 1); |
fe913d8f | 67 | }; |
68 | ||
fe913d8f | 69 | #endif |