libmoost
moost::service::validator::base Class Reference

#include <option_validator.hpp>

Inheritance diagram for moost::service::validator::base:

List of all members.

Public Member Functions

 base ()
virtual ~base ()
virtual void validate (const boost::program_options::variables_map &vm, const constraints_map_t &constraints) const
virtual void operator() (const boost::program_options::variables_map &vm, const constraints_map_t &constraints) const =0
basemandatory (bool mandatory=true)
void set_option (const std::string &longopt, const std::string &desc)
const std::string & longopt () const
const std::string & desc () const

Private Attributes

std::string m_longopt
std::string m_desc
bool m_mandatory

Detailed Description

Definition at line 52 of file option_validator.hpp.


Constructor & Destructor Documentation

Definition at line 60 of file option_validator.hpp.

virtual moost::service::validator::base::~base ( ) [inline, virtual]

Definition at line 65 of file option_validator.hpp.


Member Function Documentation

const std::string& moost::service::validator::base::desc ( ) const [inline]

Definition at line 98 of file option_validator.hpp.

Here is the caller graph for this function:

const std::string& moost::service::validator::base::longopt ( ) const [inline]

Definition at line 93 of file option_validator.hpp.

Here is the caller graph for this function:

base* moost::service::validator::base::mandatory ( bool  mandatory = true) [inline]

Definition at line 81 of file option_validator.hpp.

virtual void moost::service::validator::base::operator() ( const boost::program_options::variables_map &  vm,
const constraints_map_t constraints 
) const [pure virtual]

Implemented in moost::service::validator::cregex, moost::service::validator::cnumber< T >, and moost::service::validator::cfile.

Here is the caller graph for this function:

void moost::service::validator::base::set_option ( const std::string &  longopt,
const std::string &  desc 
) [inline]

Definition at line 87 of file option_validator.hpp.

Here is the call graph for this function:

virtual void moost::service::validator::base::validate ( const boost::program_options::variables_map &  vm,
const constraints_map_t constraints 
) const [inline, virtual]

Definition at line 69 of file option_validator.hpp.

Here is the call graph for this function:


Member Data Documentation

Definition at line 56 of file option_validator.hpp.

Definition at line 55 of file option_validator.hpp.

Definition at line 57 of file option_validator.hpp.


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