diff Core/Images/PamReader.h @ 2705:5c18a22cb981

fix portability of PAM reader/writer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Jul 2018 16:33:03 +0200
parents be6d7acf4e94
children 9b4251721f22
line wrap: on
line diff
--- a/Core/Images/PamReader.h	Fri Jul 06 15:18:53 2018 +0200
+++ b/Core/Images/PamReader.h	Fri Jul 06 16:33:03 2018 +0200
@@ -35,18 +35,12 @@
 
 #include "ImageAccessor.h"
 
-#include "../Enumerations.h"
-
-#include <vector>
-#include <stdint.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/noncopyable.hpp>
-#include <istream>
-
 #if !defined(ORTHANC_SANDBOXED)
 #  error The macro ORTHANC_SANDBOXED must be defined
 #endif
 
+#include <boost/noncopyable.hpp>
+
 namespace Orthanc
 {
   class PamReader :
@@ -54,22 +48,15 @@
       public boost::noncopyable
   {
   private:
-    std::vector<char> data_;
+    void ParseContent();
+    
+    std::string content_;
 
   public:
-    PamReader() {}
-    virtual ~PamReader() {}
-
 #if ORTHANC_SANDBOXED == 0
     void ReadFromFile(const std::string& filename);
 #endif
 
-    void ReadFromMemory(const void* buffer,
-                        size_t size);
-
     void ReadFromMemory(const std::string& buffer);
-
-  protected:
-    void ReadFromStream(std::istream& input);
   };
 }