comparison Framework/Plugins/IndexBackend.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
379 void SetGlobalIntegerProperty(DatabaseManager& manager, 379 void SetGlobalIntegerProperty(DatabaseManager& manager,
380 const char* serverIdentifier, 380 const char* serverIdentifier,
381 int32_t property, 381 int32_t property,
382 int value); 382 int value);
383 383
384 virtual void AddLabel(int64_t resource, 384 virtual void AddLabel(DatabaseManager& manager,
385 int64_t resource,
385 const std::string& label) ORTHANC_OVERRIDE; 386 const std::string& label) ORTHANC_OVERRIDE;
386 387
387 virtual void RemoveLabel(int64_t resource, 388 virtual void RemoveLabel(DatabaseManager& manager,
389 int64_t resource,
388 const std::string& label) ORTHANC_OVERRIDE; 390 const std::string& label) ORTHANC_OVERRIDE;
389 391
390 virtual void ListLabels(std::set<std::string>& target, 392 virtual void ListLabels(std::list<std::string>& target,
393 DatabaseManager& manager,
391 int64_t resource) ORTHANC_OVERRIDE; 394 int64_t resource) ORTHANC_OVERRIDE;
392 395
393 /** 396 /**
394 * "maxDatabaseRetries" is to handle 397 * "maxDatabaseRetries" is to handle
395 * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a 398 * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a