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

@ -19,3 +19,11 @@ QString dpoint_entity::title() {
const QVector<unsigned long long> dpoint_entity::storages_ids() {
return this->_storages_ids;
}
void dpoint_entity::serialize(QDataStream &output) {
output << this->_id << this->_title << this->_storages_ids;
}
void dpoint_entity::deserialize(QDataStream &input) {
input >> this->_id >> this->_title >> this->_storages_ids;
}