Abstraction and serialization for entities
This commit is contained in:
parent
5cb96fb793
commit
48ad2f1817
13 changed files with 106 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue