comparison OrthancServer/ServerIndex.h @ 2825:8aa6aef11b70

New configuration option "OverwriteInstances" to choose how duplicate SOPInstanceUID are handled
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Sep 2018 15:24:01 +0200
parents d26dd081df97
children a27b0e9a3fd9
comparison
equal deleted inserted replaced
2824:0e1b79bc4a2d 2825:8aa6aef11b70
68 68
69 std::auto_ptr<Listener> listener_; 69 std::auto_ptr<Listener> listener_;
70 IDatabaseWrapper& db_; 70 IDatabaseWrapper& db_;
71 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; 71 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_;
72 72
73 uint64_t currentStorageSize_; 73 uint64_t currentStorageSize_;
74 uint64_t maximumStorageSize_; 74 uint64_t maximumStorageSize_;
75 unsigned int maximumPatients_; 75 unsigned int maximumPatients_;
76 bool overwrite_;
76 77
77 static void FlushThread(ServerIndex* that, 78 static void FlushThread(ServerIndex* that,
78 unsigned int threadSleep); 79 unsigned int threadSleep);
79 80
80 static void UnstableResourcesMonitorThread(ServerIndex* that, 81 static void UnstableResourcesMonitorThread(ServerIndex* that,
147 void SetMaximumStorageSize(uint64_t size); 148 void SetMaximumStorageSize(uint64_t size);
148 149
149 // "count == 0" means no limit on the number of patients 150 // "count == 0" means no limit on the number of patients
150 void SetMaximumPatientCount(unsigned int count); 151 void SetMaximumPatientCount(unsigned int count);
151 152
153 void SetOverwriteInstances(bool overwrite);
154
152 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, 155 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata,
153 DicomInstanceToStore& instance, 156 DicomInstanceToStore& instance,
154 const Attachments& attachments); 157 const Attachments& attachments);
155 158
156 void ComputeStatistics(Json::Value& target); 159 void ComputeStatistics(Json::Value& target);