Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
bigdatawraper.cpp
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
#include "
bigdatawraper.h
"
11
12
namespace
QH
{
13
namespace
PKG
{
14
const
AbstractData
*
BigDataWraper::data
()
const
{
15
return
_data;
16
}
17
18
void
BigDataWraper::setData
(
const
AbstractData
*newData) {
19
_data = newData;
20
}
21
22
QString
BigDataWraper::toString
()
const
{
23
if
(_data)
24
return
QString(
"Wrapper of : %0"
).arg(_data->toString());
25
return
QString(
"Wrapper of : null"
);
26
}
27
28
QDataStream &
BigDataWraper::fromStream
(QDataStream &stream) {
29
return
stream;
30
}
31
32
QDataStream &
BigDataWraper::toStream
(QDataStream &stream)
const
{
33
return
stream;
34
}
35
36
}
37
}
bigdatawraper.h
QH::PKG::AbstractData::AbstractData
AbstractData()
AbstractData - Base constructor of this object.
Definition
abstractdata.cpp:18
QH::PKG::BigDataWraper::fromStream
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
Definition
bigdatawraper.cpp:28
QH::PKG::BigDataWraper::toStream
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
Definition
bigdatawraper.cpp:32
QH::PKG::BigDataWraper::toString
QString toString() const override
Definition
bigdatawraper.cpp:22
QH::PKG::BigDataWraper::setData
void setData(const AbstractData *newData)
setData This method sets new data for this wrapper.
Definition
bigdatawraper.cpp:18
QH::PKG::BigDataWraper::data
const AbstractData * data() const
data This method sets data that shold be sent as big data.
Definition
bigdatawraper.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
bigdatawraper.cpp
Generated by
1.18.0