Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
streammultiversion.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef STREAMMULTIVERSION_H
9#define STREAMMULTIVERSION_H
10
11#include "streambase.h"
12
13namespace QH {
14
19{
20public:
21
23
24 // StreamBase interface
29 virtual int version() const = 0;
30
36 virtual int realVersion() const;
37protected:
38 QDataStream &fromStream(QDataStream &stream) override;
39 QDataStream &toStream(QDataStream &stream) const override;
40
41
42
43private:
44 int _realVersion = 0;
45};
46}
47#endif // STREAMMULTIVERSION_H
The StreamBase class add support streaming data for all children classes. For correctly working all s...
Definition streambase.h:28
The StreamMultiversion class this parser works with simple multiversion packages.
virtual int version() const =0
version override this method to sets version of package.
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13