libassa 3.5.1
|
#include <CmdLineOpts.h>
Public Types | |
enum | type_t { string_t =0 , int_t , uint_t , long_t , ulong_t , double_t , float_t , flag_t , func_t , func_one_t , none_t } |
Option type. More... | |
Private Member Functions | |
Option () | |
Private default constructor. | |
Option (char shopt_, const string &lopt_, type_t type_, void *val_) | |
Private constructor. | |
void | dump () const |
Write object state to the log file. | |
const char * | type_c_str () |
Return the type of the Option object. | |
Private Attributes | |
char | m_short_name |
One-letter option name. | |
string | m_long_name |
Long option name. | |
type_t | m_type |
Option type. | |
void * | m_val |
Pointer to the option value. | |
Friends | |
class | CmdLineOpts |
Option class.
This class is a helper class of CmdLineOpts class. It is not used by any other class and cannot be instantiated.
Definition at line 39 of file CmdLineOpts.h.
Option type.
Each option, except for flags has a value following it on the command line. Following types are supported:
Definition at line 47 of file CmdLineOpts.h.
|
inlineprivate |
Private default constructor.
Definition at line 89 of file CmdLineOpts.h.
Private constructor.
Definition at line 96 of file CmdLineOpts.h.
References ASSA::CMDLINEOPTS, and trace_with_mask.
|
private |
Write object state to the log file.
Definition at line 29 of file CmdLineOpts.cpp.
References ASSA::CMDLINEOPTS, DL, double_t, flag_t, float_t, func_one_t, func_t, int_t, long_t, m_long_name, m_short_name, m_type, m_val, none_t, string_t, uint_t, and ulong_t.
|
friend |
Definition at line 41 of file CmdLineOpts.h.
|
private |
|
private |
|
private |
|
private |