#include "ProjectFileIO.h"
#include <atomic>
#include <sqlite3.h>
#include <optional>
#include <cstring>
#include <wx/crt.h>
#include <wx/log.h>
#include <wx/sstream.h>
#include <wx/utils.h>
#include "ActiveProjects.h"
#include "CodeConversions.h"
#include "DBConnection.h"
#include "FileNames.h"
#include "PendingTracks.h"
#include "Project.h"
#include "ProjectFileIOExtension.h"
#include "ProjectHistory.h"
#include "ProjectSerializer.h"
#include "SampleBlock.h"
#include "TempDirectory.h"
#include "TransactionScope.h"
#include "WaveTrack.h"
#include "WaveTrackUtilities.h"
#include "BasicUI.h"
#include "wxFileNameWrapper.h"
#include "XMLFileReader.h"
#include "SentryHelper.h"
#include "MemoryX.h"
#include "ProjectFormatVersion.h"
#include "BufferedStreamReader.h"
#include "FromChars.h"
#include "sqlite/SQLiteUtils.h"
Go to the source code of this file.
◆ AUDACITY_FILE_FORMAT_VERSION
#define AUDACITY_FILE_FORMAT_VERSION "1.3.0" |
◆ PACK
#define PACK |
( |
|
b1, |
|
|
|
b2, |
|
|
|
b3, |
|
|
|
b4 |
|
) |
| ((b1 << 24) | (b2 << 16) | (b3 << 8) | b4) |
◆ ExecCallback()
static int ExecCallback |
( |
void * |
data, |
|
|
int |
cols, |
|
|
char ** |
vals, |
|
|
char ** |
names |
|
) |
| |
|
static |
Definition at line 641 of file ProjectFileIO.cpp.
642{
644
645 return GuardedCall<int>(
646 [&]{
return cb(cols, vals,
names); },
648 );
649}
SimpleGuard< R > MakeSimpleGuard(R value) noexcept(noexcept(SimpleGuard< R >{ value }))
Convert a value to a handler function returning that value, suitable for GuardedCall<R>
std::function< int(int cols, char **vals, char **names)> ExecCB
References MakeSimpleGuard(), and names.
Referenced by ProjectFileIO::Exec().
◆ ProjectFileID
const int ProjectFileID = PACK('A', 'U', 'D', 'Y') |
|
static |
◆ ProjectFileSchema
const char* ProjectFileSchema |
|
static |
◆ scope
Initial value:{
if ( !projectFileIO.AutoSave() )
XO(
"Automatic database backup failed."),
"Error:_Disk_full_or_not_writable"
};
} }
@ Internal
Indicates internal failure from Audacity.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static ProjectFileIO & Get(AudacityProject &project)
A MessageBoxException that shows a given, unvarying string.
Install the callback from undo manager.
Definition at line 2661 of file ProjectFileIO.cpp.
◆ sFileIOKey