Ardour  8.12
audio_track_importer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008 Sakari Bergen <sakari.bergen@beatwaves.net>
3  * Copyright (C) 2009-2014 David Robillard <d@drobilla.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef __ardour_audio_track_importer_h__
21 #define __ardour_audio_track_importer_h__
22 
23 #include <list>
24 
25 #include "pbd/xml++.h"
26 #include "pbd/id.h"
27 
30 
31 namespace ARDOUR {
32 
33 class AudioPlaylistImportHandler;
34 class AudioPlaylistImporter;
35 
37 {
38  public:
41  virtual std::string get_info () const;
42 };
43 
44 
46 {
47  public:
48  AudioTrackImporter (XMLTree const & source,
49  Session & session,
50  AudioTrackImportHandler & track_handler,
51  XMLNode const & node,
52  AudioPlaylistImportHandler & pl_handler);
54 
55  std::string get_info () const;
56 
57  protected:
58  bool _prepare_move ();
59  void _cancel_move ();
60  void _move ();
61 
62  private:
63 
64  typedef std::shared_ptr<AudioPlaylistImporter> PlaylistPtr;
65  typedef std::list<PlaylistPtr> PlaylistList;
66 
67  bool parse_route_xml ();
68  bool parse_io ();
69 
70  bool parse_processor (XMLNode & node);
71  bool parse_controllable (XMLNode & node);
72  bool parse_automation (XMLNode & node);
74 
77 
80 
83 };
84 
85 } // namespace ARDOUR
86 
87 #endif
AudioTrackImportHandler(XMLTree const &source, Session &session, AudioPlaylistImportHandler &pl_handler)
virtual std::string get_info() const
bool parse_automation(XMLNode &node)
bool rate_convert_events(XMLNode &node)
AudioTrackImporter(XMLTree const &source, Session &session, AudioTrackImportHandler &track_handler, XMLNode const &node, AudioPlaylistImportHandler &pl_handler)
std::shared_ptr< AudioPlaylistImporter > PlaylistPtr
bool parse_controllable(XMLNode &node)
std::string get_info() const
void _cancel_move()
Cancel move.
bool parse_processor(XMLNode &node)
std::list< PlaylistPtr > PlaylistList
AudioPlaylistImportHandler & pl_handler
AudioTrackImportHandler & track_handler
Virtual interface class for element import handlers.
Virtual interface class for element importers.
Definition: id.h:35
Definition: xml++.h:114
Definition: xml++.h:74
#define LIBARDOUR_API
void session(lua_State *L)