comparison Framework/Toolbox/ParsedDicomCache.cpp @ 1242:b9b5d4378874 broker

working of WebAssemblyOracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jan 2020 18:08:05 +0100
parents 48befc2bf66d
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1241:a4bb8c2dd211 1242:b9b5d4378874
24 namespace OrthancStone 24 namespace OrthancStone
25 { 25 {
26 class ParsedDicomCache::Item : public Orthanc::ICacheable 26 class ParsedDicomCache::Item : public Orthanc::ICacheable
27 { 27 {
28 private: 28 private:
29 boost::mutex mutex_;
30 std::auto_ptr<Orthanc::ParsedDicomFile> dicom_; 29 std::auto_ptr<Orthanc::ParsedDicomFile> dicom_;
31 size_t fileSize_; 30 size_t fileSize_;
32 bool hasPixelData_; 31 bool hasPixelData_;
33 32
34 public: 33 public:
41 { 40 {
42 if (dicom == NULL) 41 if (dicom == NULL)
43 { 42 {
44 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); 43 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
45 } 44 }
46 }
47
48 boost::mutex& GetMutex()
49 {
50 return mutex_;
51 } 45 }
52 46
53 virtual size_t GetMemoryUsage() const 47 virtual size_t GetMemoryUsage() const
54 { 48 {
55 return fileSize_; 49 return fileSize_;