VISH
0.2
|
Container to hold a selection of strings with one of them selected. More...
#include </home/werner/origo/vish/ocean/shrimp/VEnum.hpp>
Container to hold a selection of strings with one of them selected.
bool Wizt::VEnumSelection::fromString | ( | const string & | s | ) |
Assign entire enum range and selection from string.
The string is supposed to be of the form
X{X}{Y}{Z}
Where the first string outside of the {} is the selected value. Verify this function.
string Wizt::VEnumSelection::toString | ( | ) | const |
Create an encoding of the entire enum range and selection.
The resulting string will be all possible values of this enum enclosed in {} parenthesis, with the currently selected value leading, such as in:
X{X}{Y}{Z}
Verify this function.