diff OrthancServer/ParsedDicomFile.h @ 792:111a1738e11e

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 May 2014 09:57:39 +0200
parents 381f90e2b69d
children 145604a97914
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h	Mon May 05 22:44:34 2014 +0200
+++ b/OrthancServer/ParsedDicomFile.h	Tue May 06 09:57:39 2014 +0200
@@ -47,11 +47,10 @@
   private:
     // TODO Move this as pimpl
     std::auto_ptr<DcmFileFormat> file_;
+    //struct PImpl;
+    //PImpl* pimpl_;
 
-    ParsedDicomFile(DcmFileFormat& other) :
-      file_(dynamic_cast<DcmFileFormat*>(other.clone()))
-    {
-    }
+    ParsedDicomFile(DcmFileFormat& other);
 
     void Setup(const char* content,
                size_t size);
@@ -64,9 +63,11 @@
 
     ParsedDicomFile(const std::string& content);
 
-    DcmFileFormat& GetDicom()
+    ~ParsedDicomFile();
+
+    void* GetDcmtkObject()
     {
-      return *file_;
+      return file_.get();
     }
 
     ParsedDicomFile* Clone()