Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5849:0f4345cbe558 find-refactoring
GetChildrenPublicId() and LookupResourceAndParent() tagged as compatibility database primitives
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Oct 2024 14:05:59 +0000 |
parents | c1b9eb21bd61 |
children | 1980354c8113 |
comparison
equal
deleted
inserted
replaced
5848:b8fb95937f22 | 5849:0f4345cbe558 |
---|---|
163 int64_t id) | 163 int64_t id) |
164 { | 164 { |
165 transaction_.GetChildrenInternalId(target, id); | 165 transaction_.GetChildrenInternalId(target, id); |
166 } | 166 } |
167 | 167 |
168 void GetChildrenPublicId(std::list<std::string>& target, | |
169 int64_t id) | |
170 { | |
171 transaction_.GetChildrenPublicId(target, id); | |
172 } | |
173 | |
174 void GetExportedResources(std::list<ExportedResource>& target /*out*/, | 168 void GetExportedResources(std::list<ExportedResource>& target /*out*/, |
175 bool& done /*out*/, | 169 bool& done /*out*/, |
176 int64_t since, | 170 int64_t since, |
177 uint32_t limit) | 171 uint32_t limit) |
178 { | 172 { |
268 bool LookupResource(int64_t& id, | 262 bool LookupResource(int64_t& id, |
269 ResourceType& type, | 263 ResourceType& type, |
270 const std::string& publicId) | 264 const std::string& publicId) |
271 { | 265 { |
272 return transaction_.LookupResource(id, type, publicId); | 266 return transaction_.LookupResource(id, type, publicId); |
273 } | |
274 | |
275 bool LookupResourceAndParent(int64_t& id, | |
276 ResourceType& type, | |
277 std::string& parentPublicId, | |
278 const std::string& publicId) | |
279 { | |
280 return transaction_.LookupResourceAndParent(id, type, parentPublicId, publicId); | |
281 } | 267 } |
282 | 268 |
283 void ListLabels(std::set<std::string>& target, | 269 void ListLabels(std::set<std::string>& target, |
284 int64_t id) | 270 int64_t id) |
285 { | 271 { |