Audacity  3.0.3
Public Member Functions | List of all members
AUPImportPlugin Class Referencefinal

An ImportPlugin for AUP files (pre-AUP3) More...

Inheritance diagram for AUPImportPlugin:
[legend]
Collaboration diagram for AUPImportPlugin:
[legend]

Public Member Functions

 AUPImportPlugin ()
 
 ~AUPImportPlugin ()
 
wxString GetPluginStringID () override
 
TranslatableString GetPluginFormatDescription () override
 
ImportHandle Open (const FilePath &fileName, AudacityProject *project) override
 
- Public Member Functions inherited from ImportPlugin
virtual FileExtensions GetSupportedExtensions ()
 
bool SupportsExtension (const FileExtension &extension)
 
virtual ~ImportPlugin ()
 

Additional Inherited Members

- Protected Member Functions inherited from ImportPlugin
 ImportPlugin (FileExtensions supportedExtensions)
 
- Protected Attributes inherited from ImportPlugin
const FileExtensions mExtensions
 

Detailed Description

An ImportPlugin for AUP files (pre-AUP3)

Definition at line 72 of file ImportAUP.cpp.

Constructor & Destructor Documentation

◆ AUPImportPlugin()

AUPImportPlugin::AUPImportPlugin ( )

Definition at line 223 of file ImportAUP.cpp.

224 : ImportPlugin(FileExtensions(exts.begin(), exts.end()))
225 {
226  static_assert(
227  sizeof(long long) >= sizeof(uint64_t) &&
228  sizeof(long) >= sizeof(uint32_t),
229  "Assumptions about sizes in XMLValueChecker calls are invalid!");
230 }

◆ ~AUPImportPlugin()

AUPImportPlugin::~AUPImportPlugin ( )

Definition at line 232 of file ImportAUP.cpp.

233 {
234 }

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString AUPImportPlugin::GetPluginFormatDescription ( )
overridevirtual

Implements ImportPlugin.

Definition at line 241 of file ImportAUP.cpp.

242 {
243  return DESC;
244 }

References DESC.

◆ GetPluginStringID()

wxString AUPImportPlugin::GetPluginStringID ( )
overridevirtual

Implements ImportPlugin.

Definition at line 236 of file ImportAUP.cpp.

237 {
238  return wxT("legacyaup");
239 }

◆ Open()

ImportHandle AUPImportPlugin::Open ( const FilePath fileName,
AudacityProject project 
)
overridevirtual

Implements ImportPlugin.

Definition at line 246 of file ImportAUP.cpp.

248 {
249  auto handle = std::make_unique<AUPImportFileHandle>(fileName, project);
250 
251  if (!handle->Open())
252  {
253  // Error or not something that we recognize
254  return nullptr;
255  }
256 
257  return handle;
258 }

The documentation for this class was generated from the following file:
DESC
#define DESC
Definition: ImportAUP.cpp:55
FileExtensions
wxArrayStringEx FileExtensions
Definition: Identifier.h:225
ImportPlugin::ImportPlugin
ImportPlugin(FileExtensions supportedExtensions)
Definition: ImportPlugin.cpp:18
exts
static const auto exts
Definition: ImportAUP.cpp:57