UCommon

shell::flagopt Class Reference

Flag option for shell parsing. More...

#include <shell.h>

Inheritance diagram for shell::flagopt:
Collaboration diagram for shell::flagopt:

Public Member Functions

 flagopt (char short_option, const char *long_option=NULL, const char *help=NULL, 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>
Examples:

shell.cpp.

Definition at line 364 of file shell.h.


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