A set of strings associated with a boolean, good to store true/false properties for each string.
More...
#include </home/werner/origo/vish/ocean/shrimp/VFlagList.hpp>
List of all members.
Public Member Functions
-
size_t addFlagsFromString (const string &s, const char sep=' ')
-
bool contains (const string &flagvalue) const
- Check if a flag is contained here at all.
-
FlagList ()
- Constructor, makes an empty list.
-
FlagList (const string &s, const char sep=' ')
- Constructor, constructs from encoded string.
- bool operator() (const string &flagvalue, bool &found) const
- Get the current boolean value associated with a specific flag.
- bool operator() (const string &flagvalue) const
- Shortcut version of flag testing, ignoring the found status.
-
~FlagList ()
- Destructor, cleans up the list.
Public Attributes
Detailed Description
A set of strings associated with a boolean, good to store true/false properties for each string.
Member Function Documentation
bool Wizt::FlagList::operator() |
( |
const string & |
flagvalue, |
|
|
bool & |
found |
|
) |
| const |
Get the current boolean value associated with a specific flag.
If the flag is not found, then return the default_value. It is highly recommended to test the found flag.
bool Wizt::FlagList::operator() |
( |
const string & |
flagvalue | ) |
const [inline] |
Shortcut version of flag testing, ignoring the found status.
Use with care.
The documentation for this class was generated from the following files:
- ocean/shrimp/VFlagList.hpp
- ocean/shrimp/VFlagList.cpp