29#include "singleton.hpp"
40 auto& castMapper(
const std::string& contentType, std::any& mapper);
54 std::map<std::string, std::any> _mappers;
96 void serialize(
const std::string& contentType, T value, std::ostream& out);
108 void deserialize(
const std::string& contentType, T& value, std::istream& input);
120 std::optional<T> mapper(
const std::string& contentType);
139 GlobalMapperRegistry();
144 virtual ~GlobalMapperRegistry();
150#include "rest/impl/mapperRegistry.hpp"
Meyers' singleton implementation.
Definition singleton.hpp:34
void deserialize(const std::string &contentType, T &value, std::istream &input)
void registerMapper(const std::string &contentType, const T &mapper)
void serialize(const std::string &contentType, T value, std::ostream &out)