00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CONFIGVARIABLEDOUBLE_H
00016 #define CONFIGVARIABLEDOUBLE_H
00017
00018 #include "dtoolbase.h"
00019 #include "configVariable.h"
00020
00021
00022
00023
00024
00025
00026 class EXPCL_DTOOLCONFIG ConfigVariableDouble : public ConfigVariable {
00027 PUBLISHED:
00028 INLINE ConfigVariableDouble(const string &name);
00029 INLINE ConfigVariableDouble(const string &name, double default_value,
00030 const string &description = string(),
00031 int flags = 0);
00032 INLINE ConfigVariableDouble(const string &name, const string &default_value,
00033 const string &description = string(),
00034 int flags = 0);
00035
00036 INLINE void operator = (double value);
00037 INLINE operator double () const;
00038
00039 INLINE int size() const;
00040 INLINE double operator [] (int n) const;
00041
00042 INLINE void set_value(double value);
00043 INLINE double get_value() const;
00044 INLINE double get_default_value() const;
00045
00046 INLINE double get_word(int n) const;
00047 INLINE void set_word(int n, double value);
00048
00049 private:
00050 void set_default_value(double default_value);
00051
00052 private:
00053 AtomicAdjust::Integer _local_modified;
00054 double _cache;
00055 };
00056
00057 #include "configVariableDouble.I"
00058
00059 #endif