Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
bigdatawraper.cpp
Go to the documentation of this file.
1
2//#
3//# Copyright (C) 2022-2024 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#include "bigdatawraper.h"
11
12namespace QH {
13namespace PKG {
15 return _data;
16}
17
19 _data = newData;
20}
21
22QString BigDataWraper::toString() const {
23 if (_data)
24 return QString("Wrapper of : %0").arg(_data->toString());
25 return QString("Wrapper of : null");
26}
27
28QDataStream &BigDataWraper::fromStream(QDataStream &stream) {
29 return stream;
30}
31
32QDataStream &BigDataWraper::toStream(QDataStream &stream) const {
33 return stream;
34}
35
36}
37}
The AbstractData class is provide base functions for transport data by network For create you own pac...
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.
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 QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13