diff OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp @ 4279:ab4d015af660

moving inline methods to source files for ABI compatibility
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Nov 2020 20:48:01 +0100
parents bf7b9edf6b81
children 785a2713323e
line wrap: on
line diff
--- a/OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp	Tue Nov 03 20:05:55 2020 +0100
+++ b/OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp	Tue Nov 03 20:48:01 2020 +0100
@@ -30,6 +30,13 @@
 
 namespace Orthanc
 {
+  DeflateBaseCompressor::DeflateBaseCompressor() :
+    compressionLevel_(6),
+    prefixWithUncompressedSize_(false)
+  {
+  }
+
+
   void DeflateBaseCompressor::SetCompressionLevel(uint8_t level)
   {
     if (level >= 10)
@@ -61,4 +68,19 @@
     return size;
   }
 
+
+  void Orthanc::DeflateBaseCompressor::SetPrefixWithUncompressedSize(bool prefix)
+  {
+    prefixWithUncompressedSize_ = prefix;
+  }
+
+  bool DeflateBaseCompressor::HasPrefixWithUncompressedSize() const
+  {
+    return prefixWithUncompressedSize_;
+  }
+
+  uint8_t DeflateBaseCompressor::GetCompressionLevel() const
+  {
+    return compressionLevel_;
+  }
 }