Public Methods | |
| ACE_Get_Opt_Long_Option (const ACE_TCHAR *name, int has_arg, int val=0) | |
| ctor. More... | |
| ~ACE_Get_Opt_Long_Option (void) | |
| Default dtor. More... | |
| int | operator< (const ACE_Get_Opt_Long_Option &rhs) |
Public Attributes | |
| const ACE_TCHAR * | name_ |
| Long option name. More... | |
| int | has_arg_ |
| Contains value for <OPTION_ARG_MODE>. More... | |
| int | val_ |
| 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. More... | |
Definition at line 355 of file Get_Opt.h.
|
||||||||||||||||
|
ctor.
Definition at line 644 of file Get_Opt.cpp. References ACE_TCHAR.
00647 : name_ (ACE::strnew(name)), 00648 has_arg_ (has_arg), 00649 val_ (val) 00650 {} |
|
|
Default dtor.
Definition at line 652 of file Get_Opt.cpp. References ACE_TCHAR.
00653 {
00654 delete [] ACE_const_cast (ACE_TCHAR*, this->name_);
00655 }
|
|
|
Definition at line 7 of file Get_Opt.i. References name_.
00008 {
00009 return this->name_ < rhs.name_;
00010 }
|
|
|
Contains value for <OPTION_ARG_MODE>.
|
|
|
Long option name.
Definition at line 369 of file Get_Opt.h. Referenced by ACE_Get_Opt::long_option, and operator<. |
|
|
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.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002