Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/IImageWriter.h @ 4311:cb9aef006229
turning IImageWriter into a pure interface
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 15:07:55 +0100 |
parents | 2ae905070221 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4310:2ae905070221 | 4311:cb9aef006229 |
---|---|
54 public: | 54 public: |
55 virtual ~IImageWriter() | 55 virtual ~IImageWriter() |
56 { | 56 { |
57 } | 57 } |
58 | 58 |
59 virtual void WriteToMemory(std::string& compressed, | 59 static void WriteToMemory(IImageWriter& writer, |
60 const ImageAccessor& accessor); | 60 std::string& compressed, |
61 const ImageAccessor& accessor); | |
61 | 62 |
62 #if ORTHANC_SANDBOXED == 0 | 63 #if ORTHANC_SANDBOXED == 0 |
63 virtual void WriteToFile(const std::string& path, | 64 static void WriteToFile(IImageWriter& writer, |
64 const ImageAccessor& accessor); | 65 const std::string& path, |
66 const ImageAccessor& accessor); | |
65 #endif | 67 #endif |
66 }; | 68 }; |
67 } | 69 } |