Public Member Functions | List of all members
cppcms::serializable Class Referenceabstract

Abstract class for serialization object. More...

#include <cppcms/serialization_classes.h>

Inheritance diagram for cppcms::serializable:

Public Member Functions

virtual void serialize (archive &a)=0
virtual void load (archive &a)
virtual void save (archive &a) const

Detailed Description

Abstract class for serialization object.

Member Function Documentation

virtual void cppcms::serializable::load ( archive a)

Calls serialize member functions

Implements cppcms::serializable_base.

virtual void cppcms::serializable::save ( archive a) const

Const-casts and calls serialize member function

Implements cppcms::serializable_base.

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;

The documentation for this class was generated from the following file: