comparison 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
comparison
equal deleted inserted replaced
1197:61b71ccac362 1198:1169528a9a5f
152 int64_t id); 152 int64_t id);
153 153
154 void GetChildrenInternalId(std::list<int64_t>& result, 154 void GetChildrenInternalId(std::list<int64_t>& result,
155 int64_t id); 155 int64_t id);
156 156
157 void LogChange(ChangeType changeType, 157 void LogChange(int64_t internalId,
158 int64_t internalId, 158 ChangeType changeType,
159 ResourceType resourceType, 159 ResourceType resourceType,
160 const std::string& publicId); 160 const std::string& publicId)
161 {
162 ServerIndexChange change(changeType, resourceType, publicId);
163 LogChange(internalId, change);
164 }
165
166 void LogChange(int64_t internalId,
167 const ServerIndexChange& change);
161 168
162 void GetChanges(Json::Value& target, 169 void GetChanges(Json::Value& target,
163 int64_t since, 170 int64_t since,
164 unsigned int maxResults); 171 unsigned int maxResults);
165 172