22 INLINE ConfigVariableBase::
23 ConfigVariableBase(
const string &name,
24 ConfigVariableBase::ValueType value_type) :
27 if (value_type != VT_undefined) {
37 INLINE ConfigVariableBase::
38 ~ConfigVariableBase() {
195 INLINE
void ConfigVariableBase::
196 output(ostream &out)
const {
206 INLINE
void ConfigVariableBase::
207 write(ostream &out)
const {
214 variable.output(out);
The internal definition of a ConfigVariable.
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
int get_flags() const
Returns the flags value as set by set_flags().
const string & get_name() const
Returns the name of the variable.
bool has_value() const
Returns true if this variable has an explicit value, either from a prc file or locally set...
ValueType get_value_type() const
Returns the stated type of this variable.
bool is_closed() const
Returns true if the variable is not trusted by any prc file (and hence cannot be modified from its co...
const string & get_name() const
Returns the name of the variable.
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere ...
const string & get_description() const
Returns the brief description of this variable, if it has been defined.
int get_trust_level() const
Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this v...
int get_trust_level() const
Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this v...
void set_value_type(ValueType value_type)
Specifies the type of this variable.
bool clear_local_value()
Removes the local value defined for this variable, and allows its value to be once again retrieved fr...
bool clear_local_value()
Removes the local value defined for this variable, and allows its value to be once again retrieved fr...
const string & get_description() const
Returns the brief description of this variable, if it has been defined.
bool is_dynamic() const
Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name ...
bool is_closed() const
Returns true if the variable is not trusted by any prc file (and hence cannot be modified from its co...
bool is_dynamic() const
Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name ...
bool has_value() const
Returns true if this variable has an explicit value, either from a prc file or locally set...
int get_flags() const
Returns the flags value as set by set_flags().
This class is the base class for both ConfigVariableList and ConfigVariable (and hence for all of the...
ValueType get_value_type() const
Returns the stated type of this variable.