ACE_Get_Opt::ACE_Get_Opt_Long_Option Class Reference

List of all members.

Public Member Functions

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

 ~ACE_Get_Opt_Long_Option (void)

bool operator< (const ACE_Get_Opt_Long_Option &rhs)

Public Attributes

const ACE_TCHARname_
 Long option name.

int has_arg_
 Contains value for .

int val_

Detailed Description

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

Definition at line 364 of file Get_Opt.h.

Constructor & Destructor Documentation

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


Definition at line 724 of file Get_Opt.cpp.

References ACE_TCHAR.

00728   :  name_ (ACE::strnew (name)),
00729      has_arg_ (has_arg),
00730      val_ (val)
00731 {}

ACE_Get_Opt::ACE_Get_Opt_Long_Option::~ACE_Get_Opt_Long_Option void   ) 


Definition at line 733 of file Get_Opt.cpp.

00734 {
00735   delete [] this->name_;
00736 }

Member Function Documentation

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 }

Member Data Documentation

int ACE_Get_Opt::ACE_Get_Opt_Long_Option::has_arg_

Contains value for .

Definition at line 381 of file Get_Opt.h.

Referenced by ACE_Get_Opt::long_option_i().

const ACE_TCHAR* ACE_Get_Opt::ACE_Get_Opt_Long_Option::name_

Long option name.

Definition at line 378 of file Get_Opt.h.

Referenced by ACE_Get_Opt::long_option(), ACE_Get_Opt::long_option_i(), and operator<().

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 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.

Definition at line 389 of file Get_Opt.h.

Referenced by ACE_Get_Opt::long_option_i().

The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:22:38 2006 for ACE by doxygen 1.3.6