This is a helper class which defines specific flags indicating various types of command-line arguments and the state of interpreting them. More...
#include <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). | |
| ~argflags () | |
| The destructor. | |
| void | set (int flag) |
| Sets the given flag. | |
| void | unset (int flag) |
| Unsets (clears) the given flag. | |
| bool | get (int flag) const |
| Returns true if any of the given flags is set or false otherwise. | |
Private Attributes | |
| int | n |
| The interger variable that stores the flags. | |
This is a helper class which defines specific flags indicating various types of command-line arguments and the state of interpreting them.
Definition at line 100 of file arg.h.
A list of specific names for the flags.
| obligatory | |
| hasdefault | |
| filled | |
| breakinterpreting | |
| toomany | |
| missingvalue | |
| readerror | |
| ignorevalue |
Definition at line 104 of file arg.h.
{obligatory = 0x01, hasdefault = 0x02,
filled = 0x04, breakinterpreting = 0x08,
toomany = 0x10, missingvalue = 0x20,
readerror = 0x40, ignorevalue = 0x80};
| chomp::homology::argflags::argflags | ( | ) | [inline] |
| chomp::homology::argflags::~argflags | ( | ) | [inline] |
| bool chomp::homology::argflags::get | ( | int | flag | ) | const [inline] |
| void chomp::homology::argflags::set | ( | int | flag | ) | [inline] |
| void chomp::homology::argflags::unset | ( | int | flag | ) | [inline] |
int chomp::homology::argflags::n [private] |
1.7.1