added serializable class
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef SERIALIZABLE_H
|
||||
#define SERIALIZABLE_H
|
||||
|
||||
#include <memory>
|
||||
#include "../coders/json.h"
|
||||
|
||||
class Serializable
|
||||
{
|
||||
public:
|
||||
virtual ~Serializable() { }
|
||||
virtual std::unique_ptr<dynamic::Map> serialize() const = 0;
|
||||
virtual void deserialize(dynamic::Map* src) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user