Mercurial > hg > orthanc
diff Core/FileStorage/IStorageArea.h @ 1126:bf67431a7383
handling of file content type in IStorageArea
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Sep 2014 17:01:42 +0200 |
parents | 20ddab7e9ae8 |
children | 67c3c1e4a6e0 |
line wrap: on
line diff
--- a/Core/FileStorage/IStorageArea.h Fri Sep 05 16:28:47 2014 +0200 +++ b/Core/FileStorage/IStorageArea.h Fri Sep 05 17:01:42 2014 +0200 @@ -32,7 +32,8 @@ #pragma once -#include <string> +#include "../Enumerations.h" + #include <boost/noncopyable.hpp> namespace Orthanc @@ -44,11 +45,15 @@ { } - virtual std::string Create(const void* content, size_t size) = 0; + virtual std::string Create(const void* content, + size_t size, + FileContentType type) = 0; virtual void Read(std::string& content, - const std::string& uuid) const = 0; + const std::string& uuid, + FileContentType type) const = 0; - virtual void Remove(const std::string& uuid) = 0; + virtual void Remove(const std::string& uuid, + FileContentType type) = 0; }; }