Audacity 3.2.0
ProjectFormatVersion.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ProjectFormatVersion.h
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#pragma once
12
13#include <cstdint>
14
21struct PROJECT_API ProjectFormatVersion final
22{
23 uint8_t Major { 0 };
24 uint8_t Minor { 0 };
25 uint8_t Revision { 0 };
26 uint8_t ModLevel { 0 };
27
28 // Create ProjectFormatVersion from the uint32_t value
29 static ProjectFormatVersion FromPacked(uint32_t) noexcept;
31 uint32_t GetPacked() const noexcept;
32
34 bool IsValid() const noexcept;
35};
36
37PROJECT_API bool operator==(ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept;
38PROJECT_API bool operator!=(ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept;
39PROJECT_API bool operator<(ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept;
40
44PROJECT_API extern const ProjectFormatVersion BaseProjectFormatVersion;
PROJECT_API const ProjectFormatVersion BaseProjectFormatVersion
This is a helper constant for the "most compatible" project version with the value (3,...
PROJECT_API const ProjectFormatVersion SupportedProjectFormatVersion
This constant represents the current version of Audacity.
A structure that holds the project version.