Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/FindRequest.h @ 5592:1e2631b8b9af find-refactoring
GenericFind::Execute() is working for a basic request
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 03 May 2024 21:26:06 +0200 |
parents | 043c8016ed6a |
children | a87f2a56257d |
comparison
equal
deleted
inserted
replaced
5591:043c8016ed6a | 5592:1e2631b8b9af |
---|---|
163 uint64_t limitsCount_; | 163 uint64_t limitsCount_; |
164 std::set<std::string> labels_; | 164 std::set<std::string> labels_; |
165 LabelsConstraint labelsContraint_; | 165 LabelsConstraint labelsContraint_; |
166 std::deque<Ordering*> ordering_; // The ordering criteria (note: the order is important !) | 166 std::deque<Ordering*> ordering_; // The ordering criteria (note: the order is important !) |
167 | 167 |
168 bool retrievePatientTags_; | 168 bool retrieveMainDicomTags_; |
169 bool retrieveStudyTags_; | |
170 bool retrieveSeriesTags_; | |
171 bool retrieveInstanceTags_; | |
172 | |
173 bool retrieveMetadata_; | 169 bool retrieveMetadata_; |
174 bool retrieveLabels_; | 170 bool retrieveLabels_; |
175 bool retrieveAttachments_; | 171 bool retrieveAttachments_; |
176 bool retrieveParentIdentifier_; | 172 bool retrieveParentIdentifier_; |
177 bool retrieveChildrenIdentifiers_; | 173 bool retrieveChildrenIdentifiers_; |
178 bool retrieveChildrenMetadata_; | 174 bool retrieveChildrenMetadata_; |
179 | 175 |
180 bool IsCompatibleLevel(ResourceType levelOfInterest) const; | |
181 | |
182 public: | 176 public: |
183 explicit FindRequest(ResourceType level); | 177 explicit FindRequest(ResourceType level); |
184 | 178 |
185 ~FindRequest(); | 179 ~FindRequest(); |
186 | 180 |
238 | 232 |
239 uint64_t GetLimitsSince() const; | 233 uint64_t GetLimitsSince() const; |
240 | 234 |
241 uint64_t GetLimitsCount() const; | 235 uint64_t GetLimitsCount() const; |
242 | 236 |
243 void SetRetrieveTagsAtLevel(ResourceType levelOfInterest, | |
244 bool retrieve); | |
245 | |
246 bool IsRetrieveTagsAtLevel(ResourceType levelOfInterest) const; | |
247 | |
248 void AddOrdering(const DicomTag& tag, OrderingDirection direction); | 237 void AddOrdering(const DicomTag& tag, OrderingDirection direction); |
249 | 238 |
250 void AddOrdering(MetadataType metadataType, OrderingDirection direction); | 239 void AddOrdering(MetadataType metadataType, OrderingDirection direction); |
251 | 240 |
252 const std::deque<Ordering*>& GetOrdering() const | 241 const std::deque<Ordering*>& GetOrdering() const |
270 } | 259 } |
271 | 260 |
272 void SetRetrieveMetadata(bool retrieve) | 261 void SetRetrieveMetadata(bool retrieve) |
273 { | 262 { |
274 retrieveMetadata_ = retrieve; | 263 retrieveMetadata_ = retrieve; |
264 } | |
265 | |
266 bool IsRetrieveMainDicomTags() const | |
267 { | |
268 return retrieveMainDicomTags_; | |
269 } | |
270 | |
271 void SetRetrieveMainDicomTags(bool retrieve) | |
272 { | |
273 retrieveMainDicomTags_ = retrieve; | |
275 } | 274 } |
276 | 275 |
277 bool IsRetrieveMetadata() const | 276 bool IsRetrieveMetadata() const |
278 { | 277 { |
279 return retrieveMetadata_; | 278 return retrieveMetadata_; |