comparison OrthancServer/IDatabaseWrapper.h @ 3025:039a9d262d64 db-changes

preparing to speed up find in databases
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2018 17:05:28 +0100
parents d207f6ac1f86
children fd587cf51a89
comparison
equal deleted inserted replaced
3024:ef17a587e10d 3025:039a9d262d64
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "../Core/DicomFormat/DicomMap.h" 36 #include "../Core/DicomFormat/DicomMap.h"
37 #include "../Core/FileStorage/FileInfo.h"
38 #include "../Core/FileStorage/IStorageArea.h"
37 #include "../Core/SQLite/ITransaction.h" 39 #include "../Core/SQLite/ITransaction.h"
38 #include "../Core/FileStorage/IStorageArea.h" 40
39 #include "../Core/FileStorage/FileInfo.h" 41 #include "ExportedResource.h"
40 #include "IDatabaseListener.h" 42 #include "IDatabaseListener.h"
41 #include "ExportedResource.h" 43 #include "Search/DatabaseLookup.h"
42 44
43 #include <list> 45 #include <list>
44 #include <boost/noncopyable.hpp> 46 #include <boost/noncopyable.hpp>
45 47
46 namespace Orthanc 48 namespace Orthanc
221 223
222 virtual void Upgrade(unsigned int targetVersion, 224 virtual void Upgrade(unsigned int targetVersion,
223 IStorageArea& storageArea) = 0; 225 IStorageArea& storageArea) = 0;
224 226
225 virtual bool IsDiskSizeAbove(uint64_t threshold) = 0; 227 virtual bool IsDiskSizeAbove(uint64_t threshold) = 0;
228
229 virtual void FindOneChildInstance(std::vector<std::string>& instancesId,
230 const std::vector<std::string>& resourcesId,
231 ResourceType level) = 0;
232
233 virtual void ApplyLookupPatients(std::vector<std::string>& patientsId,
234 const DatabaseLookup& lookup,
235 size_t limit) = 0;
236
237 virtual void ApplyLookupResources(std::vector<std::string>& resourcesId,
238 const DatabaseLookup& lookup,
239 ResourceType queryLevel,
240 size_t limit) = 0;
226 }; 241 };
227 } 242 }