Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
bigdatabase.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8
9#include "bigdatabase.h"
10
11namespace QH {
12namespace PKG {
13
18
20 return _packageId;
21}
22
23void BigDataBase::setPackageId(int newPackageId) {
24 _packageId = newPackageId;
25}
26
27QDataStream &BigDataBase::fromStream(QDataStream &stream) {
28
29 stream >> _packageId;
30
31 return stream;
32}
33
34QDataStream &BigDataBase::toStream(QDataStream &stream) const {
35 stream << _packageId;
36
37 return stream;
38}
39
41 return AbstractData::isValid() && _packageId >= 0;
42
43}
44
45QString BigDataBase::toString() const {
46 return AbstractData::toString() +
47 " packageId: " +
48 QString::number(_packageId);
49}
50
51}
52}
virtual bool isValid() const
isValid This method check current object to valid.
QString toString() const override
toString - Return a string implementation for this object.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
QString toString() const override
int packageId() const
getPackageId This method return package id that this part moving.
bool isValid() const override
isValid This method check current object to valid.
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
void setPackageId(int newPackageId)
setPackageId This method sets new id of package that this package moving
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13