diff OrthancServer/DatabaseWrapper.h @ 1241:90d2f320862d

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Dec 2014 17:22:53 +0100
parents 62c35e4b67db
children 58e6a89c3ef4
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.h	Fri Dec 05 17:12:35 2014 +0100
+++ b/OrthancServer/DatabaseWrapper.h	Fri Dec 05 17:22:53 2014 +0100
@@ -96,9 +96,6 @@
     void AttachChild(int64_t parent,
                      int64_t child);
 
-    void GetChildren(Json::Value& childrenPublicIds,
-                     int64_t id);
-
     void DeleteResource(int64_t id);
 
     void SetMetadata(int64_t id,
@@ -134,9 +131,6 @@
     void GetMainDicomTags(DicomMap& map,
                           int64_t id);
 
-    bool GetParentPublicId(std::string& result,
-                           int64_t id);
-
     void GetChildrenPublicId(std::list<std::string>& result,
                              int64_t id);
 
@@ -168,16 +162,13 @@
 
     void GetLastExportedResource(Json::Value& target);
 
-    // For unit testing only!
-    int64_t GetTableRecordCount(const std::string& table);
-    
     uint64_t GetTotalCompressedSize();
     
     uint64_t GetTotalUncompressedSize();
 
     uint64_t GetResourceCount(ResourceType resourceType);
 
-    void GetAllPublicIds(Json::Value& target,
+    void GetAllPublicIds(std::list<std::string>& target,
                          ResourceType resourceType);
 
     bool SelectPatientToRecycle(int64_t& internalId);
@@ -223,5 +214,21 @@
 
     void GetAllMetadata(std::map<MetadataType, std::string>& result,
                         int64_t id);
+
+
+
+
+    /**
+     * The methods declared below are for unit testing only!
+     **/
+
+    void GetChildren(std::list<std::string>& childrenPublicIds,
+                     int64_t id);
+
+    int64_t GetTableRecordCount(const std::string& table);
+    
+    bool GetParentPublicId(std::string& result,
+                           int64_t id);
+
   };
 }