#include <mapperRegistry.hpp>
|
| MapperRegistry () |
| ~MapperRegistry () |
template<typename T> |
void | registerMapper (const std::string &contentType, const T &mapper) |
template<typename T> |
void | serialize (const std::string &contentType, T value, std::ostream &out) |
template<typename T> |
void | deserialize (const std::string &contentType, T &value, std::istream &input) |
Mapper registry
- Author
- Vincent Lachenal
- Since
- 0.1
◆ MapperRegistry()
anch::rest::MapperRegistry::MapperRegistry |
( |
| ) |
|
◆ ~MapperRegistry()
anch::rest::MapperRegistry::~MapperRegistry |
( |
| ) |
|
◆ deserialize()
template<typename T>
void anch::rest::MapperRegistry::deserialize |
( |
const std::string & | contentType, |
|
|
T & | value, |
|
|
std::istream & | input ) |
Deserialize object according to content type
- Template Parameters
-
- Parameters
-
contentType | the content type |
value | the object |
input | the input stream to read fomr |
◆ registerMapper()
template<typename T>
void anch::rest::MapperRegistry::registerMapper |
( |
const std::string & | contentType, |
|
|
const T & | mapper ) |
Register mapper
- Template Parameters
-
- Parameters
-
contentType | the content type to register the mapper |
mapper | the mapper to register |
◆ serialize()
template<typename T>
void anch::rest::MapperRegistry::serialize |
( |
const std::string & | contentType, |
|
|
T | value, |
|
|
std::ostream & | out ) |
Serialize object according to content type
- Template Parameters
-
- Parameters
-
contentType | the content type |
value | the object |
out | the output stream to write in |
The documentation for this class was generated from the following file: