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>
|
| | 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.
◆ names
A list of specific names for the flags.
| Enumerator |
|---|
| obligatory | |
| hasdefault | |
| filled | |
| breakinterpreting | |
| toomany | |
| missingvalue | |
| readerror | |
| ignorevalue | |
◆ argflags()
| capd::auxil::argflags::argflags |
( |
| ) |
|
|
inline |
The constructor. All flags are initially cleared (unset).
◆ ~argflags()
| capd::auxil::argflags::~argflags |
( |
| ) |
|
|
inline |
◆ get()
| bool capd::auxil::argflags::get |
( |
int |
flag | ) |
const |
|
inline |
Returns true if any of the given flags is set or false otherwise.
◆ set()
| void capd::auxil::argflags::set |
( |
int |
flag | ) |
|
|
inline |
◆ unset()
| void capd::auxil::argflags::unset |
( |
int |
flag | ) |
|
|
inline |
Unsets (clears) the given flag.
The documentation for this class was generated from the following file: