Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5554:12d8a1a266e9 find-refactoring
introduction of FindRequest and FindResponse
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Apr 2024 16:13:24 +0200 |
parents | dd430a1b21fe |
children | b0b5546f1b9f |
comparison
equal
deleted
inserted
replaced
5549:dcbf0c776945 | 5554:12d8a1a266e9 |
---|---|
374 | 374 |
375 void ListAllLabels(std::set<std::string>& target) | 375 void ListAllLabels(std::set<std::string>& target) |
376 { | 376 { |
377 transaction_.ListAllLabels(target); | 377 transaction_.ListAllLabels(target); |
378 } | 378 } |
379 | |
380 void ExecuteFind(FindResponse& response, | |
381 const FindRequest& request) | |
382 { | |
383 transaction_.ExecuteFind(response, request); | |
384 } | |
379 }; | 385 }; |
380 | 386 |
381 | 387 |
382 class ReadWriteTransaction : public ReadOnlyTransaction | 388 class ReadWriteTransaction : public ReadOnlyTransaction |
383 { | 389 { |
796 void AddLabels(const std::string& publicId, | 802 void AddLabels(const std::string& publicId, |
797 ResourceType level, | 803 ResourceType level, |
798 const std::set<std::string>& labels); | 804 const std::set<std::string>& labels); |
799 | 805 |
800 bool HasLabelsSupport(); | 806 bool HasLabelsSupport(); |
807 | |
808 void ExecuteFind(FindResponse& response, | |
809 const FindRequest& request); | |
801 }; | 810 }; |
802 } | 811 } |