Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.h @ 5833:58c549b881ae find-refactoring-clean
merged find-refactoring -> find-refactoring-clean
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Wed, 09 Oct 2024 11:01:11 +0200 |
parents | f75596b224e0 b4e7a85cde80 |
children |
comparison
equal
deleted
inserted
replaced
5754:f75596b224e0 | 5833:58c549b881ae |
---|---|
256 // New in Orthanc 1.9.0 | 256 // New in Orthanc 1.9.0 |
257 DicomTransferSyntax preferredTransferSyntax_; | 257 DicomTransferSyntax preferredTransferSyntax_; |
258 boost::mutex dynamicOptionsMutex_; | 258 boost::mutex dynamicOptionsMutex_; |
259 bool isUnknownSopClassAccepted_; | 259 bool isUnknownSopClassAccepted_; |
260 std::set<DicomTransferSyntax> acceptedTransferSyntaxes_; | 260 std::set<DicomTransferSyntax> acceptedTransferSyntaxes_; |
261 bool readOnly_; | |
261 | 262 |
262 StoreResult StoreAfterTranscoding(std::string& resultPublicId, | 263 StoreResult StoreAfterTranscoding(std::string& resultPublicId, |
263 DicomInstanceToStore& dicom, | 264 DicomInstanceToStore& dicom, |
264 StoreInstanceMode mode, | 265 StoreInstanceMode mode, |
265 bool isReconstruct); | 266 bool isReconstruct); |
300 }; | 301 }; |
301 | 302 |
302 ServerContext(IDatabaseWrapper& database, | 303 ServerContext(IDatabaseWrapper& database, |
303 IStorageArea& area, | 304 IStorageArea& area, |
304 bool unitTesting, | 305 bool unitTesting, |
305 size_t maxCompletedJobs); | 306 size_t maxCompletedJobs, |
307 bool readOnly); | |
306 | 308 |
307 ~ServerContext(); | 309 ~ServerContext(); |
308 | 310 |
309 void SetupJobsEngine(bool unitTesting, | 311 void SetupJobsEngine(bool unitTesting, |
310 bool loadJobsFromDatabase); | 312 bool loadJobsFromDatabase); |
322 void SetCompressionEnabled(bool enabled); | 324 void SetCompressionEnabled(bool enabled); |
323 | 325 |
324 bool IsCompressionEnabled() const | 326 bool IsCompressionEnabled() const |
325 { | 327 { |
326 return compressionEnabled_; | 328 return compressionEnabled_; |
329 } | |
330 bool IsReadOnly() const | |
331 { | |
332 return readOnly_; | |
333 } | |
334 | |
335 bool IsSaveJobs() const | |
336 { | |
337 return saveJobs_; | |
327 } | 338 } |
328 | 339 |
329 bool AddAttachment(int64_t& newRevision, | 340 bool AddAttachment(int64_t& newRevision, |
330 const std::string& resourceId, | 341 const std::string& resourceId, |
331 FileContentType attachmentType, | 342 FileContentType attachmentType, |
352 FileContentType attachmentType, | 363 FileContentType attachmentType, |
353 CompressionType compression); | 364 CompressionType compression); |
354 | 365 |
355 void ReadDicomAsJson(Json::Value& result, | 366 void ReadDicomAsJson(Json::Value& result, |
356 const std::string& instancePublicId, | 367 const std::string& instancePublicId, |
368 const std::map<MetadataType, std::string>& instanceMetadata, | |
369 const std::map<FileContentType, FileInfo>& instanceAttachments, | |
357 const std::set<DicomTag>& ignoreTagLength); | 370 const std::set<DicomTag>& ignoreTagLength); |
358 | 371 |
359 void ReadDicomAsJson(Json::Value& result, | 372 void ReadDicomAsJson(Json::Value& result, |
360 const std::string& instancePublicId); | 373 const std::string& instancePublicId, |
374 const std::set<DicomTag>& ignoreTagLength); // TODO-FIND: Can this be removed? | |
375 | |
376 void ReadDicomAsJson(Json::Value& result, | |
377 const std::string& instancePublicId); // TODO-FIND: Can this be removed? | |
361 | 378 |
362 void ReadDicom(std::string& dicom, | 379 void ReadDicom(std::string& dicom, |
363 const std::string& instancePublicId); | 380 const std::string& instancePublicId); |
364 | 381 |
365 void ReadDicom(std::string& dicom, | 382 void ReadDicom(std::string& dicom, |