21 #ifndef __ardour_element_import_handler_h__
22 #define __ardour_element_import_handler_h__
28 #include <boost/shared_ptr.hpp>
38 class ElementImporter;
55 : source (source), session (session) { }
62 virtual std::string get_info ()
const = 0;
73 bool check_name (
const std::string &
name)
const;
76 void add_name (std::string
name);
79 void remove_name (
const std::string &
name);
82 static bool dirty () {
return _dirty; }
88 static bool errors () {
return _errors; }
static bool errors()
Checks wheter or not all elements were imported cleanly.
static bool _errors
Errors post initialization.
static bool _dirty
Session XML readability.
ElementImportHandler(XMLTree const &source, ARDOUR::Session &session)
ARDOUR::Session & session
Destination session.
static bool dirty()
Checks wheter or not all elements can be imported cleanly.
XMLTree const & source
Source session XML tree.
Virtual interface class for element import handlers.
std::list< ElementPtr > ElementList
ElementList elements
Elements this handler handles.
boost::shared_ptr< ElementImporter > ElementPtr
std::set< std::string > names
Set of names for duplicate checking.
static void set_errors()
Sets handler dirty.
static void set_dirty()
Sets handler dirty.