8#ifndef MULTIVERSIONDATA_H
9#define MULTIVERSIONDATA_H
18 std::function<QDataStream& (QDataStream& stream)>
from =
nullptr;
19 std::function<QDataStream& (QDataStream& stream)>
to =
nullptr;
74 MultiversionData(
const QMap<unsigned short /*version*/, SerializationBox>& serializers);
82 QDataStream& fromStream(QDataStream& stream)
override final;
83 QDataStream& toStream(QDataStream& stream)
const override final;
91 QByteArray toBytesOf(
const DistVersion &version)
const;
99 QDataStream& toStreamOf(QDataStream& stream,
const DistVersion &version)
const;
102 bool toPackage(
Package &package,
const DistVersion &reqVersion,
unsigned int triggerHash = 0)
const override final;
The DistVersion class This is information of supported versions of the destinations api.
The AbstractData class is provide base functions for transport data by network For create you own pac...
The MultiversionData class This class add support for multiple versions of ne command/package....
The Package struct. This is base structure for transporting data by network between QH nodes....
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
std::function< QDataStream &(QDataStream &stream)> to
std::function< QDataStream &(QDataStream &stream)> from