Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

TVariable.h

Go to the documentation of this file.
00001 #ifndef ROOT_TVariable
00002 #define ROOT_TVariable
00003 
00004 #ifndef ROOT_TDataType
00005 #include "TDataType.h"
00006 #endif
00007 
00008 class TVariable : public TObject {
00009 
00010 protected:
00011 
00012    TString   fName;
00013    TString   fFormula;
00014    Float_t   fValue;
00015    Float_t   fDefaultValue;
00016 
00017 public:
00018 
00019    TVariable();
00020    TVariable(TString name, TString formula, Float_t value,
00021              Float_t defaultValue);
00022    ~TVariable();
00023 
00024    inline TString GetName();
00025    inline TString GetFormula();
00026    inline Float_t GetValue();
00027    inline Float_t GetDefaultValue();
00028 
00029    inline void SetName(TString name);
00030    inline void SetFormula(TString formula);
00031    inline void SetValue(Float_t value);
00032    inline void SetDefaultValue(Float_t value);
00033 
00034    ClassDef(TVariable, 1)
00035 };
00036 
00037 inline TString TVariable::GetName() { return fName; }
00038 inline TString TVariable::GetFormula() { return fFormula; }
00039 inline Float_t TVariable::GetValue() { return fValue; }
00040 inline Float_t TVariable::GetDefaultValue() { return fDefaultValue; }
00041 
00042 inline void TVariable::SetName(TString name) { fName = name; }
00043 inline void TVariable::SetFormula(TString formula) { fFormula = formula; }
00044 inline void TVariable::SetValue(Float_t value) { fValue = value; }
00045 inline void TVariable::SetDefaultValue(Float_t value)
00046 {
00047    fDefaultValue = value;
00048 }
00049 
00050 #endif

Generated on Wed Feb 15 17:06:36 2006 for ROOTSNNS by doxygen 1.3.6