blob: 5ca7a99829cbc63e7bfe47fdddda76fab42c7beb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
/*
Copyright (C) 2024 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
DCP-o-matic is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
DCP-o-matic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
*/
#include "variant.h"
#include <fmt/format.h>
static char const* _dcpomatic = "DCP-o-matic";
static char const* _dcpomatic_player = "DCP-o-matic Player";
static char const* _dcpomatic_kdm_creator = "DCP-o-matic KDM Creator";
static char const* _dcpomatic_verifier = "DCP-o-matic Verifier";
static char const* _dcpomatic_app = "DCP-o-matic 2.app";
static char const* _dcpomatic_player_app = "DCP-o-matic 2 Player.app";
static char const* _dcpomatic_disk_writer = "DCP-o-matic Disk Writer";
static char const* _dcpomatic_editor = "DCP-o-matic Editor";
static char const* _dcpomatic_encode_server = "DCP-o-matic Encode Server";
static char const* _dcpomatic_batch_converter_app = "DCP-o-matic 2 Batch Converter.app";
static char const* _dcpomatic_playlist_editor = "DCP-o-matic Playlist Editor";
static char const* _dcpomatic_combiner = "DCP-o-matic Combiner";
static char const* _dcpomatic_batch_converter = "DCP-o-matic Batch Converter";
static char const* _dcpomatic_processor = "DCP-o-matic Processor";
static char const* _report_problem_email = "carl@dcpomatic.com";
static bool const _show_tagline = true;
static bool const _show_dcpomatic_website = true;
static bool const _show_credits = true;
static bool const _show_report_a_problem = true;
static bool const _count_created_dcps = true;
std::string
variant::dcpomatic()
{
return _dcpomatic;
}
std::string
variant::dcpomatic_batch_converter()
{
return _dcpomatic_batch_converter;
}
std::string
variant::dcpomatic_combiner()
{
return _dcpomatic_combiner;
}
std::string
variant::dcpomatic_disk_writer()
{
return _dcpomatic_disk_writer;
}
std::string
variant::dcpomatic_editor()
{
return _dcpomatic_editor;
}
std::string
variant::dcpomatic_encode_server()
{
return _dcpomatic_encode_server;
}
std::string
variant::dcpomatic_kdm_creator()
{
return _dcpomatic_kdm_creator;
}
std::string
variant::dcpomatic_player()
{
return _dcpomatic_player;
}
std::string
variant::dcpomatic_playlist_editor()
{
return _dcpomatic_playlist_editor;
}
std::string
variant::dcpomatic_verifier()
{
return _dcpomatic_verifier;
}
std::string
variant::dcpomatic_processor()
{
return _dcpomatic_processor;
}
std::string
variant::insert_dcpomatic(std::string const& s)
{
return fmt::format(s, _dcpomatic);
}
std::string
variant::insert_dcpomatic_encode_server(std::string const& s)
{
return fmt::format(s, _dcpomatic_encode_server);
}
std::string
variant::insert_dcpomatic_kdm_creator(std::string const& s)
{
return fmt::format(s, _dcpomatic_kdm_creator);
}
std::string
variant::dcpomatic_app()
{
return _dcpomatic_app;
}
std::string
variant::dcpomatic_batch_converter_app()
{
return _dcpomatic_batch_converter_app;
}
std::string
variant::dcpomatic_player_app()
{
return _dcpomatic_player_app;
}
bool
variant::show_tagline()
{
return _show_tagline;
}
bool
variant::show_dcpomatic_website()
{
return _show_dcpomatic_website;
}
bool
variant::show_credits()
{
return _show_credits;
}
bool
variant::show_report_a_problem()
{
return _show_report_a_problem;
}
bool
variant::count_created_dcps()
{
return _count_created_dcps;
}
std::string
variant::report_problem_email()
{
return _report_problem_email;
}
|