Abstraction and serialization for entities

This commit is contained in:
Andrew nuark G 2020-12-15 20:17:46 +07:00
parent 5cb96fb793
commit 48ad2f1817
13 changed files with 106 additions and 12 deletions

View file

@ -1,12 +1,13 @@
#ifndef CARGO_ENTITY_H
#define CARGO_ENTITY_H
#include "IEntity.h"
#include <QString>
#include <QCryptographicHash>
class cargo_entity
{
class cargo_entity : public IEntity {
private:
unsigned long long _id;
QString _title;
@ -19,6 +20,9 @@ public:
unsigned long long id();
QString title();
unsigned int volume();
void serialize(QDataStream &output);
void deserialize(QDataStream &input);
};
#endif // CARGO_ENTITY_H