Audacity  2.2.0
LegacyAliasBlockFile.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  LegacyAliasBlockFile.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_LEGACYALIASBLOCKFILE__
12 #define __AUDACITY_LEGACYALIASBLOCKFILE__
13 
14 #include "../BlockFile.h"
15 #include "PCMAliasBlockFile.h"
16 
19 {
20  public:
21 
22  // Constructor / Destructor
23 
26  wxFileNameWrapper &&aliasedFileName,
27  sampleCount aliasStart,
28  size_t aliasLen,
29  int aliasChannel,
30  size_t summaryLen,
31  bool noRMS);
32  virtual ~LegacyAliasBlockFile();
33 
34  void SaveXML(XMLWriter &xmlFile) override;
35  BlockFilePtr Copy(wxFileNameWrapper &&fileName) override;
36  void Recover() override;
37 
38  static BlockFilePtr BuildFromXML(const wxString &projDir, const wxChar **attrs);
39 };
40 
41 #endif
Definition: wxFileNameWrapper.h:16
std::shared_ptr< BlockFile > BlockFilePtr
Definition: BlockFile.h:48
BlockFilePtr Copy(wxFileNameWrapper &&fileName) override
Definition: LegacyAliasBlockFile.cpp:54
LegacyAliasBlockFile(wxFileNameWrapper &&fileName, wxFileNameWrapper &&aliasedFileName, sampleCount aliasStart, size_t aliasLen, int aliasChannel, size_t summaryLen, bool noRMS)
Constructs a LegacyAliasBlockFile, writing the summary to disk.
Definition: LegacyAliasBlockFile.cpp:23
void SaveXML(XMLWriter &xmlFile) override
Stores a representation of this file in XML.
Definition: LegacyAliasBlockFile.cpp:64
An AliasBlockFile that references uncompressed data in an existing file.
Definition: LegacyAliasBlockFile.h:18
static BlockFilePtr BuildFromXML(const wxString &projDir, const wxChar **attrs)
Definition: LegacyAliasBlockFile.cpp:86
virtual ~LegacyAliasBlockFile()
Definition: LegacyAliasBlockFile.cpp:46
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:22
An AliasBlockFile that references uncompressed data in an existing file.
Definition: PCMAliasBlockFile.h:18
void Recover() override
if the on-disk state disappeared, either recover it (if it was
Definition: LegacyAliasBlockFile.cpp:147