comparison 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
comparison
equal deleted inserted replaced
5248:a7d95f951f8a 5249:f22c8fac764b
249 const std::string& label) = 0; 249 const std::string& label) = 0;
250 250
251 virtual void RemoveLabel(int64_t resource, 251 virtual void RemoveLabel(int64_t resource,
252 const std::string& label) = 0; 252 const std::string& label) = 0;
253 253
254 // List the labels of one single resource
254 virtual void ListLabels(std::set<std::string>& target, 255 virtual void ListLabels(std::set<std::string>& target,
255 int64_t resource) = 0; 256 int64_t resource) = 0;
257
258 // List all the labels that are present in any resource
259 virtual void ListAllLabels(std::set<std::string>& target) = 0;
256 }; 260 };
257 261
258 262
259 virtual ~IDatabaseWrapper() 263 virtual ~IDatabaseWrapper()
260 { 264 {