Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.h @ 4153:a4664f169cd7
"/peers/{id}/store": New option "Compress" to compress DICOM data using gzip
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 23 Aug 2020 12:13:27 +0200 |
parents | 05b8fd21089c |
children | d07cd8133e56 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.h Wed Aug 19 15:22:03 2020 +0200 +++ b/OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.h Sun Aug 23 12:13:27 2020 +0200 @@ -50,6 +50,8 @@ std::unique_ptr<HttpClient> client_; bool transcode_; DicomTransferSyntax transferSyntax_; + bool compress_; + uint64_t size_; protected: virtual bool HandleInstance(const std::string& instance); @@ -59,7 +61,10 @@ public: OrthancPeerStoreJob(ServerContext& context) : context_(context), - transcode_(false) + transcode_(false), + transferSyntax_(DicomTransferSyntax_LittleEndianExplicit), // Dummy value + compress_(false), + size_(0) { } @@ -78,6 +83,11 @@ return transcode_; } + bool IsCompress() const + { + return compress_; + } + DicomTransferSyntax GetTransferSyntax() const; void SetTranscode(DicomTransferSyntax syntax); @@ -86,6 +96,8 @@ void ClearTranscode(); + void SetCompress(bool compress); + virtual void Stop(JobStopReason reason); // For pausing jobs virtual void GetJobType(std::string& target)