comparison OrthancServer/Sources/Database/FindRequest.h @ 5725:95a3802ad133 find-refactoring

initial implementation of protobuf for find
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Jul 2024 14:02:22 +0200
parents b1c86368af2b
children e2771185dad6
comparison
equal deleted inserted replaced
5724:b7bf515864a2 5725:95a3802ad133
231 private: 231 private:
232 // filter & ordering fields 232 // filter & ordering fields
233 ResourceType level_; // The level of the response (the filtering on tags, labels and metadata also happens at this level) 233 ResourceType level_; // The level of the response (the filtering on tags, labels and metadata also happens at this level)
234 OrthancIdentifiers orthancIdentifiers_; // The response must belong to this Orthanc resources hierarchy 234 OrthancIdentifiers orthancIdentifiers_; // The response must belong to this Orthanc resources hierarchy
235 DatabaseConstraints dicomTagConstraints_; // All tags filters (note: the order is not important) 235 DatabaseConstraints dicomTagConstraints_; // All tags filters (note: the order is not important)
236 std::deque<void*> /* TODO-FIND */ metadataConstraints_; // All metadata filters (note: the order is not important)
237 bool hasLimits_; 236 bool hasLimits_;
238 uint64_t limitsSince_; 237 uint64_t limitsSince_;
239 uint64_t limitsCount_; 238 uint64_t limitsCount_;
240 std::set<std::string> labels_; 239 std::set<std::string> labels_;
241 LabelsConstraint labelsConstraint_; 240 LabelsConstraint labelsConstraint_;
241
242 // TODO-FIND
242 std::deque<Ordering*> ordering_; // The ordering criteria (note: the order is important !) 243 std::deque<Ordering*> ordering_; // The ordering criteria (note: the order is important !)
244 std::deque<void*> /* TODO-FIND */ metadataConstraints_; // All metadata filters (note: the order is not important)
243 245
244 bool retrieveMainDicomTags_; 246 bool retrieveMainDicomTags_;
245 bool retrieveMetadata_; 247 bool retrieveMetadata_;
246 bool retrieveLabels_; 248 bool retrieveLabels_;
247 bool retrieveAttachments_; 249 bool retrieveAttachments_;
312 314
313 uint64_t GetLimitsSince() const; 315 uint64_t GetLimitsSince() const;
314 316
315 uint64_t GetLimitsCount() const; 317 uint64_t GetLimitsCount() const;
316 318
317 void AddOrdering(const DicomTag& tag, OrderingDirection direction); 319 void AddOrdering(const DicomTag& tag,
318 320 OrderingDirection direction);
319 void AddOrdering(MetadataType metadataType, OrderingDirection direction); 321
322 void AddOrdering(MetadataType metadataType,
323 OrderingDirection direction);
320 324
321 const std::deque<Ordering*>& GetOrdering() const 325 const std::deque<Ordering*>& GetOrdering() const
322 { 326 {
323 return ordering_; 327 return ordering_;
324 } 328 }