Mercurial > hg > orthanc
diff OrthancFramework/Sources/FileStorage/FilesystemStorage.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/FilesystemStorage.h Thu Jan 28 16:59:40 2021 +0100 +++ b/OrthancFramework/Sources/FileStorage/FilesystemStorage.h Thu Jan 28 19:03:19 2021 +0100 @@ -60,6 +60,13 @@ explicit FilesystemStorage(std::string root); #endif +#if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 + // Binary compatibility with Orthanc Framework <= 1.8.2 + void Read(std::string& content, + const std::string& uuid, + FileContentType type); +#endif + public: explicit FilesystemStorage(const std::string& root); @@ -71,9 +78,8 @@ size_t size, FileContentType type) ORTHANC_OVERRIDE; - virtual void Read(std::string& content, - const std::string& uuid, - FileContentType type) ORTHANC_OVERRIDE; + virtual IMemoryBuffer* Read(const std::string& uuid, + FileContentType type) ORTHANC_OVERRIDE; virtual void Remove(const std::string& uuid, FileContentType type) ORTHANC_OVERRIDE;