]> git.uio.no Git - u/mrichter/AliRoot.git/blame - SHUTTLE/AliDCSValue.h
New version of the zero misalignment (M.Ivanov)
[u/mrichter/AliRoot.git] / SHUTTLE / AliDCSValue.h
CommitLineData
73abe331 1#ifndef ALI_DCS_VALUE_H
2#define ALI_DCS_VALUE_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 represents the main value structure
11// which forms so called 'historical data' in any SCADA system.
12//
13
14#include "AliSimpleValue.h"
15
16class AliDCSValue: public TObject {
17public:
18
19 AliDCSValue();
20 AliDCSValue(const AliSimpleValue& value, UInt_t timeStamp);
21
22 AliSimpleValue& GetSimpleValue() {return fValue;};
23 const AliSimpleValue& GetSimpleValue() const {return fValue;};
24 void SetSimpleValue(const AliSimpleValue& value) {fValue = value;};
25
26 UInt_t GetTimeStamp() const {return fTimeStamp;};
27 void SetTimeStamp(UInt_t timeStamp) {fTimeStamp = timeStamp;};
28
29 Int_t GetSize() const {return fValue.GetSize() + sizeof(UInt_t);};
30
31 TString ToString() const;
32
33private:
34
35 AliSimpleValue fValue;
36
37 UInt_t fTimeStamp;
38
39
40 ClassDef(AliDCSValue, 1);
41};
42
43#endif