Heart 1.4.984.b4712811
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
bigdatawrapper.h
Go to the documentation of this file.
1
2//#
3//# Copyright (C) 2022-2027 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 BIGDATAWRAPPER_H
11#define BIGDATAWRAPPER_H
12#include "heart_global.h"
13#include "abstractdata.h"
14
15namespace QH {
16namespace PKG {
17
21class HEARTSHARED_EXPORT BigDataWrapper: public AbstractData
22{
23 QH_PACKAGE("BigDataWrapper")
24
25public:
26 BigDataWrapper() = default;
27
32 const AbstractData *data() const;
33
38 void setData(const AbstractData *newData);
39 QString toString() const override;
40 // StreamBase interface
41protected:
42 QDataStream &fromStream(QDataStream &stream) override;
43 QDataStream &toStream(QDataStream &stream) const override;
44
45private:
46 const AbstractData *_data = nullptr;
47
48
49
50};
51}
52}
53#endif // BIGDATAWRAPPER_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 & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
void setData(const AbstractData *newData)
setData This method sets new data for this wrapper.
QString toString() const override
const AbstractData * data() const
data This method sets data that should be sent as big data.
The PKG namespace - 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