Public Member Functions | Protected Member Functions | Protected Attributes

ucc::shell::stringopt Class Reference

Text option for shell parsing. More...

#include <shell.h>

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

Public Member Functions

 operator bool ()
 operator const char * ()
bool operator! ()
const char * operator* ()
char operator[] (size_t index)
 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

Detailed Description

Text option for shell parsing.

This offers a quick-use class to parse a shell flag, along with a numberic text that may be saved and a use counter, as multiple invokations is an error.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 355 of file shell.h.


Member Function Documentation

virtual const char* ucc::shell::stringopt::assign ( const 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 ucc::shell::Option.


The documentation for this class was generated from the following file: