15 #ifndef CONFIGVARIABLEBOOL_H
16 #define CONFIGVARIABLEBOOL_H
18 #include "dtoolbase.h"
19 #include "configVariable.h"
29 INLINE ConfigVariableBool(
const string &name,
bool default_value,
30 const string &description =
string(),
int flags = 0);
31 INLINE ConfigVariableBool(
const string &name,
const string &default_value,
32 const string &description =
string(),
int flags = 0);
34 INLINE
void operator = (
bool value);
35 INLINE
operator bool ()
const;
37 INLINE
int size()
const;
38 INLINE
bool operator [] (
int n)
const;
40 INLINE
void set_value(
bool value);
41 INLINE
bool get_value()
const;
44 INLINE
bool get_word(
int n)
const;
45 INLINE
void set_word(
int n,
bool value);
48 AtomicAdjust::Integer _local_modified;
52 #include "configVariableBool.I"
This is a convenience class to specialize ConfigVariable as a boolean type.
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
This is a generic, untyped ConfigVariable.