Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/Compatibility/DatabaseLookup.h @ 4591:ff8170d17d90 db-changes
moving all accesses to databases from IDatabaseWrapper to ITransaction
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Mar 2021 15:30:42 +0100 |
parents | d9473bd5ed43 |
children | f0038043fb97 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4590:4a0bf1019335 | 4591:ff8170d17d90 |
---|---|
41 namespace Compatibility | 41 namespace Compatibility |
42 { | 42 { |
43 class DatabaseLookup : public boost::noncopyable | 43 class DatabaseLookup : public boost::noncopyable |
44 { | 44 { |
45 private: | 45 private: |
46 IDatabaseWrapper& database_; | 46 IDatabaseWrapper::ITransaction& transaction_; |
47 ILookupResources& compatibility_; | 47 ILookupResources& compatibility_; |
48 | 48 |
49 public: | 49 public: |
50 DatabaseLookup(IDatabaseWrapper& database, | 50 DatabaseLookup(IDatabaseWrapper::ITransaction& transaction, |
51 ILookupResources& compatibility) : | 51 ILookupResources& compatibility) : |
52 database_(database), | 52 transaction_(transaction), |
53 compatibility_(compatibility) | 53 compatibility_(compatibility) |
54 { | 54 { |
55 } | 55 } |
56 | 56 |
57 void ApplyLookupResources(std::list<std::string>& resourcesId, | 57 void ApplyLookupResources(std::list<std::string>& resourcesId, |