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 main value structure
11 // which forms so called 'historical data' in any SCADA system.
14 #include "AliSimpleValue.h"
16 class AliDCSValue: public TObject {
20 AliDCSValue(const AliSimpleValue& value, UInt_t timeStamp);
22 AliSimpleValue& GetSimpleValue() {return fValue;};
23 const AliSimpleValue& GetSimpleValue() const {return fValue;};
24 void SetSimpleValue(const AliSimpleValue& value) {fValue = value;};
26 UInt_t GetTimeStamp() const {return fTimeStamp;};
27 void SetTimeStamp(UInt_t timeStamp) {fTimeStamp = timeStamp;};
29 Int_t GetSize() const {return fValue.GetSize() + sizeof(UInt_t);};
31 TString ToString() const;
35 AliSimpleValue fValue;
40 ClassDef(AliDCSValue, 1);