Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::AudioRegionImportHandler Class Reference

#include <audio_region_importer.h>

Inheritance diagram for ARDOUR::AudioRegionImportHandler:
[legend]

Public Member Functions

 AudioRegionImportHandler (XMLTree const &source, Session &session)
 
std::string get_info () const
 
void create_regions_from_children (XMLNode const &node, ElementList &list)
 
bool check_source (std::string const &filename) const
 
void add_source (std::string const &filename, std::shared_ptr< Source > const &source)
 
std::shared_ptr< Source > const & get_source (std::string const &filename) const
 
void register_id (PBD::ID &old_id, PBD::ID &new_id)
 
PBD::ID const & get_new_id (PBD::ID &old_id) const
 
- Public Member Functions inherited from ARDOUR::ElementImportHandler
 ElementImportHandler (XMLTree const &source, ARDOUR::Session &session)
 
virtual ~ElementImportHandler ()
 
bool check_name (const std::string &name) const
 
void add_name (std::string name)
 Adds name to the list of used names. More...
 
void remove_name (const std::string &name)
 Removes name from the list of used names. More...
 

Private Types

typedef std::map< std::string, std::shared_ptr< Source > > SourceMap
 
typedef std::pair< std::string, std::shared_ptr< Source > > SourcePair
 
typedef std::map< PBD::ID, PBD::IDIdMap
 
typedef std::pair< PBD::ID, PBD::IDIdPair
 

Private Attributes

SourceMap sources
 
IdMap id_map
 

Additional Inherited Members

- Public Types inherited from ARDOUR::ElementImportHandler
typedef std::shared_ptr< ElementImporterElementPtr
 
typedef std::list< ElementPtrElementList
 
- Static Public Member Functions inherited from ARDOUR::ElementImportHandler
static bool dirty ()
 Checks wheter or not all elements can be imported cleanly. More...
 
static void set_dirty ()
 Sets handler dirty. More...
 
static bool errors ()
 Checks wheter or not all elements were imported cleanly. More...
 
static void set_errors ()
 Sets handler dirty. More...
 
- Public Attributes inherited from ARDOUR::ElementImportHandler
ElementList elements
 Elements this handler handles. More...
 
- Protected Attributes inherited from ARDOUR::ElementImportHandler
XMLTree const & source
 Source session XML tree. More...
 
ARDOUR::Sessionsession
 Destination session. More...
 
- Static Protected Attributes inherited from ARDOUR::ElementImportHandler
static bool _dirty
 Session XML readability. More...
 
static bool _errors
 Errors post initialization. More...
 

Detailed Description

Definition at line 40 of file audio_region_importer.h.

Member Typedef Documentation

◆ IdMap

Definition at line 65 of file audio_region_importer.h.

◆ IdPair

Definition at line 66 of file audio_region_importer.h.

◆ SourceMap

typedef std::map<std::string, std::shared_ptr<Source> > ARDOUR::AudioRegionImportHandler::SourceMap
private

Definition at line 60 of file audio_region_importer.h.

◆ SourcePair

typedef std::pair<std::string, std::shared_ptr<Source> > ARDOUR::AudioRegionImportHandler::SourcePair
private

Definition at line 61 of file audio_region_importer.h.

Constructor & Destructor Documentation

◆ AudioRegionImportHandler()

ARDOUR::AudioRegionImportHandler::AudioRegionImportHandler ( XMLTree const &  source,
Session session 
)

Member Function Documentation

◆ add_source()

void ARDOUR::AudioRegionImportHandler::add_source ( std::string const &  filename,
std::shared_ptr< Source > const &  source 
)

◆ check_source()

bool ARDOUR::AudioRegionImportHandler::check_source ( std::string const &  filename) const

◆ create_regions_from_children()

void ARDOUR::AudioRegionImportHandler::create_regions_from_children ( XMLNode const &  node,
ElementList list 
)

◆ get_info()

std::string ARDOUR::AudioRegionImportHandler::get_info ( ) const
virtual

Gets a textual representation of the element type

Returns
textual representation of element type

Implements ARDOUR::ElementImportHandler.

◆ get_new_id()

PBD::ID const& ARDOUR::AudioRegionImportHandler::get_new_id ( PBD::ID old_id) const

◆ get_source()

std::shared_ptr<Source> const& ARDOUR::AudioRegionImportHandler::get_source ( std::string const &  filename) const

◆ register_id()

void ARDOUR::AudioRegionImportHandler::register_id ( PBD::ID old_id,
PBD::ID new_id 
)

Member Data Documentation

◆ id_map

IdMap ARDOUR::AudioRegionImportHandler::id_map
private

Definition at line 67 of file audio_region_importer.h.

◆ sources

SourceMap ARDOUR::AudioRegionImportHandler::sources
private

Definition at line 62 of file audio_region_importer.h.


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