2 Copyright (C) 2008 Paul Davis
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.
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.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __ardour_export_channel_configuration_h__
22 #define __ardour_export_channel_configuration_h__
26 #include <glibmm/ustring.h>
28 #include "ardour/export_channel.h"
29 #include "ardour/export_status.h"
30 #include "ardour/ardour.h"
32 #include "pbd/xml++.h"
40 class ExportFormatSpecification;
42 class ExportProcessor;
46 class ExportChannelConfiguration
50 friend class ExportElementFactory;
51 ExportChannelConfiguration (Session & session);
54 bool operator== (ExportChannelConfiguration const & other) const { return channels == other.channels; }
55 bool operator!= (ExportChannelConfiguration const & other) const { return channels != other.channels; }
57 XMLNode & get_state ();
58 int set_state (const XMLNode &);
60 typedef std::list<ExportChannelPtr> ChannelList;
62 ChannelList const & get_channels () const { return channels; }
63 bool all_channels_have_ports () const;
65 Glib::ustring name () const { return _name; }
66 void set_name (Glib::ustring name) { _name = name; }
67 void set_split (bool value) { split = value; }
69 bool get_split () const { return split; }
70 uint32_t get_n_chans () const { return channels.size(); }
72 void register_channel (ExportChannelPtr channel) { channels.push_back (channel); }
73 void clear_channels () { channels.clear (); }
80 bool split; // Split to mono files
86 #endif /* __ardour_export_channel_configuration_h__ */