Template Struct field< T, false >

Inheritance Relationships

Base Types

Struct Documentation

template<typename T>
struct udho::field<T, false> : public udho::field_common, public udho::field_value_extractor<T>

Public Types

typedef field<T, false> self_type
typedef field_common common_type
typedef boost::function<bool(const std::string&, std::string&)> function_type
typedef field_value_extractor<T> extractor_type
typedef std::vector<function_type> validators_collection_type

Public Functions

template<typename ...U>
field(const std::string &name, U... args)
T value() const
template<typename F>
self_type &constrain(F ftor)
template<typename FormT>
void validate(const FormT &form)
void check(const std::string &input)
self_type &operator()(const std::string &input)

validate the field when using a field without a form (e.g. JSON or XML document) if a value if provided in the document

self_type &unchecked(const T &input)
self_type &operator()()

validate the field when using a field without a form (e.g. JSON or XML document) if no value if provided in the document

Public Members

T _value
validators_collection_type _validators