#include <mapper.hpp>
Public Attributes | |
| std::string | name |
| bool | required |
| std::function< void(T &, std::string_view, bool, anch::csv::detail::ReadContext &, const anch::csv::Options &)> | read |
| std::function< anch::csv::detail::FieldText(const T &, anch::csv::detail::WriteContext &, const anch::csv::Options &)> | write |
Field mapping.
| std::string anch::csv::ObjectMapper< T >::Field::name |
Field (column) name
| std::function<void(T&, std::string_view, bool, anch::csv::detail::ReadContext&, const anch::csv::Options&)> anch::csv::ObjectMapper< T >::Field::read |
Field reader (empty for fields without setter): text, quoted, context, options
| bool anch::csv::ObjectMapper< T >::Field::required |
Column is required
| std::function<anch::csv::detail::FieldText(const T&, anch::csv::detail::WriteContext&, const anch::csv::Options&)> anch::csv::ObjectMapper< T >::Field::write |
Field writer (empty for fields without getter)