diff OrthancFramework/Sources/HttpServer/FilesystemHttpSender.h @ 4298:db3932f9660d

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 18:21:03 +0100
parents 2d5209153b32
children 0a4347203a7e
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/FilesystemHttpSender.h	Thu Nov 05 17:20:49 2020 +0100
+++ b/OrthancFramework/Sources/HttpServer/FilesystemHttpSender.h	Thu Nov 05 18:21:03 2020 +0100
@@ -40,48 +40,26 @@
     void Initialize(const boost::filesystem::path& path);
 
   public:
-    explicit FilesystemHttpSender(const std::string& path)
-    {
-      Initialize(path);
-    }
+    explicit FilesystemHttpSender(const std::string& path);
 
-    explicit FilesystemHttpSender(const boost::filesystem::path& path)
-    {
-      Initialize(path);
-    }
+    explicit FilesystemHttpSender(const boost::filesystem::path& path);
 
     FilesystemHttpSender(const std::string& path,
-                         MimeType contentType)
-    {
-      SetContentType(contentType);
-      Initialize(path);
-    }
+                         MimeType contentType);
 
     FilesystemHttpSender(const FilesystemStorage& storage,
-                         const std::string& uuid)
-    {
-      Initialize(storage.GetPath(uuid));
-    }
+                         const std::string& uuid);
 
     /**
      * Implementation of the IHttpStreamAnswer interface.
      **/
 
-    virtual uint64_t GetContentLength() ORTHANC_OVERRIDE
-    {
-      return size_;
-    }
+    virtual uint64_t GetContentLength() ORTHANC_OVERRIDE;
 
     virtual bool ReadNextChunk() ORTHANC_OVERRIDE;
 
-    virtual const char* GetChunkContent() ORTHANC_OVERRIDE
-    {
-      return chunk_.c_str();
-    }
+    virtual const char* GetChunkContent() ORTHANC_OVERRIDE;
 
-    virtual size_t GetChunkSize() ORTHANC_OVERRIDE
-    {
-      return chunkSize_;
-    }
+    virtual size_t GetChunkSize() ORTHANC_OVERRIDE;
   };
 }