77 _string_value = string_value;
110 return (n >= 0 && n < (
int)_words.size());
123 return (_words[n]._flags & F_valid_bool) != 0;
138 return (_words[n]._flags & F_valid_int) != 0;
153 return (_words[n]._flags & F_valid_int64) != 0;
168 return (_words[n]._flags & F_valid_double) != 0;
183 return _words[n]._str;
201 return _words[n]._bool;
219 return _words[n]._int;
237 return _words[n]._int_64;
255 return _words[n]._double;
The internal definition of a ConfigVariable.
bool has_bool_word(int n) const
Returns true if the declaration's value has a valid boolean value for the nth word.
const string & get_string_value() const
Returns the value assigned to this variable.
bool has_string_word(int n) const
Returns true if the declaration's value has a valid string value for the nth word.
bool operator<(const ConfigDeclaration &other) const
Sorts two declarations in order based on the order in which their respective pages were loaded...
int get_num_words() const
Returns the number of words in the declaration's value.
double get_double_word(int n) const
Returns the integer value of the nth word of the declaration's value, or 0 if there is no nth value...
int get_decl_seq() const
Returns the sequence number of the declaration within the page.
bool has_double_word(int n) const
Returns true if the declaration's value has a valid integer value for the nth word.
void set_string_value(const string &value)
Changes the value assigned to this variable.
bool has_int_word(int n) const
Returns true if the declaration's value has a valid integer value for the nth word.
A page of ConfigDeclarations that may be loaded or unloaded.
ConfigPage * get_page() const
Returns the page on which this declaration can be found.
string get_string_word(int n) const
Returns the string value of the nth word of the declaration's value, or empty string if there is no n...
ConfigVariableCore * get_variable() const
Returns the variable that this declaration names.
PN_int64 get_int64_word(int n) const
Returns the int64 value of the nth word of the declaration's value, or 0 if there is no nth value...
bool has_int64_word(int n) const
Returns true if the declaration's value has a valid int64 value for the nth word. ...
A single declaration of a config variable, typically defined as one line in a .prc file...
bool get_bool_word(int n) const
Returns the boolean value of the nth word of the declaration's value, or false if there is no nth val...
int get_int_word(int n) const
Returns the integer value of the nth word of the declaration's value, or 0 if there is no nth value...