comparison Framework/Plugins/IDatabaseBackend.h @ 396:7b3acfa95bd8 db-protobuf

implementation of list/add/remove labels in postgresql
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Apr 2023 19:00:29 +0200
parents d14e6ff04a5c
children a8774581adfc
comparison
equal deleted inserted replaced
395:a7a029043670 396:7b3acfa95bd8
322 322
323 // New in Orthanc 1.12.0 323 // New in Orthanc 1.12.0
324 virtual bool HasLabelsSupport() const = 0; 324 virtual bool HasLabelsSupport() const = 0;
325 325
326 // New in Orthanc 1.12.0 326 // New in Orthanc 1.12.0
327 virtual void AddLabel(int64_t resource, 327 virtual void AddLabel(DatabaseManager& manager,
328 int64_t resource,
328 const std::string& label) = 0; 329 const std::string& label) = 0;
329 330
330 // New in Orthanc 1.12.0 331 // New in Orthanc 1.12.0
331 virtual void RemoveLabel(int64_t resource, 332 virtual void RemoveLabel(DatabaseManager& manager,
333 int64_t resource,
332 const std::string& label) = 0; 334 const std::string& label) = 0;
333 335
334 // New in Orthanc 1.12.0 336 // New in Orthanc 1.12.0
335 virtual void ListLabels(std::set<std::string>& target, 337 virtual void ListLabels(std::list<std::string>& target,
338 DatabaseManager& manager,
336 int64_t resource) = 0; 339 int64_t resource) = 0;
337 }; 340 };
338 } 341 }