Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/ParsedDicomCache.cpp @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
25 { | 25 { |
26 class ParsedDicomCache::Item : public Orthanc::ICacheable | 26 class ParsedDicomCache::Item : public Orthanc::ICacheable |
27 { | 27 { |
28 private: | 28 private: |
29 std::unique_ptr<Orthanc::ParsedDicomFile> dicom_; | 29 std::unique_ptr<Orthanc::ParsedDicomFile> dicom_; |
30 size_t fileSize_; | 30 size_t fileSize_; |
31 bool hasPixelData_; | 31 bool hasPixelData_; |
32 | 32 |
33 public: | 33 public: |
34 Item(Orthanc::ParsedDicomFile* dicom, | 34 Item(Orthanc::ParsedDicomFile* dicom, |
35 size_t fileSize, | 35 size_t fileSize, |
36 bool hasPixelData) : | 36 bool hasPixelData) : |
42 { | 42 { |
43 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); | 43 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 virtual size_t GetMemoryUsage() const | 47 virtual size_t GetMemoryUsage() const ORTHANC_OVERRIDE |
48 { | 48 { |
49 return fileSize_; | 49 return fileSize_; |
50 } | 50 } |
51 | 51 |
52 Orthanc::ParsedDicomFile& GetDicom() const | 52 Orthanc::ParsedDicomFile& GetDicom() const |