43 get_variable()
const {
62 _string_value = string_value;
89 return (n < _words.size());
100 return (_words[n]._flags & F_valid_bool) != 0;
113 return (_words[n]._flags & F_valid_int) != 0;
126 return (_words[n]._flags & F_valid_int64) != 0;
139 return (_words[n]._flags & F_valid_double) != 0;
151 return _words[n]._str;
153 return std::string();
166 return _words[n]._bool;
181 return _words[n]._int;
196 return _words[n]._int_64;
211 return _words[n]._double;
228 INLINE std::ostream &
double get_double_word(size_t n) const
Returns the integer value of the nth word of the declaration's value, or 0 if there is no nth value.
const std::string & get_string_value() const
Returns the value assigned to this variable.
The internal definition of a ConfigVariable.
bool has_double_word(size_t n) const
Returns true if the declaration's value has a valid integer value for the nth word.
get_page
Returns the page on which this declaration can be found.
std::string get_string_word(size_t n) const
Returns the string value of the nth word of the declaration's value, or empty string if there is no n...
bool get_bool_word(size_t n) const
Returns the boolean value of the nth word of the declaration's value, or false if there is no nth val...
bool operator<(const ConfigDeclaration &other) const
Sorts two declarations in order based on the order in which their respective pages were loaded,...
int get_decl_seq() const
Returns the sequence number of the declaration within the page.
int64_t get_int64_word(size_t 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(size_t n) const
Returns the integer value of the nth word of the declaration's value, or 0 if there is no nth value.
bool has_int_word(size_t n) const
Returns true if the declaration's value has a valid integer value for the nth word.
bool has_bool_word(size_t n) const
Returns true if the declaration's value has a valid boolean value for the nth word.
size_t get_num_words() const
Returns the number of words in the declaration's value.
A page of ConfigDeclarations that may be loaded or unloaded.
void set_string_value(const std::string &value)
Changes the value assigned to this variable.
bool has_string_word(size_t n) const
Returns true if the declaration's value has a valid string value for the nth word.
bool has_int64_word(size_t 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,...