CppCMS
|
Abstract class for serialization object. More...
#include <cppcms/serialization_classes.h>
Public Member Functions | |
virtual void | serialize (archive &a)=0 |
virtual void | load (archive &a) |
virtual void | save (archive &a) const |
Abstract class for serialization object.
virtual void cppcms::serializable::load | ( | archive & | a | ) | [inline, virtual] |
virtual void cppcms::serializable::save | ( | archive & | a | ) | const [inline, virtual] |
Const-casts and calls serialize member function
Implements cppcms::serializable_base.
References serialize().
virtual void cppcms::serializable::serialize | ( | archive & | a | ) | [pure virtual] |
Abstract function that should be implemented for correct serialization of an object, it allows implementing only one function for load and save instead of two.
For example:
struct persone : public serializable { double age; std::string name; std::vector<std::string> kids_names; void serialize(archive &a) { a & age & name & kids_names; } };