|
UCommon
|
Text option for shell parsing. More...
#include <shell.h>


Public Member Functions | |
| operator bool () const | |
| operator const char * () const | |
| bool | operator! () const |
| const char * | operator* () const |
| stringopt & | operator= (const char *string) |
| 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) | |
Public Member Functions inherited from ucommon::shell::Option | |
| virtual const char * | assign (const char *value)=0 |
| Used to send option into derived receiver. More... | |
| void | disable (void) |
| Disable a option. More... | |
| Option (char short_option=0, const char *long_option=NULL, const char *value_type=NULL, const char *help=NULL) | |
| Construct a shell parser option. More... | |
Public Member Functions inherited from ucommon::LinkedObject | |
| void | delist (LinkedObject **root) |
| Locate and remove ourselves from a list of objects. More... | |
| void | enlist (LinkedObject **root) |
| Add our object to an existing linked list through a pointer. More... | |
| LinkedObject * | getNext (void) const |
| Get next effective object when iterating. More... | |
| bool | is_member (LinkedObject *list) const |
| Search to see if we are a member of a specific list. More... | |
| virtual void | release (void) |
| Release list, mark as no longer linked. More... | |
| virtual void | retain (void) |
| Retain by marking as self referenced list. More... | |
Public Member Functions inherited from ucommon::ObjectProtocol | |
| ObjectProtocol * | copy (void) |
| Retain (increase retention of) object when copying. | |
| void | operator++ (void) |
| Increase retention operator. More... | |
| void | operator-- (void) |
| Decrease retention operator. More... | |
| virtual void | release (void)=0 |
| Method to release (or decrease retention) of an object. More... | |
| virtual void | retain (void)=0 |
| Method to retain (or increase retention) of an object. More... | |
| virtual | ~ObjectProtocol () |
| Required virtual destructor. | |
Protected Member Functions | |
| virtual const char * | assign (const char *value) |
| Used to send option into derived receiver. More... | |
Protected Member Functions inherited from ucommon::LinkedObject | |
| LinkedObject () | |
| Construct base class unattached to anyone. More... | |
| LinkedObject (const LinkedObject &from) | |
| LinkedObject (LinkedObject **root) | |
| Construct base class attached to a chain of objects. More... | |
Protected Attributes | |
| const char * | text |
Protected Attributes inherited from ucommon::LinkedObject | |
| LinkedObject * | Next |
Additional Inherited Members | |
Static Public Member Functions inherited from ucommon::shell::Option | |
| static LinkedObject * | first (void) |
| static void | reset (void) |
Static Public Member Functions inherited from ucommon::LinkedObject | |
| static unsigned | count (const LinkedObject *root) |
| Count the number of linked objects in a list. More... | |
| static LinkedObject * | getIndexed (LinkedObject *root, unsigned index) |
| Get member by index. More... | |
| static void | purge (LinkedObject *root) |
| Release all objects from a list. More... | |
Data Fields inherited from ucommon::shell::Option | |
| const char * | help_string |
| const char * | long_option |
| char | short_option |
| bool | trigger_option |
| const char * | uses_option |
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.
|
protectedvirtual |
Used to send option into derived receiver.
| value | option that was received. |
Implements ucommon::shell::Option.
|
inline |
|
inline |
|
inline |
|
inline |