Public Member Functions |
|
| ConfigVariableList (const string &name, const string &description=string(), int flags=0) |
| int | get_num_unique_values () const |
| | Returns the number of unique values in the variable.
|
| int | get_num_values () const |
| | Returns the number of values in the variable.
|
| string | get_string_value (int n) const |
| | Returns the nth value of the variable.
|
| string | get_unique_value (int n) const |
| | Returns the nth unique value of the variable.
|
| string | operator[] (int n) const |
| | Returns the nth unique value of the variable.
|
|
void | output (ostream &out) const |
| int | size () const |
| | Returns the number of unique values of the variable.
|
|
void | write (ostream &out) const |
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.
Definition at line 35 of file configVariableList.h.