1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-21 16:11:11 +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

@@ -12,6 +12,7 @@
#include "SilentBlockFile.h"
#include "../FileFormats.h"
#include "../DirManager.h"
#include "../xml/XMLTagHandler.h"
SilentBlockFile::SilentBlockFile(size_t sampleLen):
@@ -91,3 +92,9 @@ auto SilentBlockFile::GetSpaceUsage() const -> DiskByteCount
return 0;
}
static DirManager::RegisteredBlockFileDeserializer sRegistration {
"silentblockfile",
[]( DirManager &dm, const wxChar **attrs ){
return SilentBlockFile::BuildFromXML( dm, attrs );
}
};