Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/IDatabaseWrapper.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 | 176bc05f85f4 48b8dae6dc77 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/IDatabaseWrapper.h Fri Apr 07 22:18:37 2023 +0200 +++ b/OrthancServer/Sources/Database/IDatabaseWrapper.h Fri Apr 07 22:54:57 2023 +0200 @@ -251,8 +251,12 @@ virtual void RemoveLabel(int64_t resource, const std::string& label) = 0; + // List the labels of one single resource virtual void ListLabels(std::set<std::string>& target, int64_t resource) = 0; + + // List all the labels that are present in any resource + virtual void ListAllLabels(std::set<std::string>& target) = 0; };