sea_transport_project/sea_transport/entities/dpoint_entity.h
2020-12-23 01:30:11 +07:00

32 lines
679 B
C++

#ifndef DPOINT_ENTITY_H
#define DPOINT_ENTITY_H
#include "IEntity.h"
#include "storage_entity.h"
#include <QString>
#include <QVector>
#include <QCryptographicHash>
class dpoint_entity : public IEntity {
private:
entity_id _id;
entity_id _dispatcher_id;
QString _title;
QVector<storage_entity> _storages;
public:
dpoint_entity() = default;
dpoint_entity(entity_id dispatcher_id, const QString &title);
entity_id id() const;
entity_id dispatcher() const;
QString title() const;
const QVector<storage_entity> storages();
void serialize(QDataStream &output);
void deserialize(QDataStream &input);
};
#endif // DPOINT_ENTITY_H