ardour
Public Member Functions | Private Types | Private Attributes | List of all members
ARDOUR::AudioRegionImportHandler Class Reference

#include <audio_region_importer.h>

Inheritance diagram for ARDOUR::AudioRegionImportHandler:
ARDOUR::ElementImportHandler

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, boost::shared_ptr< Source > const &source)
 
boost::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,
boost::shared_ptr< Source > > 
SourceMap
 
typedef std::pair< std::string,
boost::shared_ptr< Source > > 
SourcePair
 
typedef std::map< PBD::ID,
PBD::ID
IdMap
 
typedef std::pair< PBD::ID,
PBD::ID
IdPair
 

Private Attributes

SourceMap sources
 
IdMap id_map
 

Additional Inherited Members

- Public Types inherited from ARDOUR::ElementImportHandler
typedef boost::shared_ptr
< ElementImporter
ElementPtr
 
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 = false
 Session XML readability. More...
 
static bool _errors = false
 Errors post initialization. More...
 

Detailed Description

Definition at line 42 of file audio_region_importer.h.

Member Typedef Documentation

Definition at line 67 of file audio_region_importer.h.

Definition at line 68 of file audio_region_importer.h.

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

Definition at line 62 of file audio_region_importer.h.

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

Definition at line 63 of file audio_region_importer.h.

Constructor & Destructor Documentation

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

Definition at line 43 of file audio_region_importer.cc.

Member Function Documentation

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

Definition at line 85 of file audio_region_importer.cc.

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

Definition at line 79 of file audio_region_importer.cc.

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

Definition at line 57 of file audio_region_importer.cc.

string AudioRegionImportHandler::get_info ( ) const
virtual

Gets a textual representation of the element type

Returns
textual representation of element type

Implements ARDOUR::ElementImportHandler.

Definition at line 73 of file audio_region_importer.cc.

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

Definition at line 103 of file audio_region_importer.cc.

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

Definition at line 91 of file audio_region_importer.cc.

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

Definition at line 97 of file audio_region_importer.cc.

Member Data Documentation

IdMap ARDOUR::AudioRegionImportHandler::id_map
private

Definition at line 69 of file audio_region_importer.h.

SourceMap ARDOUR::AudioRegionImportHandler::sources
private

Definition at line 64 of file audio_region_importer.h.


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