Template Struct basic_field

Inheritance Relationships

Base Type

Struct Documentation

template<typename ValueT, typename DerivedT>
struct udho::forms::detail::basic_field : public udho::forms::detail::field_data<ValueT>

Public Types

typedef ValueT value_type
typedef DerivedT derived_type
typedef field_data<ValueT> data_type

Public Functions

basic_field(const std::string &name)
derived_type &absent(const std::string &message)
derived_type &unparsable(const std::string &message)
data_type &data()
const data_type &data() const
template<typename ValidatorT>
detail::constrained_field<ValidatorT, derived_type> constrain(const ValidatorT &validator)
template<template<typename> class ValidatorT, typename ...ArgsT>
detail::constrained_field<ValidatorT<value_type>, derived_type> constrain(ArgsT&&... args)

Protected Functions

template<typename ValidatorT>
bool validate(const ValidatorT &validator)
derived_type &self()
const derived_type &self() const

Protected Attributes

std::string _message_absent
std::string _message_unparsable