Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5249:f22c8fac764b db-protobuf
added "/tools/labels" to list all the labels that are associated with any resource
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Apr 2023 22:54:57 +0200 |
parents | a7d95f951f8a |
children | acaea72a3e91 |
comparison
equal
deleted
inserted
replaced
5248:a7d95f951f8a | 5249:f22c8fac764b |
---|---|
367 void ListLabels(std::set<std::string>& target, | 367 void ListLabels(std::set<std::string>& target, |
368 int64_t id) | 368 int64_t id) |
369 { | 369 { |
370 transaction_.ListLabels(target, id); | 370 transaction_.ListLabels(target, id); |
371 } | 371 } |
372 | |
373 void ListAllLabels(std::set<std::string>& target) | |
374 { | |
375 transaction_.ListAllLabels(target); | |
376 } | |
372 }; | 377 }; |
373 | 378 |
374 | 379 |
375 class ReadWriteTransaction : public ReadOnlyTransaction | 380 class ReadWriteTransaction : public ReadOnlyTransaction |
376 { | 381 { |
760 | 765 |
761 void ListLabels(std::set<std::string>& target, | 766 void ListLabels(std::set<std::string>& target, |
762 const std::string& publicId, | 767 const std::string& publicId, |
763 ResourceType level); | 768 ResourceType level); |
764 | 769 |
770 void ListAllLabels(std::set<std::string>& target); | |
771 | |
765 void ModifyLabel(const std::string& publicId, | 772 void ModifyLabel(const std::string& publicId, |
766 ResourceType level, | 773 ResourceType level, |
767 const std::string& label, | 774 const std::string& label, |
768 LabelOperation operation); | 775 LabelOperation operation); |
769 | 776 |