Mercurial > hg > orthanc
comparison Core/HttpServer/HttpServer.h @ 3992:f9863630ec7f
working on the shared library for Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 16:07:01 +0200 |
parents | 94f4a18a79cc |
children |
comparison
equal
deleted
inserted
replaced
3991:5d2348b39392 | 3992:f9863630ec7f |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 // To have ORTHANC_ENABLE_xxx defined if using the shared library | |
37 #include "../OrthancFramework.h" | |
38 | |
36 #if !defined(ORTHANC_ENABLE_MONGOOSE) | 39 #if !defined(ORTHANC_ENABLE_MONGOOSE) |
37 # error Macro ORTHANC_ENABLE_MONGOOSE must be defined to include this file | 40 # error Macro ORTHANC_ENABLE_MONGOOSE must be defined to include this file |
38 #endif | 41 #endif |
39 | 42 |
40 #if !defined(ORTHANC_ENABLE_CIVETWEB) | 43 #if !defined(ORTHANC_ENABLE_CIVETWEB) |
72 HttpMethod method, | 75 HttpMethod method, |
73 const char* uri) = 0; | 76 const char* uri) = 0; |
74 }; | 77 }; |
75 | 78 |
76 | 79 |
77 class HttpServer | 80 class ORTHANC_PUBLIC HttpServer : public boost::noncopyable |
78 { | 81 { |
79 private: | 82 private: |
80 // http://stackoverflow.com/questions/311166/stdauto-ptr-or-boostshared-ptr-for-pimpl-idiom | 83 // http://stackoverflow.com/questions/311166/stdauto-ptr-or-boostshared-ptr-for-pimpl-idiom |
81 struct PImpl; | 84 struct PImpl; |
82 boost::shared_ptr<PImpl> pimpl_; | 85 boost::shared_ptr<PImpl> pimpl_; |