diff OrthancFramework/Sources/FileStorage/IStorageArea.h @ 4484:64f06e7d5fc7

new abstraction IMemoryBuffer to avoid unnecessary copies of std::string buffers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 28 Jan 2021 19:03:19 +0100
parents d9473bd5ed43
children fa2311f94d9f
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/IStorageArea.h	Thu Jan 28 16:59:40 2021 +0100
+++ b/OrthancFramework/Sources/FileStorage/IStorageArea.h	Thu Jan 28 19:03:19 2021 +0100
@@ -22,10 +22,10 @@
 
 #pragma once
 
+#include "../IMemoryBuffer.h"
 #include "../Enumerations.h"
 
 #include <string>
-#include <boost/noncopyable.hpp>
 
 namespace Orthanc
 {
@@ -41,9 +41,8 @@
                         size_t size,
                         FileContentType type) = 0;
 
-    virtual void Read(std::string& content,
-                      const std::string& uuid,
-                      FileContentType type) = 0;
+    virtual IMemoryBuffer* Read(const std::string& uuid,
+                                FileContentType type) = 0;
 
     virtual void Remove(const std::string& uuid,
                         FileContentType type) = 0;