comparison OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h @ 4457:789676a8c96a

Refactoring and improvements to the cache of DICOM files in ServerContext
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 19 Jan 2021 19:05:04 +0100
parents 3e4f7b7840f0
children e4dae17035b9
comparison
equal deleted inserted replaced
4456:3e4f7b7840f0 4457:789676a8c96a
25 #include "../Cache/MemoryObjectCache.h" 25 #include "../Cache/MemoryObjectCache.h"
26 #include "ParsedDicomFile.h" 26 #include "ParsedDicomFile.h"
27 27
28 namespace Orthanc 28 namespace Orthanc
29 { 29 {
30 class ParsedDicomCache : public boost::noncopyable 30 class ORTHANC_PUBLIC ParsedDicomCache : public boost::noncopyable
31 { 31 {
32 private: 32 private:
33 class Item; 33 class Item;
34 34
35 boost::mutex mutex_; 35 boost::mutex mutex_;
39 std::string largeId_; 39 std::string largeId_;
40 size_t largeSize_; 40 size_t largeSize_;
41 41
42 public: 42 public:
43 explicit ParsedDicomCache(size_t size); 43 explicit ParsedDicomCache(size_t size);
44
45 size_t GetNumberOfItems(); // For unit tests only
44 46
45 size_t GetCurrentSize(); // For unit tests only 47 size_t GetCurrentSize(); // For unit tests only
46 48
47 void Invalidate(const std::string& id); 49 void Invalidate(const std::string& id);
48 50