Audacity
3.2.0
libraries
lib-project
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
21
struct
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
37
PROJECT_API
bool
operator==(
ProjectFormatVersion
lhs,
ProjectFormatVersion
rhs) noexcept;
38
PROJECT_API
bool
operator!=(
ProjectFormatVersion
lhs,
ProjectFormatVersion
rhs) noexcept;
39
PROJECT_API
bool
operator<(
ProjectFormatVersion
lhs,
ProjectFormatVersion
rhs) noexcept;
40
42
PROJECT_API extern const
ProjectFormatVersion
SupportedProjectFormatVersion
;
44
PROJECT_API extern const
ProjectFormatVersion
BaseProjectFormatVersion
;
BaseProjectFormatVersion
PROJECT_API const ProjectFormatVersion BaseProjectFormatVersion
This is a helper constant for the "most compatible" project version which is the current MAJ....
Definition:
ProjectFormatVersion.cpp:56
SupportedProjectFormatVersion
PROJECT_API const ProjectFormatVersion SupportedProjectFormatVersion
This constant represents the current version of Audacity.
Definition:
ProjectFormatVersion.cpp:52
ProjectFormatVersion
A structure that holds the project version.
Definition:
ProjectFormatVersion.h:22
Generated by
1.9.3