libmoost
moost::service::validator Namespace Reference

Classes

class  base
class  typed_base
class  cfile
class  cnumber
class  cregex

Typedefs

typedef std::map< std::string,
std::string > 
constraints_map_t

Functions

boost::shared_ptr< basefile (const std::string &file, bool must_exist=true)
template<typename T >
boost::shared_ptr< basenumber (const T &num, const T &min=std::numeric_limits< T >::min(), const T &max=std::numeric_limits< T >::max())
boost::shared_ptr< baseregex (const std::string &text, const std::string &regex, boost::smatch *results=0, boost::regex_constants::match_flag_type match_flags=boost::regex_constants::match_default)

Typedef Documentation

typedef std::map<std::string, std::string> moost::service::validator::constraints_map_t

Definition at line 50 of file option_validator.hpp.


Function Documentation

boost::shared_ptr<base> moost::service::validator::file ( const std::string &  file,
bool  must_exist = true 
) [inline]

Definition at line 154 of file option_validator.hpp.

Here is the caller graph for this function:

template<typename T >
boost::shared_ptr<base> moost::service::validator::number ( const T &  num,
const T &  min = std::numeric_limits<T>::min(),
const T &  max = std::numeric_limits<T>::max() 
) [inline]

Definition at line 188 of file option_validator.hpp.

boost::shared_ptr<base> moost::service::validator::regex ( const std::string &  text,
const std::string &  regex,
boost::smatch *  results = 0,
boost::regex_constants::match_flag_type  match_flags = boost::regex_constants::match_default 
) [inline]

Definition at line 225 of file option_validator.hpp.

Here is the caller graph for this function: