CppCMS
|
This is the traits class for serialization traits. More...
#include <cppcms/serialization_classes.h>
Static Public Member Functions | |
static void | load (std::string const &serialized_object, Object &real_object) |
static void | save (Object const &real_object, std::string &serialized_object) |
This is the traits class for serialization traits.
It allows user to use arbitrary serialization libraries or use its own serialization rules, for example you can use boost::serialization.
For this purpose user should specialize the serialization_traits struct for his type.
For example: We want to allow a serialization of a point class:
|
static |
Load real_object from the serialized_object representation (std::string)
Referenced by cppcms::session_interface::fetch_data(), and cppcms::cache_interface::fetch_data().
|
static |
Save real_object to the serialized_object representation (std::string)
Referenced by cppcms::session_interface::store_data(), and cppcms::cache_interface::store_data().