UCommon
|
Text option for shell parsing. More...
#include <shell.h>
Public Member Functions | |
operator bool () | |
operator const char * () | |
bool | operator! () |
const char * | operator* () |
void | set (const char *string) |
stringopt (char short_option, const char *long_option=NULL, const char *help=NULL, const char *type="text", const char *def_text=NULL) | |
Protected Member Functions | |
virtual const char * | assign (const char *value) |
Used to send option into derived receiver. | |
Protected Attributes | |
const char * | text |
Text option for shell parsing.
This offers a quick-use class to parse a shell flag, along with a numeric text that may be saved and a use counter, as multiple invocations is an error.
virtual const char* ucc::shell::stringopt::assign | ( | const char * | value | ) | [protected, virtual] |
Used to send option into derived receiver.
value | option that was received. |
Implements ucc::shell::Option.