31#include "json/constants.hpp"
32#include "json/readerContext.hpp"
33#include "json/mappingOptions.hpp"
54 class PrimitiveMapper {
85 virtual ~PrimitiveMapper();
103 const std::optional<std::string>& field =
EMPTY_FIELD);
118 const std::optional<std::string>& field =
EMPTY_FIELD);
133 const std::optional<std::string>& field =
EMPTY_FIELD);
148 const std::optional<std::string>& field =
EMPTY_FIELD);
163 const std::optional<std::string>& field =
EMPTY_FIELD);
178 const std::optional<std::string>& field =
EMPTY_FIELD);
193 const std::optional<std::string>& field =
EMPTY_FIELD);
262#include "json/impl/primitiveMapper.hpp"
JSON mapper factory.
Definition factory.hpp:52
bool serialize(const T &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
bool deserialize(std::optional< T > &value, anch::json::ReaderContext &context)
bool deserialize(std::list< T > &value, anch::json::ReaderContext &context)
bool deserialize(T &value, anch::json::ReaderContext &context)
bool serialize(const std::list< T > &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
bool serialize(const std::vector< T > &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
bool deserialize(std::set< T > &value, anch::json::ReaderContext &context)
bool serialize(const std::set< T > &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
bool serialize(const std::optional< T > &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
bool deserialize(T *value, anch::json::ReaderContext &context)
bool deserialize(std::vector< T > &value, anch::json::ReaderContext &context)
bool serialize(const std::map< std::string, T > &value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
PrimitiveMapper(PrimitiveMapper &&other)=delete
bool deserialize(std::map< std::string, T > &value, anch::json::ReaderContext &context)
PrimitiveMapper(const PrimitiveMapper &other)=delete
bool serialize(const T *const value, std::ostream &out, const anch::json::MappingOptions &options, const std::optional< std::string > &field=EMPTY_FIELD)
JSON mapper context.
Definition readerContext.hpp:42
JSON namespace.
Definition constants.hpp:25
const std::optional< std::string > EMPTY_FIELD
JSON mapping options.
Definition mappingOptions.hpp:35