87 std::map<std::string, anch::json::DeserializeFn<T>> _readers;
114 virtual ~ObjectMapper();
149 ObjectMapper<T>& registerField(
const std::string& key, P T::* value);
162 template<
typename MT,
typename P>
163 ObjectMapper<T>& registerField(
const std::string& key, P T::* value);
176 template<
typename P,
typename MT = P>
177 ObjectMapper<T>& registerField(
const std::string& key, std::function<P(
const T&)> getter);
190 template<
typename P,
typename MT = P>
191 ObjectMapper<T>& registerField(
const std::string& key, std::function<
void(T&,
const P&)> setter);
205 template<
typename P,
typename MT = P>
206 ObjectMapper<T>& registerField(
const std::string& key, std::function<P(
const T&)> getter, std::function<
void(T&,
const P&)> setter);
JSON reader context.
Definition readerContext.hpp:42
JSON writer context.
Definition writerContext.hpp:41