20#ifndef LIBREPCB_CORE_VERSIONFILE_H
21#define LIBREPCB_CORE_VERSIONFILE_H
26#include "../types/version.h"
Class for reading and writing version files from/to QByteArray.
Definition: versionfile.h:47
void setVersion(const Version &version) noexcept
Set the version of the file.
Definition: versionfile.h:83
~VersionFile() noexcept
Definition: versionfile.cpp:41
Version mVersion
The version number of the file.
Definition: versionfile.h:110
QByteArray toByteArray() const noexcept
Export file content as byte array.
Definition: versionfile.cpp:48
static VersionFile fromByteArray(const QByteArray &content)
Load version file from byte array.
Definition: versionfile.cpp:56
const Version & getVersion() const noexcept
Get the content of the file.
Definition: versionfile.h:74
VersionFile(const VersionFile &other)=default
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
Definition: occmodel.cpp:77