Heart
1.4.984.b4712811
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
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
15
namespace
QH
{
16
namespace
PKG
{
17
21
class
HEARTSHARED_EXPORT
BigDataWrapper
:
public
AbstractData
22
{
23
QH_PACKAGE
(
"BigDataWrapper"
)
24
25
public
:
26
BigDataWrapper
() =
default
;
27
32
const
AbstractData
*
data
()
const
;
33
38
void
setData
(
const
AbstractData
*newData);
39
QString
toString
()
const override
;
40
// StreamBase interface
41
protected
:
42
QDataStream &
fromStream
(QDataStream &stream)
override
;
43
QDataStream &
toStream
(QDataStream &stream)
const override
;
44
45
private
:
46
const
AbstractData
*_data =
nullptr
;
47
48
49
50
};
51
}
52
}
53
#endif
// BIGDATAWRAPPER_H
abstractdata.h
QH_PACKAGE
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
Definition
abstractdata.h:33
QH::PKG::AbstractData::AbstractData
AbstractData()
AbstractData - Base constructor of this object.
Definition
abstractdata.cpp:17
QH::PKG::BigDataWrapper::toStream
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
Definition
bigdatawrapper.cpp:32
QH::PKG::BigDataWrapper::fromStream
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
Definition
bigdatawrapper.cpp:28
QH::PKG::BigDataWrapper::setData
void setData(const AbstractData *newData)
setData This method sets new data for this wrapper.
Definition
bigdatawrapper.cpp:18
QH::PKG::BigDataWrapper::toString
QString toString() const override
Definition
bigdatawrapper.cpp:22
QH::PKG::BigDataWrapper::data
const AbstractData * data() const
data This method sets data that should be sent as big data.
Definition
bigdatawrapper.cpp:14
QH::PKG::BigDataWrapper::BigDataWrapper
BigDataWrapper()=default
QH::PKG
The PKG namespace - 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
bigdatawrapper.h
Generated by
1.18.0