comparison OrthancServer/Sources/Database/FindRequest.h @ 5681:77875b51cf95 find-refactoring

integration mainline->find-refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jul 2024 10:15:15 +0200
parents dc96401dbe88
children fd4c5e064cbe
comparison
equal deleted inserted replaced
5679:527918e9c5d9 5681:77875b51cf95
247 247
248 private: 248 private:
249 // filter & ordering fields 249 // filter & ordering fields
250 ResourceType level_; // The level of the response (the filtering on tags, labels and metadata also happens at this level) 250 ResourceType level_; // The level of the response (the filtering on tags, labels and metadata also happens at this level)
251 OrthancIdentifiers orthancIdentifiers_; // The response must belong to this Orthanc resources hierarchy 251 OrthancIdentifiers orthancIdentifiers_; // The response must belong to this Orthanc resources hierarchy
252 std::deque<DatabaseConstraint> dicomTagConstraints_; // All tags filters (note: the order is not important) 252 DatabaseConstraints dicomTagConstraints_; // All tags filters (note: the order is not important)
253 std::deque<void*> /* TODO-FIND */ metadataConstraints_; // All metadata filters (note: the order is not important) 253 std::deque<void*> /* TODO-FIND */ metadataConstraints_; // All metadata filters (note: the order is not important)
254 bool hasLimits_; 254 bool hasLimits_;
255 uint64_t limitsSince_; 255 uint64_t limitsSince_;
256 uint64_t limitsCount_; 256 uint64_t limitsCount_;
257 std::set<std::string> labels_; 257 std::set<std::string> labels_;
297 const OrthancIdentifiers& GetOrthancIdentifiers() const 297 const OrthancIdentifiers& GetOrthancIdentifiers() const
298 { 298 {
299 return orthancIdentifiers_; 299 return orthancIdentifiers_;
300 } 300 }
301 301
302 void AddDicomTagConstraint(const DicomTagConstraint& constraint); 302 DatabaseConstraints& GetDicomTagConstraints()
303 303 {
304 size_t GetDicomTagConstraintsCount() const 304 return dicomTagConstraints_;
305 { 305 }
306 return dicomTagConstraints_.size(); 306
307 } 307 const DatabaseConstraints& GetDicomTagConstraints() const
308 308 {
309 const DatabaseConstraint& GetDicomTagConstraint(size_t index) const; 309 return dicomTagConstraints_;
310 }
310 311
311 size_t GetMetadataConstraintsCount() const 312 size_t GetMetadataConstraintsCount() const
312 { 313 {
313 return metadataConstraints_.size(); 314 return metadataConstraints_.size();
314 } 315 }