Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapper.h @ 237:16a4ac70bd8a
last change and export
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 15:45:15 +0100 |
parents | c11273198cef |
children | e4148b0ab1d0 |
comparison
equal
deleted
inserted
replaced
236:6d9be2b470b4 | 237:16a4ac70bd8a |
---|---|
59 IServerIndexListener& listener_; | 59 IServerIndexListener& listener_; |
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 | |
65 void GetChangesInternal(Json::Value& target, | |
66 SQLite::Statement& s, | |
67 int64_t since, | |
68 unsigned int maxResults); | |
69 | |
70 void GetExportedResources(Json::Value& target, | |
71 SQLite::Statement& s, | |
72 int64_t since, | |
73 unsigned int maxResults); | |
64 | 74 |
65 public: | 75 public: |
66 void SetGlobalProperty(GlobalProperty property, | 76 void SetGlobalProperty(GlobalProperty property, |
67 const std::string& value); | 77 const std::string& value); |
68 | 78 |
137 | 147 |
138 void GetChanges(Json::Value& target, | 148 void GetChanges(Json::Value& target, |
139 int64_t since, | 149 int64_t since, |
140 unsigned int maxResults); | 150 unsigned int maxResults); |
141 | 151 |
152 void GetLastChange(Json::Value& target); | |
153 | |
142 void LogExportedResource(ResourceType resourceType, | 154 void LogExportedResource(ResourceType resourceType, |
143 const std::string& publicId, | 155 const std::string& publicId, |
144 const std::string& remoteModality, | 156 const std::string& remoteModality, |
145 const std::string& patientId, | 157 const std::string& patientId, |
146 const std::string& studyInstanceUid, | 158 const std::string& studyInstanceUid, |
150 boost::posix_time::second_clock::local_time()); | 162 boost::posix_time::second_clock::local_time()); |
151 | 163 |
152 void GetExportedResources(Json::Value& target, | 164 void GetExportedResources(Json::Value& target, |
153 int64_t since, | 165 int64_t since, |
154 unsigned int maxResults); | 166 unsigned int maxResults); |
167 | |
168 void GetLastExportedResource(Json::Value& target); | |
155 | 169 |
156 int64_t GetTableRecordCount(const std::string& table); | 170 int64_t GetTableRecordCount(const std::string& table); |
157 | 171 |
158 uint64_t GetTotalCompressedSize(); | 172 uint64_t GetTotalCompressedSize(); |
159 | 173 |