1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 11:42:17 +01:00

Register factory functions with DirManager to interpret XML tags...

... Removes direct dependency on ODManager.h and some BlockFile subclasses,
but does not yet break any dependency cycles
This commit is contained in:
Paul Licameli
2019-05-14 14:49:47 -04:00
parent 81d4c217e6
commit ca0fb190e6
8 changed files with 113 additions and 53 deletions

View File

@@ -29,6 +29,7 @@ The summary is eventually computed and written to a file in a background thread.
#include "../DirManager.h"
#include "../FileFormats.h"
#include "../ondemand/ODManager.h"
#include "NotYetAvailableException.h"
const int bheaderTagLen = 20;
@@ -524,3 +525,11 @@ void ODDecodeBlockFile::ChangeAudioFile(wxFileNameWrapper &&newAudioFile)
static DirManager::RegisteredBlockFileDeserializer sRegistration {
"oddecodeblockfile",
[]( DirManager &dm, const wxChar **attrs ){
auto result = ODDecodeBlockFile::BuildFromXML( dm, attrs );
ODManager::MarkLoadedODFlag();
return result;
}
};