21 INLINE ConfigVariableString::
22 ConfigVariableString(
const string &name) :
24 _local_modified(initial_invalid_cache())
34 INLINE ConfigVariableString::
35 ConfigVariableString(
const string &name,
const string &default_value,
36 const string &description,
int flags) :
37 #ifdef PRC_SAVE_DESCRIPTIONS
42 _local_modified(initial_invalid_cache())
44 _core->set_default_value(default_value);
63 INLINE ConfigVariableString::
64 operator
const string & ()
const {
73 INLINE
const char *ConfigVariableString::
83 INLINE
bool ConfigVariableString::
93 INLINE
size_t ConfigVariableString::
103 INLINE
char ConfigVariableString::
104 operator [] (
int n)
const {
105 assert(n >= 0 && n < (
int)length());
114 INLINE
bool ConfigVariableString::
115 operator == (
const string &other)
const {
124 INLINE
bool ConfigVariableString::
125 operator != (
const string &other)
const {
134 INLINE
bool ConfigVariableString::
135 operator < (
const string &other)
const {
156 TAU_PROFILE(
"const string &ConfigVariableString::get_value() const",
" ", TAU_USER);
157 if (!is_cache_valid(_local_modified)) {
string get_string_word(int n) const
Returns the string value of the nth word of the variable's value, or empty string if there is no nth ...
void operator=(const string &value)
Reassigns the variable's local value.
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
string get_word(int n) const
Returns the variable's nth value.
string get_default_value() const
Returns the variable's default value.
const string & get_value() const
Returns the variable's value.
void set_word(int n, const string &value)
Reassigns the variable's nth value.
This is a generic, untyped ConfigVariable.
This is a convenience class to specialize ConfigVariable as a string type.
void set_string_value(const string &value)
Changes the value assigned to this variable.
void set_value(const string &value)
Reassigns the variable's local value.
A single declaration of a config variable, typically defined as one line in a .prc file...
void set_string_word(int n, const string &value)
Changes the nth word to the indicated value without affecting the other words.
const string & get_string_value() const
Returns the value assigned to this variable.