summaryrefslogtreecommitdiffstats
path: root/common/sourcewriteback.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sourcewriteback.h')
-rw-r--r--common/sourcewriteback.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/sourcewriteback.h b/common/sourcewriteback.h
index 6c6eaab..9fe5c66 100644
--- a/common/sourcewriteback.h
+++ b/common/sourcewriteback.h
@@ -48,6 +48,12 @@ protected:
48 //Read/Write access to sync storage 48 //Read/Write access to sync storage
49 RemoteIdMap &syncStore(); 49 RemoteIdMap &syncStore();
50 50
51 template <typename T>
52 T getPrevious(const T &entity)
53 {
54 return store().readPrevious<T>(entity.identifier(), entity.revision());
55 }
56
51private: 57private:
52 //Read only access to main storage 58 //Read only access to main storage
53 EntityStore &store(); 59 EntityStore &store();