Audacity 3.2.0
|
The class that allows evaluating the minimum version of Audacity required to support the project. More...
#include <ProjectFormatExtensionsRegistry.h>
Classes | |
struct | Extension |
A struct to register the project extension that requires a different project version. More... | |
Public Types | |
using | ProjectVersionResolver = ProjectFormatVersion(*)(const AudacityProject &) |
Public Member Functions | |
ProjectFormatVersion | GetRequiredVersion (const AudacityProject &project) const |
Returns the minimum possible version that can be used to save the project. More... | |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Static Public Member Functions | |
static const ProjectFormatExtensionsRegistry & | Get () |
Private Member Functions | |
void | Register (ProjectVersionResolver resolver) |
Private Attributes | |
std::vector< ProjectVersionResolver > | mRegisteredExtensions |
The class that allows evaluating the minimum version of Audacity required to support the project.
Definition at line 22 of file ProjectFormatExtensionsRegistry.h.
using ProjectFormatExtensionsRegistry::ProjectVersionResolver = ProjectFormatVersion (*)(const AudacityProject&) |
Definition at line 26 of file ProjectFormatExtensionsRegistry.h.
|
static |
Definition at line 24 of file ProjectFormatExtensionsRegistry.cpp.
References GetProjectFormatExtensionsRegistry().
Referenced by ProjectFileIO::WriteDoc().
ProjectFormatVersion ProjectFormatExtensionsRegistry::GetRequiredVersion | ( | const AudacityProject & | project | ) | const |
Returns the minimum possible version that can be used to save the project.
Definition at line 35 of file ProjectFormatExtensionsRegistry.cpp.
References BaseProjectFormatVersion, mRegisteredExtensions, and project.
Referenced by ProjectFileIO::WriteDoc().
|
private |
Definition at line 29 of file ProjectFormatExtensionsRegistry.cpp.
References mRegisteredExtensions.
Referenced by ProjectFormatExtensionsRegistry::Extension::Extension().
|
private |
Definition at line 42 of file ProjectFormatExtensionsRegistry.h.
Referenced by GetRequiredVersion(), and Register().