Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/FindRequest.h @ 5667:93dff1fccf36 find-refactoring
recursive descent to the children
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2024 21:31:48 +0200 |
parents | aa231c18b9d2 |
children | bd1352bd9d82 |
comparison
equal
deleted
inserted
replaced
5666:aa231c18b9d2 | 5667:93dff1fccf36 |
---|---|
185 | 185 |
186 bool IsRetrieveMetadata() const | 186 bool IsRetrieveMetadata() const |
187 { | 187 { |
188 return metadata_; | 188 return metadata_; |
189 } | 189 } |
190 | |
191 bool IsOfInterest() const | |
192 { | |
193 return (mainDicomTags_ || metadata_); | |
194 } | |
190 }; | 195 }; |
191 | 196 |
192 | 197 |
193 class ChildrenRetrieveSpecification : public boost::noncopyable | 198 class ChildrenRetrieveSpecification : public boost::noncopyable |
194 { | 199 { |
195 private: | 200 private: |
196 bool identifiers_; | 201 bool identifiers_; |
197 bool count_; | |
198 | 202 |
199 public: | 203 public: |
200 ChildrenRetrieveSpecification() : | 204 ChildrenRetrieveSpecification() : |
201 identifiers_(false), | 205 identifiers_(false) |
202 count_(false) | |
203 { | 206 { |
204 } | 207 } |
205 | 208 |
206 void SetRetrieveIdentifiers(bool retrieve) | 209 void SetRetrieveIdentifiers(bool retrieve) |
207 { | 210 { |
211 bool IsRetrieveIdentifiers() const | 214 bool IsRetrieveIdentifiers() const |
212 { | 215 { |
213 return identifiers_; | 216 return identifiers_; |
214 } | 217 } |
215 | 218 |
216 void SetRetrieveCount(bool retrieve) | 219 bool IsOfInterest() const |
217 { | 220 { |
218 count_ = retrieve; | 221 return identifiers_; |
219 } | |
220 | |
221 bool IsRetrieveCount() const | |
222 { | |
223 return count_; | |
224 } | 222 } |
225 }; | 223 }; |
226 | 224 |
227 | 225 |
228 private: | 226 private: |