Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/IDatabaseWrapper.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 | 95ffe3b6ef7c |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/IDatabaseWrapper.h Tue Mar 30 16:34:23 2021 +0200 +++ b/OrthancServer/Sources/Database/IDatabaseWrapper.h Tue Mar 30 18:10:27 2021 +0200 @@ -155,8 +155,15 @@ int64_t id, FileContentType contentType) = 0; + /** + * If "shared" is "true", the property is shared by all the + * Orthanc servers that access the same database. If "shared" is + * "false", the property is private to the server (cf. the + * "DatabaseServerIdentifier" configuration option). + **/ virtual bool LookupGlobalProperty(std::string& target, - GlobalProperty property) = 0; + GlobalProperty property, + bool shared) = 0; virtual bool LookupMetadata(std::string& target, int64_t id, @@ -175,6 +182,7 @@ int64_t patientIdToAvoid) = 0; virtual void SetGlobalProperty(GlobalProperty property, + bool shared, const std::string& value) = 0; virtual void ClearMainDicomTags(int64_t id) = 0;