comparison OrthancServer/ServerEnumerations.cpp @ 3931:e6606d3ec892 transcoding

new configuration option: BuiltinDecoderTranscoderOrder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 May 2020 09:22:31 +0200
parents 4182cde57afb
children 5d2348b39392
comparison
equal deleted inserted replaced
3930:b99acc213937 3931:e6606d3ec892
212 throw OrthancException(ErrorCode_ParameterOutOfRange, 212 throw OrthancException(ErrorCode_ParameterOutOfRange,
213 "Configuration option \"StorageAccessOnFind\" " 213 "Configuration option \"StorageAccessOnFind\" "
214 "should be \"Always\", \"Never\" or \"Answers\": " + value); 214 "should be \"Always\", \"Never\" or \"Answers\": " + value);
215 } 215 }
216 } 216 }
217
218
219 BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& value)
220 {
221 if (value == "Before")
222 {
223 return BuiltinDecoderTranscoderOrder_Before;
224 }
225 else if (value == "After")
226 {
227 return BuiltinDecoderTranscoderOrder_After;
228 }
229 else if (value == "Disabled")
230 {
231 return BuiltinDecoderTranscoderOrder_Disabled;
232 }
233 else
234 {
235 throw OrthancException(ErrorCode_ParameterOutOfRange,
236 "Configuration option \"BuiltinDecoderTranscoderOrder\" "
237 "should be \"After\", \"Before\" or \"Disabled\": " + value);
238 }
239 }
217 240
218 241
219 std::string GetBasePath(ResourceType type, 242 std::string GetBasePath(ResourceType type,
220 const std::string& publicId) 243 const std::string& publicId)
221 { 244 {