comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3410:3575466a3e57

introduction of macro HAS_ORTHANC_FRAMEWORK to be more explicit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 08 Jun 2019 17:42:30 +0200
parents b7728227a852
children f09bfdea3fc3
comparison
equal deleted inserted replaced
3409:877363a40647 3410:3575466a3e57
2875 2875
2876 OrthancPluginRegisterRestCallback(GetGlobalContext(), regularExpression.c_str(), 2876 OrthancPluginRegisterRestCallback(GetGlobalContext(), regularExpression.c_str(),
2877 Internals::Protect<CompatibilityMultipartRestCallback>); 2877 Internals::Protect<CompatibilityMultipartRestCallback>);
2878 } 2878 }
2879 2879
2880
2881 #else 2880 #else
2882 2881
2883 void MultipartRestCallback::Register(const std::string& regularExpression) 2882 void MultipartRestCallback::Register(const std::string& regularExpression)
2884 { 2883 {
2885 /** 2884 /**
2886 * Version >= 1.5.7 of the Orthanc framework must be 2885 * Version >= 1.5.7 of the Orthanc framework must be
2887 * available. Make sure that macros 2886 * available. Make sure that macros "HAS_ORTHANC_FRAMEWORK=1",
2888 * "ORTHANC_FRAMEWORK_VERSION_MAJOR", 2887 * "ORTHANC_FRAMEWORK_VERSION_MAJOR",
2889 * "ORTHANC_FRAMEWORK_VERSION_MINOR" and 2888 * "ORTHANC_FRAMEWORK_VERSION_MINOR" and
2890 * "ORTHANC_FRAMEWORK_VERSION_REVISION" are properly set. 2889 * "ORTHANC_FRAMEWORK_VERSION_REVISION" are properly set.
2891 **/ 2890 **/
2892 LogError("The compatibility mode for multipart transfers is not available."); 2891 LogError("The compatibility wrappers for multipart transfers is not available, stopping now.");
2893 ORTHANC_PLUGINS_THROW_EXCEPTION(NotImplemented); 2892 ORTHANC_PLUGINS_THROW_EXCEPTION(NotImplemented);
2894 } 2893 }
2895 2894
2896 #endif 2895 #endif
2897 2896