ucommon::shell::flagopt Class Reference

Flag option for shell parsing. More...

#include <shell.h>

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

Public Member Functions

 flagopt (char short_option, char *long_option=((void *) 0), char *help=((void *) 0), bool single_use=true)
 operator bool ()
 operator unsigned ()
bool operator! ()
unsigned operator* ()
void set (unsigned value=1)

Detailed Description

Flag option for shell parsing.

This offers a quick-use class to parse a shell flag, along with a counter for how many times the flag was selected. The counter might be used for -vvvv style verbose options, for example.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 378 of file shell.h.


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