A single declaration of a config variable, typically defined as one line in a .prc file, e.g.
More...
Classes |
| class | Word |
Public Member Functions |
| 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 value.
|
| int | get_decl_seq () const |
| | Returns the sequence number of the declaration within the page.
|
| 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.
|
| 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.
|
| 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.
|
| int | get_num_words () const |
| | Returns the number of words in the declaration's value.
|
| ConfigPage * | get_page () const |
| | Returns the page on which this declaration can be found.
|
| const string & | get_string_value () const |
| | Returns the value assigned to this variable.
|
| 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 nth value.
|
| ConfigVariableCore * | get_variable () const |
| | Returns the variable that this declaration names.
|
| bool | has_bool_word (int n) const |
| | Returns true if the declaration's value has a valid boolean value for the nth word.
|
| bool | has_double_word (int n) const |
| | Returns true if the declaration's value has a valid integer value for the nth word.
|
| bool | has_int64_word (int n) const |
| | Returns true if the declaration's value has a valid int64 value for the nth word.
|
| bool | has_int_word (int n) const |
| | Returns true if the declaration's value has a valid integer value for the nth word.
|
| 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, and the order in which they appear within the same page.
|
|
void | output (ostream &out) const |
| void | set_bool_word (int n, bool value) |
| | Changes the nth word to the indicated value without affecting the other words.
|
| void | set_double_word (int n, double value) |
| | Changes the nth word to the indicated value without affecting the other words.
|
| void | set_int64_word (int n, PN_int64 value) |
| | Changes the nth word to the indicated value without affecting the other words.
|
| void | set_int_word (int n, int value) |
| | Changes the nth word to the indicated value without affecting the other words.
|
| void | set_string_value (const string &value) |
| | Changes the value assigned to this variable.
|
| void | set_string_word (int n, const string &value) |
| | Changes the nth word to the indicated value without affecting the other words.
|
|
void | write (ostream &out) const |
Static Public Member Functions |
| static string | downcase (const string &s) |
| | Returns the input string with all uppercase letters converted to lowercase.
|
| static int | extract_words (const string &str, vector_string &words) |
| | Divides the string into a number of words according to whitespace.
|
Friends |
|
class | ConfigPage |
A single declaration of a config variable, typically defined as one line in a .prc file, e.g.
"show-frame-rate-meter 1". This is really just a pairing of a string name (actually, a ConfigVariableCore pointer) to a string value.
Definition at line 36 of file configDeclaration.h.