Mercurial > hg > orthanc-stone
comparison Framework/Oracle/ParseDicomFileCommand.h @ 1111:3730956f41a5 broker
ParseDicomFileCommand::GetDicomDirPath()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 Oct 2019 18:38:26 +0100 |
parents | b82b74d13830 |
children | a08699daf78b |
comparison
equal
deleted
inserted
replaced
1110:b82b74d13830 | 1111:3730956f41a5 |
---|---|
50 | 50 |
51 public: | 51 public: |
52 SuccessMessage(const ParseDicomFileCommand& command, | 52 SuccessMessage(const ParseDicomFileCommand& command, |
53 DcmFileFormat& content); | 53 DcmFileFormat& content); |
54 | 54 |
55 const Orthanc::ParsedDicomFile& GetDicom() const | 55 bool HasDicom() const |
56 { | 56 { |
57 return *dicom_; | 57 return dicom_.get() != NULL; |
58 } | 58 } |
59 | |
60 Orthanc::ParsedDicomFile& GetDicom() const; | |
61 | |
62 Orthanc::ParsedDicomFile* ReleaseDicom(); | |
59 }; | 63 }; |
60 | 64 |
61 private: | 65 private: |
62 std::string path_; | 66 std::string path_; |
63 bool pixelDataIncluded_; | 67 bool pixelDataIncluded_; |
66 ParseDicomFileCommand(const std::string& path) : | 70 ParseDicomFileCommand(const std::string& path) : |
67 path_(path), | 71 path_(path), |
68 pixelDataIncluded_(true) | 72 pixelDataIncluded_(true) |
69 { | 73 { |
70 } | 74 } |
75 | |
76 ParseDicomFileCommand(const std::string& dicomDirPath, | |
77 const std::string& file) : | |
78 path_(GetDicomDirPath(dicomDirPath, file)), | |
79 pixelDataIncluded_(true) | |
80 { | |
81 } | |
82 | |
83 static std::string GetDicomDirPath(const std::string& dicomDirPath, | |
84 const std::string& file); | |
71 | 85 |
72 virtual Type GetType() const | 86 virtual Type GetType() const |
73 { | 87 { |
74 return Type_ParseDicomFile; | 88 return Type_ParseDicomFile; |
75 } | 89 } |