Public Member Functions | |
ACE_Get_Opt_Long_Option (const ACE_TCHAR *name, int has_arg, int val=0) | |
ctor | |
~ACE_Get_Opt_Long_Option (void) | |
Dtor. | |
bool | operator< (const ACE_Get_Opt_Long_Option &rhs) |
Public Attributes | |
const ACE_TCHAR * | name_ |
Long option name. | |
int | has_arg_ |
Contains value for <OPTION_ARG_MODE>. | |
int | val_ |
Definition at line 364 of file Get_Opt.h.
ACE_Get_Opt::ACE_Get_Opt_Long_Option::ACE_Get_Opt_Long_Option | ( | const ACE_TCHAR * | name, | |
int | has_arg, | |||
int | val = 0 | |||
) |
ctor
Definition at line 716 of file Get_Opt.cpp.
00720 : name_ (ACE::strnew (name)), 00721 has_arg_ (has_arg), 00722 val_ (val) 00723 {}
ACE_Get_Opt::ACE_Get_Opt_Long_Option::~ACE_Get_Opt_Long_Option | ( | void | ) |
Dtor.
Definition at line 725 of file Get_Opt.cpp.
References name_.
00726 { 00727 delete [] this->name_; 00728 }
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE bool ACE_Get_Opt::ACE_Get_Opt_Long_Option::operator< | ( | const ACE_Get_Opt_Long_Option & | rhs | ) |
Definition at line 8 of file Get_Opt.inl.
References name_.
00009 { 00010 return this->name_ < rhs.name_; 00011 }
Long option name.
Definition at line 378 of file Get_Opt.h.
Referenced by ACE_Get_Opt::long_option(), operator<(), and ~ACE_Get_Opt_Long_Option().
Contains a valid short option character or zero if it doesn't have a corresponding short option. It can also contain a non-printable value that cannot be passed to <optstring> but will be returned by <operator()>. This is handy for simplifying long option handling, see tests/Get_Opt_Test.cpp for an example of this technique.