diff OrthancServer/DatabaseWrapper.h @ 1198:1169528a9a5f db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Oct 2014 13:52:01 +0200
parents 5b2d8c280ac2
children efece308018e
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.h	Thu Oct 23 13:19:18 2014 +0200
+++ b/OrthancServer/DatabaseWrapper.h	Thu Oct 23 13:52:01 2014 +0200
@@ -154,10 +154,17 @@
     void GetChildrenInternalId(std::list<int64_t>& result,
                                int64_t id);
 
-    void LogChange(ChangeType changeType,
-                   int64_t internalId,
+    void LogChange(int64_t internalId,
+                   ChangeType changeType,
                    ResourceType resourceType,
-                   const std::string& publicId);
+                   const std::string& publicId)
+    {
+      ServerIndexChange change(changeType, resourceType, publicId);
+      LogChange(internalId, change);
+    }
+
+    void LogChange(int64_t internalId,
+                   const ServerIndexChange& change);
 
     void GetChanges(Json::Value& target,
                     int64_t since,