Class for reading and writing version files from/to QByteArray.
More...
#include <versionfile.h>
Class for reading and writing version files from/to QByteArray.
See File Format Versioning for details what version files are used for and how they work.
- See also
- File Format Versioning
◆ VersionFile() [1/3]
◆ VersionFile() [2/3]
◆ VersionFile() [3/3]
The constructor to create a new version file.
- Parameters
-
◆ ~VersionFile()
◆ getVersion()
const Version & getVersion |
( |
| ) |
const |
|
inlinenoexcept |
Get the content of the file.
- Returns
- The version contained in the file
◆ setVersion()
void setVersion |
( |
const Version & |
version | ) |
|
|
inlinenoexcept |
Set the version of the file.
- Parameters
-
version | The new version of the file |
◆ toByteArray()
QByteArray toByteArray |
( |
| ) |
const |
|
noexcept |
Export file content as byte array.
◆ fromByteArray()
VersionFile fromByteArray |
( |
const QByteArray & |
content | ) |
|
|
static |
Load version file from byte array.
- Parameters
-
content | The raw file content |
- Returns
- A new VersionFile object
- Exceptions
-
◆ operator=()
◆ mVersion
The version number of the file.
The documentation for this class was generated from the following files: