Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/Compatibility/SetOfResources.cpp @ 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 |
---|---|
88 | 88 |
89 for (Resources::const_iterator it = resources_->begin(); | 89 for (Resources::const_iterator it = resources_->begin(); |
90 it != resources_->end(); ++it) | 90 it != resources_->end(); ++it) |
91 { | 91 { |
92 std::list<int64_t> tmp; | 92 std::list<int64_t> tmp; |
93 database_.GetChildrenInternalId(tmp, *it); | 93 transaction_.GetChildrenInternalId(tmp, *it); |
94 | 94 |
95 for (std::list<int64_t>::const_iterator | 95 for (std::list<int64_t>::const_iterator |
96 child = tmp.begin(); child != tmp.end(); ++child) | 96 child = tmp.begin(); child != tmp.end(); ++child) |
97 { | 97 { |
98 children->insert(*child); | 98 children->insert(*child); |
131 result.clear(); | 131 result.clear(); |
132 | 132 |
133 if (resources_.get() == NULL) | 133 if (resources_.get() == NULL) |
134 { | 134 { |
135 // All the resources of this level are part of the filter | 135 // All the resources of this level are part of the filter |
136 database_.GetAllPublicIds(result, level_); | 136 transaction_.GetAllPublicIds(result, level_); |
137 } | 137 } |
138 else | 138 else |
139 { | 139 { |
140 for (Resources::const_iterator it = resources_->begin(); | 140 for (Resources::const_iterator it = resources_->begin(); |
141 it != resources_->end(); ++it) | 141 it != resources_->end(); ++it) |
142 { | 142 { |
143 result.push_back(database_.GetPublicId(*it)); | 143 result.push_back(transaction_.GetPublicId(*it)); |
144 } | 144 } |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
148 | 148 |