Audacity 3.2.0
Classes | Functions | Variables
ProjectFormatVersion.h File Reference
#include <cstdint>
Include dependency graph for ProjectFormatVersion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ProjectFormatVersion
 A structure that holds the project version. More...
 

Functions

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

Variables

PROJECT_API const ProjectFormatVersion SupportedProjectFormatVersion
 This constant represents the current version of Audacity. More...
 
PROJECT_API const ProjectFormatVersion BaseProjectFormatVersion
 This is a helper constant for the "most compatible" project version which is the current MAJ.MIN.0.0. More...
 

Function Documentation

◆ operator!=()

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

Definition at line 21 of file ProjectFormatVersion.cpp.

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

◆ operator<()

PROJECT_API 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==()

PROJECT_API 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

PROJECT_API const ProjectFormatVersion BaseProjectFormatVersion
extern

This is a helper constant for the "most compatible" project version which is the current MAJ.MIN.0.0.

Definition at line 56 of file ProjectFormatVersion.cpp.

Referenced by ProjectFileIO::InstallSchema(), and ProjectFileIO::WriteDoc().

◆ SupportedProjectFormatVersion

PROJECT_API const ProjectFormatVersion SupportedProjectFormatVersion
extern

This constant represents the current version of Audacity.

Definition at line 52 of file ProjectFormatVersion.cpp.

Referenced by ProjectFileIO::CheckVersion().