Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
21 
22 #include <list>
23 
24 #include "pbd/xml++.h"
25 #include "pbd/id.h"
26 
29 
30 namespace ARDOUR {
31 
32 class AudioPlaylistImportHandler;
33 class AudioPlaylistImporter;
34 
36 {
37  public:
40  virtual std::string get_info () const;
41 };
42 
43 
45 {
46  public:
47  AudioTrackImporter (XMLTree const & source,
48  Session & session,
49  AudioTrackImportHandler & track_handler,
50  XMLNode const & node,
51  AudioPlaylistImportHandler & pl_handler);
53 
54  std::string get_info () const;
55 
56  protected:
57  bool _prepare_move ();
58  void _cancel_move ();
59  void _move ();
60 
61  private:
62 
63  typedef std::shared_ptr<AudioPlaylistImporter> PlaylistPtr;
64  typedef std::list<PlaylistPtr> PlaylistList;
65 
66  bool parse_route_xml ();
67  bool parse_io ();
68 
69  bool parse_processor (XMLNode & node);
70  bool parse_controllable (XMLNode & node);
71  bool parse_automation (XMLNode & node);
73 
76 
79 
82 };
83 
84 } // namespace ARDOUR
85 
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:34
Definition: xml++.h:114
Definition: xml++.h:74
#define LIBARDOUR_API
void session(lua_State *L)