Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
bigdatawraper.h
Go to the documentation of this file.
1
2//#
3//# Copyright (C) 2022-2025 QuasarApp.
4//# Distributed under the lgplv3 software license, see the accompanying
5//# Everyone is permitted to copy and distribute verbatim copies
6//# of this license document, but changing it is not allowed.
7//#
8
9
10#ifndef BIGDATAWRAPER_H
11#define BIGDATAWRAPER_H
12#include "abstractdata.h"
13
14namespace QH {
15namespace PKG {
16
20class HEARTSHARED_EXPORT BigDataWraper: public AbstractData
21{
22 QH_PACKAGE("BigDataWraper")
23
24public:
25 BigDataWraper() = default;
26
31 const AbstractData *data() const;
32
37 void setData(const AbstractData *newData);
38 QString toString() const override;
39 // StreamBase interface
40protected:
41 QDataStream &fromStream(QDataStream &stream) override;
42 QDataStream &toStream(QDataStream &stream) const override;
43
44private:
45 const AbstractData *_data = nullptr;
46
47
48
49};
50}
51}
52#endif // BIGDATAWRAPER_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...
AbstractData()
AbstractData - Base constructor of this object.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
QString toString() const override
void setData(const AbstractData *newData)
setData This method sets new data for this wrapper.
const AbstractData * data() const
data This method sets data that shold be sent as big data.
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