libmoost
moost::service::standard_options Class Reference

#include <standard_options.hpp>

Inheritance diagram for moost::service::standard_options:
Collaboration diagram for moost::service::standard_options:

List of all members.

Classes

class  option
struct  options

Public Member Functions

 standard_options (boost::program_options::options_description &od, option_validator &val)
 standard_options (boost::program_options::options_description &od, option_validator &val, options &target, int default_port, int default_pool=8)
standard_optionsconfig (std::string &storage, bool mandatory=true)
standard_optionsconfig (std::string &storage, const std::string &defval)
template<typename T >
standard_optionsport (T &storage, const T &defval)
template<typename T >
standard_optionsport (const char *spec, const char *desc, T &storage, bool mandatory=false)
template<typename T >
standard_optionsport (const char *spec, const char *desc, T &storage, const T &defval)
template<typename T >
standard_optionspool (T &storage, const T &defval=8)
standard_optionsverbose (bool &storage)
standard_optionsoperator() (const char *spec, const char *desc)
template<class T >
standard_optionsoperator() (const char *spec, boost::program_options::typed_value< T > *value, const char *desc)
template<class T >
standard_optionsoperator() (const char *spec, boost::program_options::typed_value< T > *value, const char *desc, boost::shared_ptr< validator::base > validator)

Private Member Functions

option opt_config () const
template<typename T >
standard_optionsadd_option (const option &opt, boost::program_options::typed_value< T > *value)
template<typename T >
standard_optionsadd_option (const option &opt, boost::program_options::typed_value< T > *value, boost::shared_ptr< validator::base > validator, bool mandatory=false)

Private Attributes

boost::program_options::options_description & m_od
option_validatorm_val

Detailed Description

Definition at line 45 of file standard_options.hpp.


Constructor & Destructor Documentation

moost::service::standard_options::standard_options ( boost::program_options::options_description &  od,
option_validator val 
) [inline]

Definition at line 117 of file standard_options.hpp.

moost::service::standard_options::standard_options ( boost::program_options::options_description &  od,
option_validator val,
options target,
int  default_port,
int  default_pool = 8 
) [inline]

Definition at line 123 of file standard_options.hpp.

Here is the call graph for this function:


Member Function Documentation

template<typename T >
standard_options& moost::service::standard_options::add_option ( const option opt,
boost::program_options::typed_value< T > *  value 
) [inline, private]

Definition at line 93 of file standard_options.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
standard_options& moost::service::standard_options::add_option ( const option opt,
boost::program_options::typed_value< T > *  value,
boost::shared_ptr< validator::base validator,
bool  mandatory = false 
) [inline, private]

Definition at line 100 of file standard_options.hpp.

Here is the call graph for this function:

standard_options& moost::service::standard_options::config ( std::string &  storage,
bool  mandatory = true 
) [inline]

Definition at line 134 of file standard_options.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

standard_options& moost::service::standard_options::config ( std::string &  storage,
const std::string &  defval 
) [inline]

Definition at line 142 of file standard_options.hpp.

Here is the call graph for this function:

standard_options& moost::service::standard_options::operator() ( const char *  spec,
const char *  desc 
) [inline]

Definition at line 188 of file standard_options.hpp.

template<class T >
standard_options& moost::service::standard_options::operator() ( const char *  spec,
boost::program_options::typed_value< T > *  value,
const char *  desc 
) [inline]

Definition at line 195 of file standard_options.hpp.

Here is the call graph for this function:

template<class T >
standard_options& moost::service::standard_options::operator() ( const char *  spec,
boost::program_options::typed_value< T > *  value,
const char *  desc,
boost::shared_ptr< validator::base validator 
) [inline]

Definition at line 201 of file standard_options.hpp.

Here is the call graph for this function:

Definition at line 84 of file standard_options.hpp.

Here is the caller graph for this function:

template<typename T >
standard_options& moost::service::standard_options::pool ( T &  storage,
const T &  defval = 8 
) [inline]

Definition at line 175 of file standard_options.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
standard_options& moost::service::standard_options::port ( T &  storage,
const T &  defval 
) [inline]

Definition at line 150 of file standard_options.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
standard_options& moost::service::standard_options::port ( const char *  spec,
const char *  desc,
T &  storage,
bool  mandatory = false 
) [inline]

Definition at line 158 of file standard_options.hpp.

Here is the call graph for this function:

template<typename T >
standard_options& moost::service::standard_options::port ( const char *  spec,
const char *  desc,
T &  storage,
const T &  defval 
) [inline]

Definition at line 167 of file standard_options.hpp.

Here is the call graph for this function:

Definition at line 182 of file standard_options.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

boost::program_options::options_description& moost::service::standard_options::m_od [private]

Definition at line 89 of file standard_options.hpp.


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