1 #ifndef ALI_DCS_VALUE_H
2 #define ALI_DCS_VALUE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 // This class represents the value(s) of a DCS data point at a given timestamp
15 class AliDCSValue : public TObject {
28 AliDCSValue(const AliDCSValue& c);
32 AliDCSValue& operator=(const AliDCSValue& c);
33 virtual void Copy(TObject& c) const;
35 AliDCSValue(Bool_t value, UInt_t timeStamp);
36 AliDCSValue(Char_t value, UInt_t timeStamp);
37 AliDCSValue(Int_t value, UInt_t timeStamp);
38 AliDCSValue(UInt_t value, UInt_t timeStamp);
39 AliDCSValue(Float_t value, UInt_t timeStamp);
41 Bool_t GetBool() const { return fBool; }
42 Char_t GetChar() const { return fChar; }
43 Int_t GetInt() const { return fInt; }
44 UInt_t GetUInt() const { return fUInt; }
45 Float_t GetFloat() const { return fFloat; }
47 Type GetType() const { return fType; }
49 UInt_t GetTimeStamp() const { return fTimeStamp; }
50 void SetTimeStamp(UInt_t timeStamp) { fTimeStamp = timeStamp; }
52 Int_t GetSize() const;
54 const Char_t* ToString() const;
59 Type fType; // type of the value stored
61 Bool_t fBool; // bool value
62 Char_t fChar; // char value
63 Int_t fInt; // int value
64 UInt_t fUInt; // uint value
65 Float_t fFloat; // float value
67 UInt_t fTimeStamp; // timestamp of this value
69 ClassDef(AliDCSValue, 2);