|
Ardour
9.0-pre0-1950-g391fe97693
|
Virtual interface class for element import handlers. More...
#include <element_import_handler.h>
Public Types | |
| typedef std::shared_ptr< ElementImporter > | ElementPtr |
| typedef std::list< ElementPtr > | ElementList |
Public Member Functions | |
| ElementImportHandler (XMLTree const &source, ARDOUR::Session &session) | |
| virtual | ~ElementImportHandler () |
| virtual std::string | get_info () const =0 |
| 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... | |
Static Public Member Functions | |
| 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 | |
| ElementList | elements |
| Elements this handler handles. More... | |
Protected Attributes | |
| XMLTree const & | source |
| Source session XML tree. More... | |
| ARDOUR::Session & | session |
| Destination session. More... | |
Static Protected Attributes | |
| static bool | _dirty |
| Session XML readability. More... | |
| static bool | _errors |
| Errors post initialization. More... | |
Private Attributes | |
| std::set< std::string > | names |
| Set of names for duplicate checking. More... | |
Virtual interface class for element import handlers.
Definition at line 38 of file element_import_handler.h.
| typedef std::list<ElementPtr> ARDOUR::ElementImportHandler::ElementList |
Definition at line 42 of file element_import_handler.h.
| typedef std::shared_ptr<ElementImporter> ARDOUR::ElementImportHandler::ElementPtr |
Definition at line 41 of file element_import_handler.h.
|
inline |
ElementImportHandler constructor The constructor should find everything from the XML Tree it can handle and create respective Elements stored in elements.
| source | XML tree to be parsed |
| session | The Session |
Definition at line 52 of file element_import_handler.h.
|
virtual |
| void ARDOUR::ElementImportHandler::add_name | ( | std::string | name | ) |
Adds name to the list of used names.
| bool ARDOUR::ElementImportHandler::check_name | ( | const std::string & | name | ) | const |
Checks whether or not an element with some name is queued or not
| name | name to check |
|
inlinestatic |
Checks wheter or not all elements can be imported cleanly.
Definition at line 80 of file element_import_handler.h.
|
inlinestatic |
Checks wheter or not all elements were imported cleanly.
Definition at line 86 of file element_import_handler.h.
|
pure virtual |
Gets a textual representation of the element type
Implemented in ARDOUR::TempoMapImportHandler, ARDOUR::LocationImportHandler, ARDOUR::AudioTrackImportHandler, ARDOUR::AudioRegionImportHandler, ARDOUR::UnusedAudioPlaylistImportHandler, and ARDOUR::AudioPlaylistImportHandler.
| void ARDOUR::ElementImportHandler::remove_name | ( | const std::string & | name | ) |
Removes name from the list of used names.
|
inlinestatic |
Sets handler dirty.
Definition at line 83 of file element_import_handler.h.
|
inlinestatic |
Sets handler dirty.
Definition at line 89 of file element_import_handler.h.
|
staticprotected |
Session XML readability.
Definition at line 99 of file element_import_handler.h.
|
staticprotected |
Errors post initialization.
Definition at line 102 of file element_import_handler.h.
| ElementList ARDOUR::ElementImportHandler::elements |
Elements this handler handles.
Definition at line 63 of file element_import_handler.h.
|
private |
Set of names for duplicate checking.
Definition at line 106 of file element_import_handler.h.
|
protected |
Destination session.
Definition at line 96 of file element_import_handler.h.
|
protected |
Source session XML tree.
Definition at line 93 of file element_import_handler.h.