ardour
export_format_compatibility.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 Paul Davis
3  Author: Sakari Bergen
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
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 
19 */
20 
21 #ifndef __ardour_export_format_compatibility_h__
22 #define __ardour_export_format_compatibility_h__
23 
24 #include <string>
26 
27 namespace ARDOUR
28 {
29 
32  private:
33 
34  public:
36  {
37  set_name (name);
38  sample_formats.insert (SF_None);
39  sample_rates.insert (SR_None);
40  format_ids.insert (F_None);
41  qualities.insert (Q_None);
42  }
43 
45 
47  : ExportFormatBase (other) {}
48 
49  void add_endianness (Endianness endianness) { endiannesses.insert (endianness); }
50  void add_sample_format (SampleFormat format) { sample_formats.insert (format); }
51  void add_sample_rate (SampleRate rate) { sample_rates.insert (rate); }
52  void add_format_id (FormatId id) { format_ids.insert (id); }
53  void add_quality (Quality quality) { qualities.insert (quality); }
54 };
55 
56 } // namespace ARDOUR
57 
58 #endif /* __ardour_export_format_compatibility_h__ */
ExportFormatCompatibility(ExportFormatBase const &other)
Definition: amp.h:29
Class for managing selection and compatibility states.
#define LIBARDOUR_API
const char * name
Allows adding to all sets. A format should be able to test if it is compatible with this...
void add_endianness(Endianness endianness)