Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
bigdataheader.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
10#ifndef BIGDATAHEADER_H
11#define BIGDATAHEADER_H
12
13#include "bigdatabase.h"
14
15
16namespace QH {
17namespace PKG {
18
28class HEARTSHARED_EXPORT BigDataHeader : public BigDataBase
29{
30 QH_PACKAGE("BigDataHeader")
31
32public:
34
35 bool isValid() const override;
36 QString toString() const override;
37
38 // StreamBase interface
43 int getPackagesCount() const;
44
49 void setPackagesCount(int newPackagesCount);
50
55 unsigned short getCommand() const;
56
61 void setCommand(unsigned short newCommand);
62
63protected:
64 QDataStream &fromStream(QDataStream &stream) override;
65 QDataStream &toStream(QDataStream &stream) const override;
66
67private:
68 int packagesCount;
69 unsigned short _command = 0;
70};
71}
72}
73#endif // BIGDATAHEADER_H
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
QString toString() const override
unsigned short getCommand() const
getCommand This method return commnad of moving package.
int getPackagesCount() const
getPackagesCount This method return count of parts of bigdata package.
void setCommand(unsigned short newCommand)
setCommand This method sets new value for package command that will moved
bool isValid() const override
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
void setPackagesCount(int newPackagesCount)
setPackagesCount This method sets new count of pcakges.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
The PKG namesapce - this namespace contains all default packages of the Heart library....
Definition heart.h:211
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13