This is a generic, untyped ConfigVariable. It is also the base class for the typed ConfigVariables, and contains all of the code common to ConfigVariables of all types (except
ConfigVariableList, which is a bit of a special case).
__init__(param0: ConfigVariable) → None¶
__init__(name: str) → None
Use this constructor to make a
ConfigVariableof an unspecified type. Usually you’d want to do this just to reference a previously-defined
ConfigVariableof a specific type, without having to know what type it is.
clearValue() → None¶
Removes the value assigned to this variable, and lets its original value (as read from the prc files) show through.
getNumWords() → size_t¶
Returns the number of words in the variable’s value. A word is defined as a sequence of non-whitespace characters delimited by whitespace.
- Return type
getStringValue() → str¶
Returns the toplevel value of the variable, formatted as a string.
setStringValue(value: str) → None¶
Changes the value assigned to this variable. This creates a local value that shadows any values defined in the .prc files, until clear_local_value() is called.