popt::option_imp< void > Class Template Reference

Inheritance diagram for popt::option_imp< void >:
Inheritance graph
[legend]
Collaboration diagram for popt::option_imp< void >:
Collaboration graph
[legend]

Public Member Functions

 option_imp (bool &value, char const *option_name, char short_name, char const *help_str)
 ~option_imp ()
void post_process ()

Protected Attributes

char const * option_name

Private Attributes

bool & value
int popt_value

Detailed Description

template<>
class popt::option_imp< void >

option<void> - a binary option

Use this option type for constructing specified / not-specified options e.g. --frob

Definition at line 130 of file popt_options.cpp.


Constructor & Destructor Documentation

popt::option_imp< void >::option_imp ( bool &  value,
char const *  option_name,
char  short_name,
char const *  help_str 
)

Definition at line 263 of file popt_options.cpp.

popt::option_imp< void >::~option_imp (  )  [inline]

Definition at line 135 of file popt_options.cpp.


Member Function Documentation

void popt::option_imp< void >::post_process (  )  [virtual]

post_process - perform any necessary post-processing

Reimplemented from popt::option_base.

Definition at line 271 of file popt_options.cpp.

References is_prefix().

Here is the call graph for this function:


Field Documentation

char const* popt::option_base::option_name [protected, inherited]

Definition at line 53 of file popt_options.cpp.

int popt::option_imp< void >::popt_value [private]

Definition at line 141 of file popt_options.cpp.

bool& popt::option_imp< void >::value [private]

Definition at line 140 of file popt_options.cpp.


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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1