qpid::program_options Namespace Reference

extensions to boost::program_options More...


Classes

struct  EnvMapper
 Environment-to-option name mapping. More...

Functions

template<class T>
value_semantic * optValue (T &value, const char *arg)
 Like boost::program_options::value() with more convenient signature for updating a value by reference and nicer help formatting.
value_semantic * optValue (bool &value)
 Like boost::program_options::bool_switch but takes reference, not pointer.


Detailed Description

extensions to boost::program_options

Function Documentation

template<class T>
value_semantic* qpid::program_options::optValue ( T &  value,
const char *  arg 
)

Like boost::program_options::value() with more convenient signature for updating a value by reference and nicer help formatting.

Parameters:
value displayed as default in help, updated from options. Must support ostream << operator.
arg name for arguments in help.
See also:
CommonOptions.cpp for example of use.


Generated on Mon Nov 26 19:13:17 2007 for Qpid by  doxygen 1.5.1