Audacity  2.2.0
Importer Class Reference

Class which actulaly imports the auido, using functions defined in ImportPCM.cpp, ImportMP3.cpp, ImportOGG.cpp, ImportRawData.cpp, and ImportLOF.cpp. More...

#include <Import.h>

Public Member Functions

 Importer ()
 
 ~Importer ()
 
bool Initialize ()
 
bool Terminate ()
 
void GetSupportedImportFormats (FormatList *formatList)
 
void ReadImportItems ()
 
void WriteImportItems ()
 
void StringToList (wxString &str, wxString &delims, wxArrayString &list, wxStringTokenizerMode mod=wxTOKEN_RET_EMPTY_ALL)
 
ExtImportItemsGetImportItems ()
 
movable_ptr< ExtImportItemCreateDefaultImportItem ()
 
bool Import (const wxString &fName, TrackFactory *trackFactory, TrackHolders &tracks, Tags *tags, wxString &errorMessage)
 

Static Public Member Functions

static ImporterGet ()
 
static bool IsMidi (const wxString &fName)
 

Private Attributes

ExtImportItems mExtImportItems
 
ImportPluginList mImportPluginList
 
UnusableImportPluginList mUnusableImportPluginList
 

Static Private Attributes

static Importer mInstance
 

Detailed Description

Class which actulaly imports the auido, using functions defined in ImportPCM.cpp, ImportMP3.cpp, ImportOGG.cpp, ImportRawData.cpp, and ImportLOF.cpp.

Constructor & Destructor Documentation

Importer::Importer ( )
Importer::~Importer ( )

Member Function Documentation

movable_ptr< ExtImportItem > Importer::CreateDefaultImportItem ( )

Allocates NEW ExtImportItem, fills it with default data and returns a pointer to it.

References mImportPluginList.

Referenced by ExtImportPrefs::OnAddRule().

ExtImportItems& Importer::GetImportItems ( )
inline
void Importer::GetSupportedImportFormats ( FormatList formatList)

Fills with a list of supported import formats

References mImportPluginList.

Referenced by BatchProcessDialog::OnApplyToFiles(), and AudacityProject::ShowOpenDialog().

bool Importer::IsMidi ( const wxString &  fName)
static
void Importer::ReadImportItems ( )

Reads extended import filters from gPrefs into internal list mExtImportItems

References gPrefs, mExtImportItems, mImportPluginList, and StringToList().

Referenced by Initialize().

void Importer::StringToList ( wxString &  str,
wxString &  delims,
wxArrayString &  list,
wxStringTokenizerMode  mod = wxTOKEN_RET_EMPTY_ALL 
)

Helper function - uses wxStringTokenizer to tokenize string and appends string-tokens to a list . deifines tokenizer's behaviour.

Referenced by ExtImportPrefs::OnRuleTableEdit(), and ReadImportItems().

bool Importer::Terminate ( )
void Importer::WriteImportItems ( )

Member Data Documentation

ExtImportItems Importer::mExtImportItems
private
Importer Importer::mInstance
staticprivate

Referenced by Get().

UnusableImportPluginList Importer::mUnusableImportPluginList
private

Referenced by Import(), Initialize(), and Terminate().


The documentation for this class was generated from the following files: