Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 4623:95ffe3b6ef7c db-changes
handling of revisions for metadata
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Apr 2021 17:13:03 +0200 |
parents | f75c63aa9de0 |
children | f7d5372b59b3 |
comparison
equal
deleted
inserted
replaced
4622:9086aeb9d9d2 | 4623:95ffe3b6ef7c |
---|---|
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" | 36 #include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" |
37 #include "../../../OrthancFramework/Sources/FileStorage/FileInfo.h" | 37 #include "../../../OrthancFramework/Sources/FileStorage/FileInfo.h" |
38 #include "../../../OrthancFramework/Sources/FileStorage/IStorageArea.h" | 38 #include "../../../OrthancFramework/Sources/FileStorage/IStorageArea.h" |
39 #include "../../../OrthancFramework/Sources/SQLite/ITransaction.h" | |
40 | |
41 #include "../ExportedResource.h" | 39 #include "../ExportedResource.h" |
42 #include "../ServerIndexChange.h" | 40 #include "../ServerIndexChange.h" |
43 #include "IDatabaseListener.h" | 41 #include "IDatabaseListener.h" |
44 | 42 |
45 #include <list> | 43 #include <list> |
164 virtual bool LookupGlobalProperty(std::string& target, | 162 virtual bool LookupGlobalProperty(std::string& target, |
165 GlobalProperty property, | 163 GlobalProperty property, |
166 bool shared) = 0; | 164 bool shared) = 0; |
167 | 165 |
168 virtual bool LookupMetadata(std::string& target, | 166 virtual bool LookupMetadata(std::string& target, |
167 int64_t& revision, | |
169 int64_t id, | 168 int64_t id, |
170 MetadataType type) = 0; | 169 MetadataType type) = 0; |
171 | 170 |
172 virtual bool LookupParent(int64_t& parentId, | 171 virtual bool LookupParent(int64_t& parentId, |
173 int64_t resourceId) = 0; | 172 int64_t resourceId) = 0; |
187 | 186 |
188 virtual void ClearMainDicomTags(int64_t id) = 0; | 187 virtual void ClearMainDicomTags(int64_t id) = 0; |
189 | 188 |
190 virtual void SetMetadata(int64_t id, | 189 virtual void SetMetadata(int64_t id, |
191 MetadataType type, | 190 MetadataType type, |
192 const std::string& value) = 0; | 191 const std::string& value, |
192 int64_t revision) = 0; | |
193 | 193 |
194 virtual void SetProtectedPatient(int64_t internalId, | 194 virtual void SetProtectedPatient(int64_t internalId, |
195 bool isProtected) = 0; | 195 bool isProtected) = 0; |
196 | 196 |
197 | 197 |