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. More... | |
Option (char shopt_, const string &lopt_, type_t type_, void *val_) | |
Private constructor. More... | |
void | dump () const |
Write object state to the log file. More... | |
const char * | type_c_str () |
Return the type of the Option object. More... | |
Private Attributes | |
char | m_short_name |
One-letter option name. More... | |
string | m_long_name |
Long option name. More... | |
type_t | m_type |
Option type. More... | |
void * | m_val |
Pointer to the option value. More... | |
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.
enum ASSA::Option::type_t |
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 |
|
inlineprivate |
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, ASSA::ends(), 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.
|
private |
|
friend |
Definition at line 41 of file CmdLineOpts.h.
|
private |
Long option name.
Definition at line 79 of file CmdLineOpts.h.
Referenced by ASSA::CmdLineOpts::assign(), and dump().
|
private |
One-letter option name.
Definition at line 76 of file CmdLineOpts.h.
Referenced by ASSA::CmdLineOpts::assign(), and dump().
|
private |
Option type.
Definition at line 82 of file CmdLineOpts.h.
Referenced by ASSA::CmdLineOpts::assign(), dump(), ASSA::CmdLineOpts::parse_args(), and type_c_str().
|
private |
Pointer to the option value.
Definition at line 85 of file CmdLineOpts.h.
Referenced by ASSA::CmdLineOpts::assign(), and dump().