comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5495:4b3f5986eca1

Added a 'KeepLabels' option in /modify routes (default = false)
author Alain Mazy <am@osimis.io>
date Mon, 22 Jan 2024 17:14:11 +0100
parents 48b8dae6dc77
children 4dd50c4b985a
comparison
equal deleted inserted replaced
5491:42e6593aa78e 5495:4b3f5986eca1
3618 Operations operations; 3618 Operations operations;
3619 operations.Apply(*this, target); 3619 operations.Apply(*this, target);
3620 } 3620 }
3621 3621
3622 3622
3623 void StatelessDatabaseOperations::AddLabels(const std::string& publicId,
3624 ResourceType level,
3625 const std::set<std::string>& labels)
3626 {
3627 for (std::set<std::string>::const_iterator it = labels.begin(); it != labels.end(); ++it)
3628 {
3629 ModifyLabel(publicId, level, *it, LabelOperation_Add);
3630 }
3631 }
3632
3633
3623 void StatelessDatabaseOperations::ModifyLabel(const std::string& publicId, 3634 void StatelessDatabaseOperations::ModifyLabel(const std::string& publicId,
3624 ResourceType level, 3635 ResourceType level,
3625 const std::string& label, 3636 const std::string& label,
3626 LabelOperation operation) 3637 LabelOperation operation)
3627 { 3638 {