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);
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
bool has_local_value() const
Returns true if this variable's value has been shadowed by a local assignment (as created via make_lo...
The internal definition of a ConfigVariable.
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.
int get_flags() const
Returns the flags value as set by set_flags().
const string & get_description() const
Returns the brief description of this variable, if it has been defined.
A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere ...
int get_flags() const
Returns the flags value as set by set_flags().
int get_trust_level() const
Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this v...
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...
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...
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.
int get_trust_level() const
Returns the minimum trust_level a prc file must demonstrate in order to redefine the value for this v...
This class is the base class for both ConfigVariableList and ConfigVariable (and hence for all of the...
const string & get_description() const
Returns the brief description of this variable, if it has been defined.
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_dynamic() const
Returns true if the variable was indicated as "dynamic" by its constructor, indicating that its name ...