Mercurial > hg > orthanc
comparison OrthancServer/Search/Compatibility/DatabaseLookup.h @ 3084:195ba4cbac3f db-changes
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jan 2019 16:42:55 +0100 |
parents | ead8576a02ef |
children | c829758b9ca0 |
comparison
equal
deleted
inserted
replaced
3083:683d572424b6 | 3084:195ba4cbac3f |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../../IDatabaseWrapper.h" | |
36 #include "CompatibilityDatabaseWrapper.h" | 37 #include "CompatibilityDatabaseWrapper.h" |
37 | 38 |
38 namespace Orthanc | 39 namespace Orthanc |
39 { | 40 { |
40 namespace Compatibility | 41 namespace Compatibility |
41 { | 42 { |
42 class DatabaseLookup : public boost::noncopyable | 43 class DatabaseLookup : public boost::noncopyable |
43 { | 44 { |
44 private: | 45 private: |
45 CompatibilityDatabaseWrapper& database_; | 46 IDatabaseWrapper& database_; |
47 CompatibilityDatabaseWrapper& compatibility_; | |
46 | 48 |
47 public: | 49 public: |
48 DatabaseLookup(CompatibilityDatabaseWrapper& database) : | 50 DatabaseLookup(IDatabaseWrapper& database, |
49 database_(database) | 51 CompatibilityDatabaseWrapper& compatibility) : |
52 database_(database), | |
53 compatibility_(compatibility) | |
50 { | 54 { |
51 } | 55 } |
52 | 56 |
53 void ApplyLookupResources(std::list<std::string>& resourcesId, | 57 void ApplyLookupResources(std::list<std::string>& resourcesId, |
54 std::list<std::string>* instancesId, | 58 std::list<std::string>* instancesId, |