Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.h @ 4498:7b99e8bb8246
IStorageArea::HasReadRange()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Feb 2021 11:37:13 +0100 |
parents | 68f52897c119 |
children | 98b7b9d21d83 |
comparison
equal
deleted
inserted
replaced
4497:10357b2f7150 | 4498:7b99e8bb8246 |
---|---|
69 class ServerContext : | 69 class ServerContext : |
70 public IStorageCommitmentFactory, | 70 public IStorageCommitmentFactory, |
71 public IDicomTranscoder, | 71 public IDicomTranscoder, |
72 private JobsRegistry::IObserver | 72 private JobsRegistry::IObserver |
73 { | 73 { |
74 friend class ServerIndex; // To access "RemoveFile()" | |
75 | |
74 public: | 76 public: |
75 class ILookupVisitor : public boost::noncopyable | 77 class ILookupVisitor : public boost::noncopyable |
76 { | 78 { |
77 public: | 79 public: |
78 virtual ~ILookupVisitor() | 80 virtual ~ILookupVisitor() |
242 size_t since, | 244 size_t since, |
243 size_t limit); | 245 size_t limit); |
244 | 246 |
245 void PublishDicomCacheMetrics(); | 247 void PublishDicomCacheMetrics(); |
246 | 248 |
249 // This method must only be called from "ServerIndex"! | |
250 void RemoveFile(const std::string& fileUuid, | |
251 FileContentType type); | |
252 | |
247 // This DicomModification object is intended to be used as a | 253 // This DicomModification object is intended to be used as a |
248 // "rules engine" when de-identifying logs for C-Find, C-Get, and | 254 // "rules engine" when de-identifying logs for C-Find, C-Get, and |
249 // C-Move queries (new in Orthanc 1.8.2) | 255 // C-Move queries (new in Orthanc 1.8.2) |
250 DicomModification logsDeidentifierRules_; | 256 DicomModification logsDeidentifierRules_; |
251 bool deidentifyLogs_; | 257 bool deidentifyLogs_; |
290 bool IsCompressionEnabled() const | 296 bool IsCompressionEnabled() const |
291 { | 297 { |
292 return compressionEnabled_; | 298 return compressionEnabled_; |
293 } | 299 } |
294 | 300 |
295 void RemoveFile(const std::string& fileUuid, | |
296 FileContentType type); | |
297 | |
298 bool AddAttachment(const std::string& resourceId, | 301 bool AddAttachment(const std::string& resourceId, |
299 FileContentType attachmentType, | 302 FileContentType attachmentType, |
300 const void* data, | 303 const void* data, |
301 size_t size); | 304 size_t size); |
302 | 305 |