Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
bigdatabase.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021-2025 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
#ifndef BIGDATABASE_H
10
#define BIGDATABASE_H
11
12
#include "
abstractdata.h
"
13
14
namespace
QH
{
15
namespace
PKG
{
16
20
class
HEARTSHARED_EXPORT
BigDataBase
:
public
AbstractData
21
{
22
QH_PACKAGE
(
"BigDataBase"
)
23
24
public
:
25
BigDataBase
();
26
31
int
packageId
()
const
;
32
37
void
setPackageId
(
int
newPackageId);
38
39
bool
isValid
()
const override
;
40
QString
toString
()
const override
;
41
42
// StreamBase interface
43
protected
:
44
QDataStream &
fromStream
(QDataStream &stream)
override
;
45
QDataStream &
toStream
(QDataStream &stream)
const override
;
46
47
private
:
48
int
_packageId = 0;
49
50
};
51
52
}
53
}
54
#endif
// BIGDATABASE_H
abstractdata.h
QH_PACKAGE
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
Definition
abstractdata.h:34
QH::PKG::AbstractData::AbstractData
AbstractData()
AbstractData - Base constructor of this object.
Definition
abstractdata.cpp:18
QH::PKG::BigDataBase::fromStream
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
Definition
bigdatabase.cpp:27
QH::PKG::BigDataBase::toString
QString toString() const override
Definition
bigdatabase.cpp:45
QH::PKG::BigDataBase::packageId
int packageId() const
getPackageId This method return package id that this part moving.
Definition
bigdatabase.cpp:19
QH::PKG::BigDataBase::isValid
bool isValid() const override
Definition
bigdatabase.cpp:40
QH::PKG::BigDataBase::toStream
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
Definition
bigdatabase.cpp:34
QH::PKG::BigDataBase::setPackageId
void setPackageId(int newPackageId)
setPackageId This method sets new id of package that this package moving
Definition
bigdatabase.cpp:23
QH::PKG::BigDataBase::BigDataBase
BigDataBase()
Definition
bigdatabase.cpp:14
QH::PKG
The PKG namesapce - this namespace contains all default packages of the Heart library....
Definition
heart.h:211
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
packages
bigdatabase.h
Generated by
1.18.0