ucommon::shell::stringopt Class Reference

Text option for shell parsing. More...

#include <shell.h>

Inheritance diagram for ucommon::shell::stringopt:
Inheritance graph
[legend]
Collaboration diagram for ucommon::shell::stringopt:
Collaboration graph
[legend]

Public Member Functions

 operator bool ()
 operator char * ()
bool operator! ()
char * operator* ()
void set (char *string)
 stringopt (char short_option, char *long_option=((void *) 0), char *help=((void *) 0), char *type="text", char *def_text=((void *) 0))

Protected Member Functions

virtual char * assign (char *value)
 Used to send option into derived receiver.

Protected Attributes

char * text

Detailed Description

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.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 425 of file shell.h.


Member Function Documentation

virtual char* ucommon::shell::stringopt::assign ( char *  value  )  [protected, virtual]

Used to send option into derived receiver.

Parameters:
value option that was received.
Returns:
NULL or error string to use.

Implements ucommon::shell::Option.


The documentation for this class was generated from the following file:
Generated on Thu Jul 14 16:40:01 2011 for ucommon by  doxygen 1.6.3