15 #ifndef CONFIGVARIABLEINT_H 16 #define CONFIGVARIABLEINT_H 18 #include "dtoolbase.h" 19 #include "configVariable.h" 29 INLINE ConfigVariableInt(
const string &name,
int default_value,
30 const string &description =
string(),
32 INLINE ConfigVariableInt(
const string &name,
const string &default_value,
33 const string &description =
string(),
36 INLINE
void operator = (
int value);
37 INLINE
operator int ()
const;
39 INLINE
int size()
const;
40 INLINE
int operator [] (
int n)
const;
42 INLINE
void set_value(
int value);
43 INLINE
int get_value()
const;
46 INLINE
int get_word(
int n)
const;
47 INLINE
void set_word(
int n,
int value);
50 void set_default_value(
int default_value);
53 AtomicAdjust::Integer _local_modified;
57 #include "configVariableInt.I" const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
This is a generic, untyped ConfigVariable.
This is a convenience class to specialize ConfigVariable as an integer type.