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
The constructor to create a new version file.
- Parameters
-
const Version& getVersion |
( |
| ) |
const |
|
inlinenoexcept |
Get the content of the file.
- Returns
- The version contained in the file
void setVersion |
( |
const Version & |
version | ) |
|
|
inlinenoexcept |
Set the version of the file.
- Parameters
-
version | The new version of the file |
QByteArray toByteArray |
( |
| ) |
const |
|
noexcept |
Export file content as byte array.
VersionFile fromByteArray |
( |
const QByteArray & |
content | ) |
|
|
static |
Load version file from byte array.
- Parameters
-
content | The raw file content |
- Returns
- A new VersionFile object
- Exceptions
-
The version number of the file.
The documentation for this class was generated from the following files: