Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.h @ 1237:0f3716b88af7
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 15:33:16 +0100 |
parents | efece308018e |
children | 6c07108ff1e2 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h Fri Dec 05 14:53:30 2014 +0100 +++ b/OrthancServer/ServerIndex.h Fri Dec 05 15:33:16 2014 +0100 @@ -103,6 +103,22 @@ /* in */ int64_t id, /* in */ ResourceType type); + bool GetMetadataAsInteger(int& result, + int64_t id, + MetadataType type); + + void LogChange(int64_t internalId, + ChangeType changeType, + ResourceType resourceType, + const std::string& publicId) + { + ServerIndexChange change(changeType, resourceType, publicId); + db_->LogChange(internalId, change); + } + + uint64_t IncrementGlobalSequenceInternal(GlobalProperty property); + + public: ServerIndex(ServerContext& context, const std::string& dbPath);