ConfigVariableList
-
class ConfigVariableList
Bases:
ConfigVariableBase
This class is similar to
ConfigVariable
, but it reports its value as a list of strings. In this special case, all of the declarations of the variable are returned as the elements of this list, in order.Note that this is different from a normal
ConfigVariableString
, which just returns its topmost value, which can optionally be treated as a number of discrete words by dividing it at the spaces.A ConfigVariableList cannot be modified locally.
Inheritance diagram
-
ConfigVariableList(std::string const &name, std::string const &description = string(), int flags = 0)
-
ConfigVariableList(ConfigVariableList const&) = default
-
std::size_t get_num_unique_values(void) const
Returns the number of unique values in the variable.
-
std::size_t get_num_values(void) const
Returns the number of values in the variable.
-
std::string get_string_value(std::size_t n) const
Returns the nth value of the variable.
-
std::string get_unique_value(std::size_t n) const
Returns the nth unique value of the variable.
-
void output(std::ostream &out) const
-
std::size_t size(void) const
Returns the number of unique values of the variable.
-
void write(std::ostream &out) const
-
ConfigVariableList(std::string const &name, std::string const &description = string(), int flags = 0)