ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ACE_Get_Opt::ACE_Get_Opt_Long_Option Class Reference

Public Member Functions

 ACE_Get_Opt_Long_Option (const ACE_TCHAR *name, int has_arg, int val=0)
 ctor
 
 ~ACE_Get_Opt_Long_Option ()
 Dtor.
 
bool operator< (const ACE_Get_Opt_Long_Option &rhs)
 

Public Attributes

const ACE_TCHARname_
 Long option name.
 
int has_arg_
 Contains value for <OPTION_ARG_MODE>.
 
int val_
 
 ACE_ALLOC_HOOK_DECLARE
 

Detailed Description

is for internal use in the ACE_Get_Opt class, and is inaccessible to users.

Constructor & Destructor Documentation

◆ ACE_Get_Opt_Long_Option()

ACE_Get_Opt::ACE_Get_Opt_Long_Option::ACE_Get_Opt_Long_Option ( const ACE_TCHAR * name,
int has_arg,
int val = 0 )

ctor

◆ ~ACE_Get_Opt_Long_Option()

ACE_Get_Opt::ACE_Get_Opt_Long_Option::~ACE_Get_Opt_Long_Option ( )

Dtor.

Member Function Documentation

◆ operator<()

bool ACE_Get_Opt::ACE_Get_Opt_Long_Option::operator< ( const ACE_Get_Opt_Long_Option & rhs)
inline

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Get_Opt::ACE_Get_Opt_Long_Option::ACE_ALLOC_HOOK_DECLARE

◆ has_arg_

int ACE_Get_Opt::ACE_Get_Opt_Long_Option::has_arg_

Contains value for <OPTION_ARG_MODE>.

◆ name_

const ACE_TCHAR* ACE_Get_Opt::ACE_Get_Opt_Long_Option::name_

Long option name.

◆ val_

int ACE_Get_Opt::ACE_Get_Opt_Long_Option::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.


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