Mercurial > hg > orthanc
comparison OrthancServer/Database/IDatabaseWrapper.h @ 3187:4bbadcd03966
refactoring retrieval of metadata from database
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 12:06:19 +0100 |
parents | 0fa7181ac4e5 |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3184:5d1f5984dc41 | 3187:4bbadcd03966 |
---|---|
151 | 151 |
152 virtual bool IsExistingResource(int64_t internalId) = 0; | 152 virtual bool IsExistingResource(int64_t internalId) = 0; |
153 | 153 |
154 virtual bool IsProtectedPatient(int64_t internalId) = 0; | 154 virtual bool IsProtectedPatient(int64_t internalId) = 0; |
155 | 155 |
156 virtual void ListAvailableMetadata(std::list<MetadataType>& target, | |
157 int64_t id) = 0; | |
158 | |
159 virtual void ListAvailableAttachments(std::list<FileContentType>& target, | 156 virtual void ListAvailableAttachments(std::list<FileContentType>& target, |
160 int64_t id) = 0; | 157 int64_t id) = 0; |
161 | 158 |
162 virtual void LogChange(int64_t internalId, | 159 virtual void LogChange(int64_t internalId, |
163 const ServerIndexChange& change) = 0; | 160 const ServerIndexChange& change) = 0; |
243 virtual void GetChildrenMetadata(std::list<std::string>& target, | 240 virtual void GetChildrenMetadata(std::list<std::string>& target, |
244 int64_t resourceId, | 241 int64_t resourceId, |
245 MetadataType metadata) = 0; | 242 MetadataType metadata) = 0; |
246 | 243 |
247 virtual int64_t GetLastChangeIndex() = 0; | 244 virtual int64_t GetLastChangeIndex() = 0; |
245 | |
246 | |
247 /** | |
248 * Primitives introduced in Orthanc 1.5.4 | |
249 **/ | |
250 | |
251 virtual bool LookupResourceAndParent(int64_t& id, | |
252 ResourceType& type, | |
253 std::string& parentPublicId, | |
254 const std::string& publicId) = 0; | |
248 }; | 255 }; |
249 } | 256 } |