comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3388:18cd4951fccc

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Jun 2019 09:04:26 +0200
parents a48d652f1500
children ad434967a68c
comparison
equal deleted inserted replaced
3387:a48d652f1500 3388:18cd4951fccc
83 # define HAS_ORTHANC_PLUGIN_METRICS 1 83 # define HAS_ORTHANC_PLUGIN_METRICS 1
84 #else 84 #else
85 # define HAS_ORTHANC_PLUGIN_METRICS 0 85 # define HAS_ORTHANC_PLUGIN_METRICS 0
86 #endif 86 #endif
87 87
88 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 1, 0)
89 # define HAS_ORTHANC_PLUGIN_HTTP_CLIENT 1
90 #else
91 # define HAS_ORTHANC_PLUGIN_HTTP_CLIENT 0
92 #endif
93
88 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 7) 94 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 7)
89 # define HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY 1 95 # define HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY 1
90 #else 96 #else
91 # define HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY 0 97 # define HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY 0
92 #endif 98 #endif
777 ~MetricsTimer(); 783 ~MetricsTimer();
778 }; 784 };
779 #endif 785 #endif
780 786
781 787
788 #if HAS_ORTHANC_PLUGIN_HTTP_CLIENT == 1
782 class HttpClient : public boost::noncopyable 789 class HttpClient : public boost::noncopyable
783 { 790 {
784 public: 791 public:
785 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 792 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1
786 class IChunkedBody : public boost::noncopyable 793 class IChunkedBody : public boost::noncopyable
891 void SetBody(IChunkedBody& body); 898 void SetBody(IChunkedBody& body);
892 #endif 899 #endif
893 900
894 void Execute(); 901 void Execute();
895 }; 902 };
903 #endif
896 } 904 }