Audacity 3.2.0
Functions | Variables
ProjectFormatVersion.cpp File Reference
#include "ProjectFormatVersion.h"
#include <tuple>
Include dependency graph for ProjectFormatVersion.cpp:

Go to the source code of this file.

Functions

bool operator== (ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept
 
bool operator!= (ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept
 
bool operator< (ProjectFormatVersion lhs, ProjectFormatVersion rhs) noexcept
 

Variables

const ProjectFormatVersion SupportedProjectFormatVersion
 This constant represents the current version of Audacity. More...
 
const ProjectFormatVersion BaseProjectFormatVersion = { 3, 0, 0, 0 }
 This is a helper constant for the "most compatible" project version with the value (3, 0, 0, 0). More...
 

Function Documentation

◆ operator!=()

bool operator!= ( ProjectFormatVersion  lhs,
ProjectFormatVersion  rhs 
)
noexcept

Definition at line 21 of file ProjectFormatVersion.cpp.

22{
23 return !(lhs == rhs);
24}

◆ operator<()

bool operator< ( ProjectFormatVersion  lhs,
ProjectFormatVersion  rhs 
)
noexcept

Definition at line 26 of file ProjectFormatVersion.cpp.

27{
28 return std::tie(lhs.Major, lhs.Minor, lhs.Revision, lhs.ModLevel) <
29 std::tie(rhs.Major, rhs.Minor, rhs.Revision, rhs.ModLevel);
30}

◆ operator==()

bool operator== ( ProjectFormatVersion  lhs,
ProjectFormatVersion  rhs 
)
noexcept

Definition at line 15 of file ProjectFormatVersion.cpp.

16{
17 return std::tie(lhs.Major, lhs.Minor, lhs.Revision, lhs.ModLevel) ==
18 std::tie(rhs.Major, rhs.Minor, rhs.Revision, rhs.ModLevel);
19}

Variable Documentation

◆ BaseProjectFormatVersion

const ProjectFormatVersion BaseProjectFormatVersion = { 3, 0, 0, 0 }

This is a helper constant for the "most compatible" project version with the value (3, 0, 0, 0).

Definition at line 56 of file ProjectFormatVersion.cpp.

Referenced by ProjectFormatExtensionsRegistry::GetRequiredVersion(), and ProjectFileIO::InstallSchema().

◆ SupportedProjectFormatVersion

const ProjectFormatVersion SupportedProjectFormatVersion
Initial value:
= {
AUDACITY_VERSION, AUDACITY_RELEASE, AUDACITY_REVISION, AUDACITY_MODLEVEL
}

This constant represents the current version of Audacity.

Definition at line 52 of file ProjectFormatVersion.cpp.

Referenced by ProjectFileIO::CheckVersion().