diff OrthancServer/ServerIndex.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 8ea7c4546c3a
children 94f4a18a79cc
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h	Fri Feb 01 09:28:12 2019 +0100
+++ b/OrthancServer/ServerIndex.h	Mon Feb 04 12:06:19 2019 +0100
@@ -84,8 +84,6 @@
                              int64_t resourceId,
                              ResourceType resourceType);
 
-    SeriesStatus GetSeriesStatus(int64_t id);
-
     bool IsRecyclingNeeded(uint64_t instanceSize);
 
     void Recycle(uint64_t instanceSize,
@@ -97,10 +95,6 @@
                         Orthanc::ResourceType type,
                         const std::string& publicId);
 
-    bool GetMetadataAsInteger(int64_t& result,
-                              int64_t id,
-                              MetadataType type);
-
     void LogChange(int64_t internalId,
                    ChangeType changeType,
                    ResourceType resourceType,
@@ -211,16 +205,13 @@
     void DeleteMetadata(const std::string& publicId,
                         MetadataType type);
 
+    void GetAllMetadata(std::map<MetadataType, std::string>& target,
+                        const std::string& publicId);
+
     bool LookupMetadata(std::string& target,
                         const std::string& publicId,
                         MetadataType type);
 
-    void ListAvailableMetadata(std::list<MetadataType>& target,
-                               const std::string& publicId);
-
-    bool GetMetadata(Json::Value& target,
-                     const std::string& publicId);
-
     void ListAvailableAttachments(std::list<FileContentType>& target,
                                   const std::string& publicId,
                                   ResourceType expectedType);