Ardour
9.0-pre0-582-g084a23a80d
export_format_compatibility.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008-2013 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2009-2011 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 <string>
23
#include "
ardour/export_format_base.h
"
24
25
namespace
ARDOUR
26
{
27
29
class
LIBARDOUR_API
ExportFormatCompatibility
:
public
ExportFormatBase
,
public
ExportFormatBase::SelectableCompatible
{
30
private
:
31
32
public
:
33
ExportFormatCompatibility
(std::string
name
)
34
{
35
set_name (
name
);
36
sample_formats.insert (SF_None);
37
sample_rates.insert (SR_None);
38
format_ids.insert (F_None);
39
qualities.insert (Q_None);
40
}
41
42
~ExportFormatCompatibility
() {};
43
44
ExportFormatCompatibility
(
ExportFormatBase
const
& other)
45
:
ExportFormatBase
(other) {}
46
47
void
add_endianness
(
Endianness
endianness) { endiannesses.insert (endianness); }
48
void
add_sample_format
(
SampleFormat
format) { sample_formats.insert (format); }
49
void
add_sample_rate
(
SampleRate
rate) { sample_rates.insert (rate); }
50
void
add_format_id
(
FormatId
id
) { format_ids.insert (
id
); }
51
void
add_quality
(
Quality
quality) { qualities.insert (quality); }
52
};
53
54
}
// namespace ARDOUR
55
ARDOUR::ExportFormatBase::SelectableCompatible
Class for managing selection and compatibility states.
Definition:
export_format_base.h:123
ARDOUR::ExportFormatBase
Definition:
export_format_base.h:40
ARDOUR::ExportFormatBase::Quality
Quality
Definition:
export_format_base.h:92
ARDOUR::ExportFormatBase::FormatId
FormatId
Definition:
export_format_base.h:49
ARDOUR::ExportFormatBase::SampleRate
SampleRate
Definition:
export_format_base.h:100
ARDOUR::ExportFormatBase::SampleFormat
SampleFormat
Definition:
export_format_base.h:71
ARDOUR::ExportFormatBase::Endianness
Endianness
Definition:
export_format_base.h:64
ARDOUR::ExportFormatCompatibility
Allows adding to all sets. A format should be able to test if it is compatible with this.
Definition:
export_format_compatibility.h:29
ARDOUR::ExportFormatCompatibility::add_sample_rate
void add_sample_rate(SampleRate rate)
Definition:
export_format_compatibility.h:49
ARDOUR::ExportFormatCompatibility::ExportFormatCompatibility
ExportFormatCompatibility(std::string name)
Definition:
export_format_compatibility.h:33
ARDOUR::ExportFormatCompatibility::add_format_id
void add_format_id(FormatId id)
Definition:
export_format_compatibility.h:50
ARDOUR::ExportFormatCompatibility::~ExportFormatCompatibility
~ExportFormatCompatibility()
Definition:
export_format_compatibility.h:42
ARDOUR::ExportFormatCompatibility::add_sample_format
void add_sample_format(SampleFormat format)
Definition:
export_format_compatibility.h:48
ARDOUR::ExportFormatCompatibility::add_endianness
void add_endianness(Endianness endianness)
Definition:
export_format_compatibility.h:47
ARDOUR::ExportFormatCompatibility::ExportFormatCompatibility
ExportFormatCompatibility(ExportFormatBase const &other)
Definition:
export_format_compatibility.h:44
ARDOUR::ExportFormatCompatibility::add_quality
void add_quality(Quality quality)
Definition:
export_format_compatibility.h:51
export_format_base.h
name
GtkImageIconNameData name
Definition:
gtkimage.h:6
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:38
ARDOUR
Definition:
analysis_window.h:44
libs
ardour
ardour
export_format_compatibility.h
Generated on Wed Dec 25 2024 05:44:14 for Ardour by
1.9.1