comparison Plugin/Plugin.cpp @ 8:4362026afddf

orthanc 1.2.1 renamed as 1.3.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Jul 2017 09:17:42 +0200
parents d5d3cb00556a
children c44013681a51
comparison
equal deleted inserted replaced
5:72510657f7b9 8:4362026afddf
303 tokens_.push_back(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, *it)); 303 tokens_.push_back(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, *it));
304 } 304 }
305 305
306 configuration.LookupListOfStrings(tmp, "TokenGetArguments", true); 306 configuration.LookupListOfStrings(tmp, "TokenGetArguments", true);
307 307
308 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 2, 1) 308 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 0)
309 for (std::list<std::string>::const_iterator 309 for (std::list<std::string>::const_iterator
310 it = tmp.begin(); it != tmp.end(); ++it) 310 it = tmp.begin(); it != tmp.end(); ++it)
311 { 311 {
312 tokens_.push_back(OrthancPlugins::Token(OrthancPlugins::TokenType_GetArgument, *it)); 312 tokens_.push_back(OrthancPlugins::Token(OrthancPlugins::TokenType_GetArgument, *it));
313 } 313 }
314 #else 314 #else
315 if (!tmp.empty()) 315 if (!tmp.empty())
316 { 316 {
317 LOG(ERROR) << "The option \"TokenGetArguments\" of the authorization plugin " 317 LOG(ERROR) << "The option \"TokenGetArguments\" of the authorization plugin "
318 << "is only valid if compiled against Orthanc >= 1.2.1"; 318 << "is only valid if compiled against Orthanc >= 1.3.0";
319 throw Orthanc::OrthancException(Orthanc::ErrorCode_Plugin); 319 throw Orthanc::OrthancException(Orthanc::ErrorCode_Plugin);
320 } 320 }
321 #endif 321 #endif
322 322
323 configuration.LookupSetOfStrings(uncheckedResources_, "UncheckedResources", false); 323 configuration.LookupSetOfStrings(uncheckedResources_, "UncheckedResources", false);