1 #ifndef ALI_DCS_ARRAY_H
2 #define ALI_DCS_ARRAY_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ////////////////////////////////////////////////////////////////////////////////
11 // This class represents the value(s) of a the LHC DPs at a given timestamp //
13 ////////////////////////////////////////////////////////////////////////////////
17 #include <TTimeStamp.h>
19 class AliDCSArray : public TObject {
32 AliDCSArray(const AliDCSArray& c);
34 virtual ~AliDCSArray();
36 AliDCSArray& operator=(const AliDCSArray& c);
38 AliDCSArray(Int_t nentries, Bool_t* value, TTimeStamp* timeStamp);
39 AliDCSArray(Int_t nentries, Char_t* value, TTimeStamp* timeStamp);
40 AliDCSArray(Int_t nentries, Int_t* value, TTimeStamp* timeStamp);
41 AliDCSArray(Int_t nentries, UInt_t* value, TTimeStamp* timeStamp);
42 AliDCSArray(Int_t nentries, Float_t* value, TTimeStamp* timeStamp);
43 AliDCSArray(Int_t nentries, TString* value, TTimeStamp* timeStamp);
45 Int_t GetNEntries() const { return fnentries;}
46 Bool_t* GetBool() const { return fBool; }
47 Char_t* GetChar() const { return fChar; }
48 Int_t* GetInt() const { return fInt; }
49 UInt_t* GetUInt() const { return fUInt; }
50 Float_t* GetFloat() const { return fFloat; }
51 TString* GetString() const { return fString; }
53 Type GetType() const { return fType; }
55 TTimeStamp* GetTimeStamp() const { return fTimeStamp; }
56 void SetTimeStamp(TTimeStamp* timeStamp) { fTimeStamp = timeStamp; }
62 Type fType; // type of the value stored
64 Int_t fnentries; // n. of entries at the same timestamp
65 Bool_t* fBool; //[fnentries] bool value
66 Char_t* fChar; //[fnentries] char value
67 Int_t* fInt; //[fnentries] int value
68 UInt_t* fUInt; //[fnentries] uint value
69 Float_t* fFloat; //[fnentries] float value
70 TString* fString; //[fnentries] string value
72 TTimeStamp* fTimeStamp; // timestamp of this value
74 ClassDef(AliDCSArray, 1);