ucommon::shell::charopt Class Reference

Character option for shell parsing. More...

#include <shell.h>

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

Public Member Functions

 charopt (char short_option, const char *long_option=NULL, const char *help=NULL, const char *type="char", char default_code= ' ')
 operator bool ()
 operator char ()
bool operator! ()
char operator* ()
void set (char value)

Protected Member Functions

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

Protected Attributes

char code

Detailed Description

Character option for shell parsing.

This offers a quick-use class to parse a shell flag, along with a character code that may be saved. Multiple invocations is an error.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 314 of file shell.h.


Member Function Documentation

virtual const char* ucommon::shell::charopt::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 ucommon::shell::Option.


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

Generated on 30 Jul 2013 for UCommon by  doxygen 1.6.1