Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/FindRequest.h @ 5668:bd1352bd9d82 find-refactoring
configuring requests for ModalitiesInStudy and SOPClassesInStudy
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2024 21:57:39 +0200 |
parents | 93dff1fccf36 |
children | 74f3aab95886 |
comparison
equal
deleted
inserted
replaced
5667:93dff1fccf36 | 5668:bd1352bd9d82 |
---|---|
196 | 196 |
197 | 197 |
198 class ChildrenRetrieveSpecification : public boost::noncopyable | 198 class ChildrenRetrieveSpecification : public boost::noncopyable |
199 { | 199 { |
200 private: | 200 private: |
201 bool identifiers_; | 201 bool identifiers_; |
202 std::set<MetadataType> metadata_; | |
203 std::set<DicomTag> mainDicomTags_; | |
202 | 204 |
203 public: | 205 public: |
204 ChildrenRetrieveSpecification() : | 206 ChildrenRetrieveSpecification() : |
205 identifiers_(false) | 207 identifiers_(false) |
206 { | 208 { |
214 bool IsRetrieveIdentifiers() const | 216 bool IsRetrieveIdentifiers() const |
215 { | 217 { |
216 return identifiers_; | 218 return identifiers_; |
217 } | 219 } |
218 | 220 |
221 void AddMetadata(MetadataType metadata) | |
222 { | |
223 metadata_.insert(metadata); | |
224 } | |
225 | |
226 const std::set<MetadataType>& GetMetadata() const | |
227 { | |
228 return metadata_; | |
229 } | |
230 | |
231 void AddMainDicomTag(const DicomTag& tag) | |
232 { | |
233 mainDicomTags_.insert(tag); | |
234 } | |
235 | |
236 const std::set<DicomTag>& GetMainDicomTags() const | |
237 { | |
238 return mainDicomTags_; | |
239 } | |
240 | |
219 bool IsOfInterest() const | 241 bool IsOfInterest() const |
220 { | 242 { |
221 return identifiers_; | 243 return (identifiers_ || !metadata_.empty() || !mainDicomTags_.empty()); |
222 } | 244 } |
223 }; | 245 }; |
224 | 246 |
225 | 247 |
226 private: | 248 private: |