Nut/src/serializableobject.h

16 lines
270 B
C
Raw Normal View History

2017-10-07 13:38:09 +08:00
#ifndef SERIALIZABLEOBJECT_H
#define SERIALIZABLEOBJECT_H
#include <QVariant>
class SerializableObject
{
public:
2019-02-10 22:11:22 +08:00
SerializableObject() = default;
2017-10-07 13:38:09 +08:00
virtual void load(const QVariant &value) = 0;
virtual QVariant save() = 0;
};
#endif // SERIALIZABLEOBJECT_H