Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpServer.h @ 4226:7bd5eab3ba25
prototyping IWebDavBucket
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 04 Oct 2020 13:23:53 +0200 |
parents | 9ce5c89328f5 |
children | 7fff7e683d65 |
comparison
equal
deleted
inserted
replaced
4225:81f2d1484886 | 4226:7bd5eab3ba25 |
---|---|
36 #if (ORTHANC_ENABLE_MONGOOSE == 0 && \ | 36 #if (ORTHANC_ENABLE_MONGOOSE == 0 && \ |
37 ORTHANC_ENABLE_CIVETWEB == 0) | 37 ORTHANC_ENABLE_CIVETWEB == 0) |
38 # error Either ORTHANC_ENABLE_MONGOOSE or ORTHANC_ENABLE_CIVETWEB must be set to 1 | 38 # error Either ORTHANC_ENABLE_MONGOOSE or ORTHANC_ENABLE_CIVETWEB must be set to 1 |
39 #endif | 39 #endif |
40 | 40 |
41 #if !defined(ORTHANC_ENABLE_PUGIXML) | |
42 # error The macro ORTHANC_ENABLE_PUGIXML must be defined | |
43 #endif | |
44 | |
45 #if ORTHANC_ENABLE_PUGIXML == 1 | |
46 # include "IWebDavBucket.h" | |
47 #endif | |
48 | |
41 | 49 |
42 #include "IIncomingHttpRequestFilter.h" | 50 #include "IIncomingHttpRequestFilter.h" |
43 | 51 |
44 #include <list> | 52 #include <list> |
45 #include <map> | 53 #include <map> |
91 IHttpExceptionFormatter* exceptionFormatter_; | 99 IHttpExceptionFormatter* exceptionFormatter_; |
92 std::string realm_; | 100 std::string realm_; |
93 unsigned int threadsCount_; | 101 unsigned int threadsCount_; |
94 bool tcpNoDelay_; | 102 bool tcpNoDelay_; |
95 unsigned int requestTimeout_; // In seconds | 103 unsigned int requestTimeout_; // In seconds |
96 | 104 |
105 #if ORTHANC_ENABLE_PUGIXML == 1 | |
106 typedef std::map<std::string, IWebDavBucket*> WebDavBuckets; | |
107 WebDavBuckets webDavBuckets_; | |
108 #endif | |
109 | |
97 bool IsRunning() const; | 110 bool IsRunning() const; |
98 | 111 |
99 public: | 112 public: |
100 HttpServer(); | 113 HttpServer(); |
101 | 114 |
219 | 232 |
220 unsigned int GetRequestTimeout() const | 233 unsigned int GetRequestTimeout() const |
221 { | 234 { |
222 return requestTimeout_; | 235 return requestTimeout_; |
223 } | 236 } |
237 | |
238 #if ORTHANC_ENABLE_PUGIXML == 1 | |
239 void Register(const std::vector<std::string>& root, | |
240 IWebDavBucket* bucket); // Takes ownership | |
241 #endif | |
224 }; | 242 }; |
225 } | 243 } |