Audacity 3.2.0
|
A structure that holds the project version. More...
#include <ProjectFormatVersion.h>
Public Member Functions | |
uint32_t | GetPacked () const noexcept |
Returns a version packed to 32-bit integer. More... | |
bool | IsValid () const noexcept |
Returns true if version is valid, i.e. Major != 0. More... | |
Static Public Member Functions | |
static ProjectFormatVersion | FromPacked (uint32_t) noexcept |
Public Attributes | |
uint8_t | Major { 0 } |
uint8_t | Minor { 0 } |
uint8_t | Revision { 0 } |
uint8_t | ModLevel { 0 } |
A structure that holds the project version.
aup3 file format stores version as a 32 bit integer. This class is used for easier interop with the user_version field of the project file.
Definition at line 21 of file ProjectFormatVersion.h.
|
staticnoexcept |
Definition at line 32 of file ProjectFormatVersion.cpp.
Referenced by ProjectFileIO::CheckVersion().
|
noexcept |
Returns a version packed to 32-bit integer.
Definition at line 42 of file ProjectFormatVersion.cpp.
References Major, Minor, ModLevel, and Revision.
Referenced by ProjectFileIO::InstallSchema(), and ProjectFileIO::WriteDoc().
|
noexcept |
Returns true if version is valid, i.e. Major != 0.
Definition at line 47 of file ProjectFormatVersion.cpp.
References Major.
uint8_t ProjectFormatVersion::Major { 0 } |
Definition at line 23 of file ProjectFormatVersion.h.
Referenced by GetPacked(), and IsValid().
uint8_t ProjectFormatVersion::Minor { 0 } |
Definition at line 24 of file ProjectFormatVersion.h.
Referenced by GetPacked().
uint8_t ProjectFormatVersion::ModLevel { 0 } |
Definition at line 26 of file ProjectFormatVersion.h.
Referenced by GetPacked().
uint8_t ProjectFormatVersion::Revision { 0 } |
Definition at line 25 of file ProjectFormatVersion.h.
Referenced by GetPacked().