Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPluginDatabase.h @ 3085:c829758b9ca0 db-changes
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jan 2019 16:52:53 +0100 |
parents | 195ba4cbac3f |
children | fb8ee0786b1e |
comparison
equal
deleted
inserted
replaced
3084:195ba4cbac3f | 3085:c829758b9ca0 |
---|---|
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #if ORTHANC_ENABLE_PLUGINS == 1 | 36 #if ORTHANC_ENABLE_PLUGINS == 1 |
37 | 37 |
38 #include "../../Core/SharedLibrary.h" | 38 #include "../../Core/SharedLibrary.h" |
39 #include "../../OrthancServer/Search/Compatibility/CompatibilityDatabaseWrapper.h" | 39 #include "../../OrthancServer/Search/Compatibility/ILookupResources.h" |
40 #include "../../OrthancServer/Search/Compatibility/ISetResourcesContent.h" | 40 #include "../../OrthancServer/Search/Compatibility/ISetResourcesContent.h" |
41 #include "../../OrthancServer/Search/Compatibility/ICreateInstance.h" | 41 #include "../../OrthancServer/Search/Compatibility/ICreateInstance.h" |
42 #include "../Include/orthanc/OrthancCDatabasePlugin.h" | 42 #include "../Include/orthanc/OrthancCDatabasePlugin.h" |
43 #include "PluginsErrorDictionary.h" | 43 #include "PluginsErrorDictionary.h" |
44 | 44 |
45 namespace Orthanc | 45 namespace Orthanc |
46 { | 46 { |
47 class OrthancPluginDatabase : | 47 class OrthancPluginDatabase : |
48 public IDatabaseWrapper, | 48 public IDatabaseWrapper, |
49 public Compatibility::CompatibilityDatabaseWrapper, | 49 public Compatibility::ILookupResources, |
50 public Compatibility::ISetResourcesContent, | 50 public Compatibility::ISetResourcesContent, |
51 public Compatibility::ICreateInstance | 51 public Compatibility::ICreateInstance |
52 { | 52 { |
53 private: | 53 private: |
54 class Transaction; | 54 class Transaction; |
328 const std::string& study, | 328 const std::string& study, |
329 const std::string& series, | 329 const std::string& series, |
330 const std::string& instance) | 330 const std::string& instance) |
331 ORTHANC_OVERRIDE; | 331 ORTHANC_OVERRIDE; |
332 | 332 |
333 // From the "CompatibilityDatabaseWrapper" interface | 333 // From the "ILookupResources" interface |
334 virtual void GetAllInternalIds(std::list<int64_t>& target, | 334 virtual void GetAllInternalIds(std::list<int64_t>& target, |
335 ResourceType resourceType) | 335 ResourceType resourceType) |
336 ORTHANC_OVERRIDE; | 336 ORTHANC_OVERRIDE; |
337 | 337 |
338 // From the "CompatibilityDatabaseWrapper" interface | 338 // From the "ILookupResources" interface |
339 virtual void LookupIdentifier(std::list<int64_t>& result, | 339 virtual void LookupIdentifier(std::list<int64_t>& result, |
340 ResourceType level, | 340 ResourceType level, |
341 const DicomTag& tag, | 341 const DicomTag& tag, |
342 Compatibility::IdentifierConstraintType type, | 342 Compatibility::IdentifierConstraintType type, |
343 const std::string& value) | 343 const std::string& value) |
344 ORTHANC_OVERRIDE; | 344 ORTHANC_OVERRIDE; |
345 | 345 |
346 // From the "CompatibilityDatabaseWrapper" interface | 346 // From the "ILookupResources" interface |
347 virtual void LookupIdentifierRange(std::list<int64_t>& result, | 347 virtual void LookupIdentifierRange(std::list<int64_t>& result, |
348 ResourceType level, | 348 ResourceType level, |
349 const DicomTag& tag, | 349 const DicomTag& tag, |
350 const std::string& start, | 350 const std::string& start, |
351 const std::string& end) | 351 const std::string& end) |