comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2231:61e0564d03bb

backwards compatibility within OrthancPluginCppWrapper
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Dec 2016 16:41:58 +0100
parents 028214a95194
children a78d15509a1c
comparison
equal deleted inserted replaced
2230:40293e60f224 2231:61e0564d03bb
833 OrthancPluginCompressAndAnswerJpegImage(context_, output, GetPixelFormat(), 833 OrthancPluginCompressAndAnswerJpegImage(context_, output, GetPixelFormat(),
834 GetWidth(), GetHeight(), GetPitch(), GetBuffer(), quality); 834 GetWidth(), GetHeight(), GetPitch(), GetBuffer(), quality);
835 } 835 }
836 836
837 837
838
839 #if HAS_ORTHANC_PLUGIN_FIND_MATCHER == 1
838 FindMatcher::FindMatcher(OrthancPluginContext* context, 840 FindMatcher::FindMatcher(OrthancPluginContext* context,
839 const OrthancPluginWorklistQuery* worklist) : 841 const OrthancPluginWorklistQuery* worklist) :
840 context_(context), 842 context_(context),
841 matcher_(NULL), 843 matcher_(NULL),
842 worklist_(worklist) 844 worklist_(worklist)
905 { 907 {
906 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_InternalError); 908 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_InternalError);
907 } 909 }
908 } 910 }
909 911
912 #endif /* HAS_ORTHANC_PLUGIN_FIND_MATCHER == 1 */
910 913
911 914
912 bool RestApiGet(Json::Value& result, 915 bool RestApiGet(Json::Value& result,
913 OrthancPluginContext* context, 916 OrthancPluginContext* context,
914 const std::string& uri, 917 const std::string& uri,