CAPD DynSys Library 5.2.0
|
This is a helper class which defines specific flags indicating various types of command-line arguments and the state of interpreting them. More...
#include <capd/auxil/arg.h>
Public Types | |
enum | names { obligatory = 0x01 , hasdefault = 0x02 , filled = 0x04 , breakinterpreting = 0x08 , toomany = 0x10 , missingvalue = 0x20 , readerror = 0x40 , ignorevalue = 0x80 } |
A list of specific names for the flags. More... | |
Public Member Functions | |
argflags () | |
The constructor. All flags are initially cleared (unset). More... | |
~argflags () | |
The destructor. More... | |
void | set (int flag) |
Sets the given flag. More... | |
void | unset (int flag) |
Unsets (clears) the given flag. More... | |
bool | get (int flag) const |
Returns true if any of the given flags is set or false otherwise. More... | |
This is a helper class which defines specific flags indicating various types of command-line arguments and the state of interpreting them.
|
inline |
The constructor. All flags are initially cleared (unset).
|
inline |
The destructor.
Returns true if any of the given flags is set or false otherwise.
|
inline |
Sets the given flag.
|
inline |
Unsets (clears) the given flag.