Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerIndex.h @ 4560:929409e40008 db-changes
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Mar 2021 18:42:25 +0100 |
parents | 19b1921aee06 |
children | 02510325d869 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h Thu Mar 04 17:59:40 2021 +0100 +++ b/OrthancServer/Sources/ServerIndex.h Thu Mar 04 18:42:25 2021 +0100 @@ -172,18 +172,6 @@ void DeleteMetadata(const std::string& publicId, MetadataType type); - bool LookupMetadata(std::string& target, - const std::string& publicId, - ResourceType expectedType, - MetadataType type); - - void ListAvailableAttachments(std::set<FileContentType>& target, - const std::string& publicId, - ResourceType expectedType); - - bool LookupParent(std::string& target, - const std::string& publicId); - uint64_t IncrementGlobalSequence(GlobalProperty sequence); void LogChange(ChangeType changeType, @@ -387,6 +375,12 @@ return db_.IsProtectedPatient(internalId); } + void ListAvailableAttachments(std::set<FileContentType>& target, + int64_t id) + { + db_.ListAvailableAttachments(target, id); + } + bool LookupAttachment(FileInfo& attachment, int64_t id, FileContentType contentType) @@ -394,6 +388,19 @@ return db_.LookupAttachment(attachment, id, contentType); } + bool LookupMetadata(std::string& target, + int64_t id, + MetadataType type) + { + return db_.LookupMetadata(target, id, type); + } + + bool LookupParent(int64_t& parentId, + int64_t resourceId) + { + return db_.LookupParent(parentId, resourceId); + } + bool LookupResource(int64_t& id, ResourceType& type, const std::string& publicId) @@ -512,5 +519,17 @@ void GetChildInstances(std::list<std::string>& result, const std::string& publicId); + + bool LookupMetadata(std::string& target, + const std::string& publicId, + ResourceType expectedType, + MetadataType type); + + void ListAvailableAttachments(std::set<FileContentType>& target, + const std::string& publicId, + ResourceType expectedType); + + bool LookupParent(std::string& target, + const std::string& publicId); }; }