comparison Framework/Oracle/ParseDicomFileCommand.h @ 1124:a8bf81756839 broker

unsuccessful attempt to cache ParseDicomFileCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 18:49:06 +0100
parents a08699daf78b
children 8e3763d1736a
comparison
equal deleted inserted replaced
1117:383aa2a7d426 1124:a8bf81756839
46 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); 46 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
47 47
48 private: 48 private:
49 boost::shared_ptr<Orthanc::ParsedDicomFile> dicom_; 49 boost::shared_ptr<Orthanc::ParsedDicomFile> dicom_;
50 size_t fileSize_; 50 size_t fileSize_;
51 bool hasPixelData_;
51 std::string sopInstanceUid_; 52 std::string sopInstanceUid_;
52 53
54 void Setup();
55
53 public: 56 public:
54 SuccessMessage(const ParseDicomFileCommand& command, 57 SuccessMessage(const ParseDicomFileCommand& command,
55 DcmFileFormat& content, 58 DcmFileFormat& dicom,
56 size_t fileSize); 59 size_t fileSize,
60 bool hasPixelData);
61
62 SuccessMessage(const ParseDicomFileCommand& command,
63 boost::shared_ptr<Orthanc::ParsedDicomFile> dicom,
64 size_t fileSize,
65 bool hasPixelData);
66
67 boost::shared_ptr<Orthanc::ParsedDicomFile> GetDicom() const
68 {
69 return dicom_;
70 }
57 71
58 size_t GetFileSize() const 72 size_t GetFileSize() const
59 { 73 {
60 return fileSize_; 74 return fileSize_;
75 }
76
77 bool HasPixelData() const
78 {
79 return hasPixelData_;
61 } 80 }
62 81
63 const std::string& GetSopInstanceUid() const 82 const std::string& GetSopInstanceUid() const
64 { 83 {
65 return sopInstanceUid_; 84 return sopInstanceUid_;
66 } 85 }
67
68 boost::shared_ptr<Orthanc::ParsedDicomFile> GetDicom() const;
69 }; 86 };
70 87
71 private: 88 private:
72 std::string path_; 89 std::string path_;
73 bool pixelDataIncluded_; 90 bool pixelDataIncluded_;