comparison OrthancServer/DatabaseWrapper.h @ 1240:62c35e4b67db

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Dec 2014 17:12:35 +0100
parents 92c6b3b57699
children 90d2f320862d
comparison
equal deleted inserted replaced
1239:92c6b3b57699 1240:62c35e4b67db
60 SQLite::Connection db_; 60 SQLite::Connection db_;
61 Internals::SignalRemainingAncestor* signalRemainingAncestor_; 61 Internals::SignalRemainingAncestor* signalRemainingAncestor_;
62 62
63 void Open(); 63 void Open();
64 64
65 void GetChangesInternal(Json::Value& target, 65 void GetChangesInternal(std::list<ServerIndexChange>& target,
66 bool& done,
66 SQLite::Statement& s, 67 SQLite::Statement& s,
67 int64_t since,
68 unsigned int maxResults); 68 unsigned int maxResults);
69 69
70 void GetExportedResourcesInternal(Json::Value& target, 70 void GetExportedResourcesInternal(Json::Value& target,
71 SQLite::Statement& s, 71 SQLite::Statement& s,
72 int64_t since, 72 int64_t since,
144 int64_t id); 144 int64_t id);
145 145
146 void LogChange(int64_t internalId, 146 void LogChange(int64_t internalId,
147 const ServerIndexChange& change); 147 const ServerIndexChange& change);
148 148
149 void GetChanges(Json::Value& target, 149 void GetChanges(std::list<ServerIndexChange>& target /* out */,
150 bool& done /* out */,
150 int64_t since, 151 int64_t since,
151 unsigned int maxResults); 152 unsigned int maxResults);
152 153
153 void GetLastChange(Json::Value& target); 154 void GetLastChange(std::list<ServerIndexChange>& target /* out */);
154 155
155 void LogExportedResource(ResourceType resourceType, 156 void LogExportedResource(ResourceType resourceType,
156 const std::string& publicId, 157 const std::string& publicId,
157 const std::string& remoteModality, 158 const std::string& remoteModality,
158 const std::string& patientId, 159 const std::string& patientId,