Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 4607:f75c63aa9de0 db-changes
differentiating between shared and private global properties
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Mar 2021 18:10:27 +0200 |
parents | cc64385593ef |
children | 2684544ff03c |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.h Tue Mar 30 16:34:23 2021 +0200 +++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.h Tue Mar 30 18:10:27 2021 +0200 @@ -246,9 +246,10 @@ } bool LookupGlobalProperty(std::string& target, - GlobalProperty property) + GlobalProperty property, + bool shared) { - return transaction_.LookupGlobalProperty(target, property); + return transaction_.LookupGlobalProperty(target, property, shared); } bool LookupMetadata(std::string& target, @@ -349,9 +350,10 @@ } void SetGlobalProperty(GlobalProperty property, + bool shared, const std::string& value) { - transaction_.SetGlobalProperty(property, value); + transaction_.SetGlobalProperty(property, shared, value); } void SetMetadata(int64_t id, @@ -520,9 +522,11 @@ const std::string& value); bool LookupGlobalProperty(std::string& value, - GlobalProperty property); + GlobalProperty property, + bool shared); std::string GetGlobalProperty(GlobalProperty property, + bool shared, const std::string& defaultValue); bool GetMainDicomTags(DicomMap& result, @@ -564,13 +568,15 @@ void DeleteMetadata(const std::string& publicId, MetadataType type); - uint64_t IncrementGlobalSequence(GlobalProperty sequence); + uint64_t IncrementGlobalSequence(GlobalProperty sequence, + bool shared); void DeleteChanges(); void DeleteExportedResources(); void SetGlobalProperty(GlobalProperty property, + bool shared, const std::string& value); void DeleteAttachment(const std::string& publicId,