comparison OrthancServer/DatabaseWrapper.h @ 1671:2f2e2ec17bc4 db-changes

sample database plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Oct 2015 17:44:43 +0200
parents 16955f8fec4d
children 4c5a85c3ff43
comparison
equal deleted inserted replaced
1670:16955f8fec4d 1671:2f2e2ec17bc4
94 { 94 {
95 return base_.LookupResource(id, type, publicId); 95 return base_.LookupResource(id, type, publicId);
96 } 96 }
97 97
98 virtual bool LookupParent(int64_t& parentId, 98 virtual bool LookupParent(int64_t& parentId,
99 int64_t resourceId) 99 int64_t resourceId);
100 { 100
101 return base_.LookupParent(parentId, resourceId); 101 virtual std::string GetPublicId(int64_t resourceId);
102 } 102
103 103 virtual ResourceType GetResourceType(int64_t resourceId);
104 virtual std::string GetPublicId(int64_t resourceId)
105 {
106 return base_.GetPublicId(resourceId);
107 }
108
109 virtual ResourceType GetResourceType(int64_t resourceId)
110 {
111 return base_.GetResourceType(resourceId);
112 }
113 104
114 virtual void AttachChild(int64_t parent, 105 virtual void AttachChild(int64_t parent,
115 int64_t child) 106 int64_t child)
116 { 107 {
117 base_.AttachChild(parent, child); 108 base_.AttachChild(parent, child);
207 } 198 }
208 199
209 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/, 200 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/,
210 bool& done /*out*/, 201 bool& done /*out*/,
211 int64_t since, 202 int64_t since,
212 uint32_t maxResults) 203 uint32_t maxResults);
213 { 204
214 base_.GetChanges(target, done, since, maxResults); 205 virtual void GetLastChange(std::list<ServerIndexChange>& target /*out*/);
215 }
216
217 virtual void GetLastChange(std::list<ServerIndexChange>& target /*out*/)
218 {
219 base_.GetLastChange(target);
220 }
221 206
222 virtual void LogExportedResource(const ExportedResource& resource) 207 virtual void LogExportedResource(const ExportedResource& resource)
223 { 208 {
224 base_.LogExportedResource(resource); 209 base_.LogExportedResource(resource);
225 } 210 }
318 return base_.IsExistingResource(internalId); 303 return base_.IsExistingResource(internalId);
319 } 304 }
320 305
321 virtual void LookupIdentifier(std::list<int64_t>& target, 306 virtual void LookupIdentifier(std::list<int64_t>& target,
322 const DicomTag& tag, 307 const DicomTag& tag,
323 const std::string& value) 308 const std::string& value);
324 {
325 base_.LookupIdentifier(target, tag, value);
326 }
327 309
328 virtual void LookupIdentifier(std::list<int64_t>& target, 310 virtual void LookupIdentifier(std::list<int64_t>& target,
329 const std::string& value) 311 const std::string& value)
330 { 312 {
331 base_.LookupIdentifier(target, value); 313 base_.LookupIdentifier(target, value);