|
Audacity
3.0.3
|
Go to the documentation of this file.
11 #include "../Audacity.h"
14 #include "../FileFormats.h"
15 #include "../DirManager.h"
16 #include "../xml/XMLTagHandler.h"
32 data.
reinit( mSummaryInfo.totalSummaryBytes );
33 memset(data.get(), 0, mSummaryInfo.totalSummaryBytes);
38 size_t WXUNUSED(start),
size_t len,
bool)
const
48 xmlFile.
StartTag(wxT(
"silentblockfile"));
52 xmlFile.
EndTag(wxT(
"silentblockfile"));
66 const wxChar *attr = *attrs++;
67 const wxChar *value = *attrs++;
71 const wxString strValue = value;
72 if (!wxStrcmp(attr, wxT(
"len")) &&
74 strValue.ToLong(&nValue) &&
79 return make_blockfile<SilentBlockFile>(len);
85 auto newBlockFile = make_blockfile<SilentBlockFile>(mLen);
97 []( DirManager &dm,
const wxChar **attrs ){
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
virtual void EndTag(const wxString &name)
virtual ~SilentBlockFile()
static bool IsGoodInt(const wxString &strInt)
Check that the supplied string can be converted to a long (32bit) integer.
size_t ReadData(samplePtr data, sampleFormat format, size_t start, size_t len, bool mayThrow) const override
Read the data section of the disk file.
SilentBlockFile(size_t sampleLen)
void reinit(Integral count, bool initialize=false)
DiskByteCount GetSpaceUsage() const override
bool ReadSummary(ArrayOf< char > &data) override
Read the summary section of the disk file.
BlockFilePtr Copy(wxFileNameWrapper &&newFileName) override
Create a NEW block file identical to this one.
void WriteAttr(const wxString &name, const Identifier &value)
static BlockFilePtr BuildFromXML(DirManager &dm, const wxChar **attrs)
static
void SaveXML(XMLWriter &xmlFile) override
Write an XML representation of this file.
virtual void StartTag(const wxString &name)
static DirManager::RegisteredBlockFileDeserializer sRegistration