Mercurial > hg > orthanc
comparison Core/DicomParsing/ParsedDicomFile.cpp @ 2924:22524fd06225
macros ORTHANC_OVERRIDE and ORTHANC_FINAL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Nov 2018 09:06:46 +0100 |
parents | 83133583183d |
children | d924f9bb61cc |
comparison
equal
deleted
inserted
replaced
2923:87366b8aed4f | 2924:22524fd06225 |
---|---|
244 chunk_.resize(CHUNK_SIZE); | 244 chunk_.resize(CHUNK_SIZE); |
245 } | 245 } |
246 | 246 |
247 virtual HttpCompression SetupHttpCompression(bool /*gzipAllowed*/, | 247 virtual HttpCompression SetupHttpCompression(bool /*gzipAllowed*/, |
248 bool /*deflateAllowed*/) | 248 bool /*deflateAllowed*/) |
249 ORTHANC_OVERRIDE | |
249 { | 250 { |
250 // No support for compression | 251 // No support for compression |
251 return HttpCompression_None; | 252 return HttpCompression_None; |
252 } | 253 } |
253 | 254 |
254 virtual bool HasContentFilename(std::string& filename) | 255 virtual bool HasContentFilename(std::string& filename) ORTHANC_OVERRIDE |
255 { | 256 { |
256 return false; | 257 return false; |
257 } | 258 } |
258 | 259 |
259 virtual std::string GetContentType() | 260 virtual std::string GetContentType() ORTHANC_OVERRIDE |
260 { | 261 { |
261 return EnumerationToString(MimeType_Binary); | 262 return EnumerationToString(MimeType_Binary); |
262 } | 263 } |
263 | 264 |
264 virtual uint64_t GetContentLength() | 265 virtual uint64_t GetContentLength() ORTHANC_OVERRIDE |
265 { | 266 { |
266 return length_; | 267 return length_; |
267 } | 268 } |
268 | 269 |
269 virtual bool ReadNextChunk() | 270 virtual bool ReadNextChunk() ORTHANC_OVERRIDE |
270 { | 271 { |
271 assert(offset_ <= length_); | 272 assert(offset_ <= length_); |
272 | 273 |
273 if (offset_ == length_) | 274 if (offset_ == length_) |
274 { | 275 { |
297 | 298 |
298 return true; | 299 return true; |
299 } | 300 } |
300 } | 301 } |
301 | 302 |
302 virtual const char *GetChunkContent() | 303 virtual const char *GetChunkContent() ORTHANC_OVERRIDE |
303 { | 304 { |
304 return chunk_.c_str(); | 305 return chunk_.c_str(); |
305 } | 306 } |
306 | 307 |
307 virtual size_t GetChunkSize() | 308 virtual size_t GetChunkSize() ORTHANC_OVERRIDE |
308 { | 309 { |
309 return chunkSize_; | 310 return chunkSize_; |
310 } | 311 } |
311 }; | 312 }; |
312 } | 313 } |