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