Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.h @ 4506:ac69c9f76c71
refactoring ServerIndex::Store()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Feb 2021 17:01:44 +0100 |
parents | 97d103b57cd1 |
children | b4c58795f3a8 |
comparison
equal
deleted
inserted
replaced
4505:97d103b57cd1 | 4506:ac69c9f76c71 |
---|---|
35 | 35 |
36 #include "../../OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h" | 36 #include "../../OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h" |
37 #include "../../OrthancFramework/Sources/DicomFormat/DicomMap.h" | 37 #include "../../OrthancFramework/Sources/DicomFormat/DicomMap.h" |
38 | 38 |
39 #include "Database/IDatabaseWrapper.h" | 39 #include "Database/IDatabaseWrapper.h" |
40 #include "DicomInstanceOrigin.h" | |
40 | 41 |
41 #include <boost/thread.hpp> | 42 #include <boost/thread.hpp> |
42 #include <boost/noncopyable.hpp> | 43 #include <boost/noncopyable.hpp> |
43 | 44 |
44 namespace Orthanc | 45 namespace Orthanc |
45 { | 46 { |
46 class DatabaseLookup; | 47 class DatabaseLookup; |
47 class DicomInstanceHasher; | |
48 class DicomInstanceToStore; | |
49 class ParsedDicomFile; | 48 class ParsedDicomFile; |
50 class ServerContext; | 49 class ServerContext; |
51 | 50 |
52 class ServerIndex : public boost::noncopyable | 51 class ServerIndex : public boost::noncopyable |
53 { | 52 { |
138 | 137 |
139 // "count == 0" means no limit on the number of patients | 138 // "count == 0" means no limit on the number of patients |
140 void SetMaximumPatientCount(unsigned int count); | 139 void SetMaximumPatientCount(unsigned int count); |
141 | 140 |
142 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, | 141 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, |
143 DicomInstanceToStore& instance, | |
144 const DicomMap& dicomSummary, | 142 const DicomMap& dicomSummary, |
145 DicomInstanceHasher& hasher, | |
146 const Attachments& attachments, | 143 const Attachments& attachments, |
144 const MetadataMap& metadata, | |
145 const DicomInstanceOrigin& origin, | |
147 bool overwrite, | 146 bool overwrite, |
147 bool hasTransferSyntax, | |
148 const std::string& transferSyntax, | |
148 bool hasPixelDataOffset, | 149 bool hasPixelDataOffset, |
149 uint64_t pixelDataOffset); | 150 uint64_t pixelDataOffset); |
150 | 151 |
151 void GetGlobalStatistics(/* out */ uint64_t& diskSize, | 152 void GetGlobalStatistics(/* out */ uint64_t& diskSize, |
152 /* out */ uint64_t& uncompressedSize, | 153 /* out */ uint64_t& uncompressedSize, |