31#include "json/constants.hpp"
32#include "json/readerContext.hpp"
33#include "json/mappingOptions.hpp"
79 const std::optional<std::string>& field);
108 const std::optional<std::string>& field);
126 const std::optional<std::string>& field);
140 template<
typename T,
typename A>
145 const std::optional<std::string>& field);
163 const std::optional<std::string>& field);
258 void deserializeMap(std::function<
void(
const std::pair<std::string,T>&)> pushFunc,
264#include "json/impl/mappingFunctions.hpp"
JSON mapper context.
Definition readerContext.hpp:42
JSON namespace.
Definition constants.hpp:25
std::function< bool(T &, anch::json::ReaderContext &)> DeserializeFn
Definition mappingFunctions.hpp:43
void serializeMap(const std::map< std::string, T > &map, std::ostream &out, anch::json::SerializeFn< T > serializeFunc, const anch::json::MappingOptions &options, const std::optional< std::string > &field)
bool addToList(std::list< T > &value, anch::json::DeserializeFn< T > deser, anch::json::ReaderContext &context)
void deserialize(T &value, std::istream &input, const anch::json::MappingOptions &options=anch::json::DEFAULT_MAPPING_OPTIONS)
void deserializeMap(std::function< void(const std::pair< std::string, T > &)> pushFunc, anch::json::ReaderContext &context, anch::json::DeserializeFn< T > deserializeFunc)
bool addToVector(std::vector< T > &value, anch::json::DeserializeFn< T > deser, anch::json::ReaderContext &context)
void serialize(const T &value, std::ostream &out, const anch::json::MappingOptions &options=anch::json::DEFAULT_MAPPING_OPTIONS)
std::function< void(const T &, std::ostream &, const anch::json::MappingOptions &)> SerializeFn
Definition mappingFunctions.hpp:39
void serializeFieldName(std::ostream &out, const std::optional< std::string > &field)
bool addToSet(std::set< T > &value, anch::json::DeserializeFn< T > deser, anch::json::ReaderContext &context)
void serializeArray(const A &array, std::ostream &out, anch::json::DeserializeFn< T > serializeFunc, const anch::json::MappingOptions &options, const std::optional< std::string > &field)
bool serializeNull(std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field)
JSON mapping options.
Definition mappingOptions.hpp:35