Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.h @ 3813:aaaa442bfe39 transcoding
moving SetOverwriteInstances from ServerIndex to ServerContext
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Apr 2020 14:03:33 +0200 |
parents | 2a170a8f1faf |
children |
comparison
equal
deleted
inserted
replaced
3812:abd3a1d114c0 | 3813:aaaa442bfe39 |
---|---|
69 IDatabaseWrapper& db_; | 69 IDatabaseWrapper& db_; |
70 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; | 70 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; |
71 | 71 |
72 uint64_t maximumStorageSize_; | 72 uint64_t maximumStorageSize_; |
73 unsigned int maximumPatients_; | 73 unsigned int maximumPatients_; |
74 bool overwrite_; | |
75 std::unique_ptr<MainDicomTagsRegistry> mainDicomTagsRegistry_; | 74 std::unique_ptr<MainDicomTagsRegistry> mainDicomTagsRegistry_; |
76 | 75 |
77 static void FlushThread(ServerIndex* that, | 76 static void FlushThread(ServerIndex* that, |
78 unsigned int threadSleep); | 77 unsigned int threadSleep); |
79 | 78 |
137 void SetMaximumStorageSize(uint64_t size); | 136 void SetMaximumStorageSize(uint64_t size); |
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 void SetOverwriteInstances(bool overwrite); | |
143 | |
144 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, | 141 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, |
145 DicomInstanceToStore& instance, | 142 DicomInstanceToStore& instance, |
146 const Attachments& attachments); | 143 const Attachments& attachments, |
144 bool overwrite); | |
147 | 145 |
148 void GetGlobalStatistics(/* out */ uint64_t& diskSize, | 146 void GetGlobalStatistics(/* out */ uint64_t& diskSize, |
149 /* out */ uint64_t& uncompressedSize, | 147 /* out */ uint64_t& uncompressedSize, |
150 /* out */ uint64_t& countPatients, | 148 /* out */ uint64_t& countPatients, |
151 /* out */ uint64_t& countStudies, | 149 /* out */ uint64_t& countStudies, |