Heart 1.3.848.aa44c26
Heart is base back end library for your c++ Qt projects.
|
The StreamMultiversion class this parser works with simple multiversion packages. More...
#include <streammultiversion.h>
Public Member Functions | |
StreamMultiversion () | |
virtual int | version () const =0 |
version override this method to sets version of package. | |
virtual int | realVersion () const |
realVersion This method return value of the version that was be saved in the bytes array. | |
Public Member Functions inherited from QH::StreamBase | |
StreamBase () | |
virtual | ~StreamBase () |
bool | fromBytes (const QByteArray &data) |
fromBytes This method provide initialization of object from byte array. | |
QByteArray | toBytes () const |
toBytes This method convert a current object to bytes array. | |
bool | fromBase64 (const QString &data) |
fromBase64 This method provide initialization of object from the base64 string. | |
bool | fromBase64 (const QByteArray &data) |
fromBase64 This method provide initialization of object from the base64 string. | |
QByteArray | toBase64 () const |
toBase64 This method convert a current object to the base64 string. | |
template<class T > | |
T & | copy (const StreamBase &right) |
copy This is base copy method for all StreamBase structures. Default implementation it is copy from byteArray. | |
template<class T > | |
bool | compare (const T &right) |
compare This method compare array signatures of this and right objects. | |
Protected Member Functions | |
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. | |
Protected Member Functions inherited from QH::StreamBase | |
virtual int | parsingVersion () const |
parsingVersion this method return parsing version of Qt. By Default is 0 (last available parsing). see https://doc.qt.io/qt-6/qdatastream.html#Version-enum | |
virtual unsigned int | typeId () const |
typeId This method return id of type. | |
The StreamMultiversion class this parser works with simple multiversion packages.
Definition at line 18 of file streammultiversion.h.
QH::StreamMultiversion::StreamMultiversion | ( | ) |
Definition at line 6 of file streammultiversion.cpp.
|
overrideprotectedvirtual |
fromStream This method should be read all bytes from the stream object and full the current object.
stream | This is Qt stream object. |
Examle of base simple implementation:
Implements QH::StreamBase.
Definition at line 10 of file streammultiversion.cpp.
|
virtual |
realVersion This method return value of the version that was be saved in the bytes array.
Definition at line 21 of file streammultiversion.cpp.
|
overrideprotectedvirtual |
fromStream This method should be write all members of the current object to the stream object.
stream | This is Qt stream object. |
Examle of base simple implementation:
Implements QH::StreamBase.
Definition at line 15 of file streammultiversion.cpp.
|
pure virtual |
version override this method to sets version of package.