|
| __init__ (const ConfigVariableString) |
|
| __init__ (str name) |
|
| __init__ (str name, str default_value, str description, int flags) |
|
str | cStr () |
|
bool | empty () |
|
str | getDefaultValue () |
| Returns the variable's default value.
|
|
str | getValue () |
| Returns the variable's value.
|
|
str | getWord (int n) |
| Returns the variable's nth value.
|
|
int | length () |
|
bool | operator!= (str other) |
|
bool | operator< (str other) |
|
ConfigVariableString | operator= (str value) |
|
bool | operator== (str other) |
|
char | operator[] (int n) |
|
| setValue (str value) |
| Reassigns the variable's local value.
|
|
| setWord (int n, str value) |
| Reassigns the variable's nth value.
|
|
Public Member Functions inherited from ConfigVariable |
| __init__ (const ConfigVariable) |
|
| __init__ (str name) |
| Use this constructor to make a ConfigVariable of an unspecified type.
|
|
| clearValue () |
| Removes the value assigned to this variable, and lets its original value (as read from the prc files) show through.
|
|
int | getNumWords () |
| Returns the number of words in the variable's value.
|
|
str | getStringValue () |
| Returns the toplevel value of the variable, formatted as a string.
|
|
| setStringValue (str value) |
| Changes the value assigned to this variable.
|
|
Public Member Functions inherited from ConfigVariableBase |
bool | clearLocalValue () |
| Removes the local value defined for this variable, and allows its value to be once again retrieved from the .prc files.
|
|
str | getDescription () |
| Returns the brief description of this variable, if it has been defined.
|
|
int | getFlags () |
| Returns the flags value as set by set_flags().
|
|
str | getName () |
| Returns the name of the variable.
|
|
int | getTrustLevel () |
| Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this variable.
|
|
ConfigFlags::ValueType | getValueType () |
| Returns the stated type of this variable.
|
|
bool | hasLocalValue () |
| Returns true if this variable's value has been shadowed by a local assignment (as created via make_local_value()), or false otherwise.
|
|
bool | hasValue () |
| Returns true if this variable has an explicit value, either from a prc file or locally set, or false if variable has its default value.
|
|
bool | isClosed () |
| Returns true if the variable is not trusted by any prc file (and hence cannot be modified from its compiled-in default value), or false for the normal case, in which the variable can be modified by any prc file at or above its trust level (see get_trust_level()).
|
|
bool | isDynamic () |
| Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name was dynamically generated, possibly from a large pool, and it should not be listed along with the other variables.
|
|
| output (Ostream out) |
|
| write (Ostream out) |
|
Public Member Functions inherited from ConfigFlags |
| __init__ () |
|
| __init__ (const ConfigFlags) |
|
|
String | default_value |
| Returns the variable's default value.
|
|
const String | value |
| Returns the variable's value.
|
|
Public Attributes inherited from ConfigVariableBase |
bool | closed |
| Returns true if the variable is not trusted by any prc file (and hence cannot be modified from its compiled-in default value), or false for the normal case, in which the variable can be modified by any prc file at or above its trust level (see get_trust_level()).
|
|
const String | description |
| Returns the brief description of this variable, if it has been defined.
|
|
bool | dynamic |
| Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name was dynamically generated, possibly from a large pool, and it should not be listed along with the other variables.
|
|
const String | name |
| Returns the name of the variable.
|
|
int | trust_level |
| Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this variable.
|
|
ConfigFlags::ValueType | value_type |
| Returns the stated type of this variable.
|
|
This is a convenience class to specialize ConfigVariable as a string type.