comparison OrthancServer/Sources/ServerToolbox.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
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "Database/IDatabaseWrapper.h"
36 #include "ServerEnumerations.h" 37 #include "ServerEnumerations.h"
37 38
38 #include <boost/noncopyable.hpp> 39 #include <boost/noncopyable.hpp>
39 #include <list> 40 #include <list>
40 41
41 namespace Orthanc 42 namespace Orthanc
42 { 43 {
43 class ServerContext; 44 class ServerContext;
44 class IDatabaseWrapper;
45 class IStorageArea; 45 class IStorageArea;
46 46
47 namespace ServerToolbox 47 namespace ServerToolbox
48 { 48 {
49 bool FindOneChildInstance(int64_t& result, 49 bool FindOneChildInstance(int64_t& result,
50 IDatabaseWrapper& database, 50 IDatabaseWrapper::ITransaction& transaction,
51 int64_t resource, 51 int64_t resource,
52 ResourceType type); 52 ResourceType type);
53 53
54 void ReconstructMainDicomTags(IDatabaseWrapper& database, 54 void ReconstructMainDicomTags(IDatabaseWrapper::ITransaction& transaction,
55 IStorageArea& storageArea, 55 IStorageArea& storageArea,
56 ResourceType level); 56 ResourceType level);
57 57
58 void LoadIdentifiers(const DicomTag*& tags, 58 void LoadIdentifiers(const DicomTag*& tags,
59 size_t& size, 59 size_t& size,