15 #ifndef CONFIGVARIABLESTRING_H 16 #define CONFIGVARIABLESTRING_H 18 #include "dtoolbase.h" 19 #include "configVariable.h" 29 INLINE ConfigVariableString(
const string &name,
const string &default_value,
30 const string &description =
string(),
int flags = 0);
32 INLINE
void operator = (
const string &value);
33 INLINE
operator const string & ()
const;
37 INLINE
const char *c_str()
const;
38 INLINE
bool empty()
const;
39 INLINE
size_t length()
const;
40 INLINE
char operator [] (
int n)
const;
43 INLINE
bool operator == (
const string &other)
const;
44 INLINE
bool operator != (
const string &other)
const;
45 INLINE
bool operator < (
const string &other)
const;
47 INLINE
void set_value(
const string &value);
48 INLINE
const string &get_value()
const;
51 INLINE
string get_word(
int n)
const;
52 INLINE
void set_word(
int n,
const string &value);
58 AtomicAdjust::Integer _local_modified;
62 #include "configVariableString.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 a string type.