]> Creatis software - gdcm.git/blobdiff - Testing/TestCopyDicom.cxx
Doxygenation
[gdcm.git] / Testing / TestCopyDicom.cxx
index cfbbfcdff277dd1305290f5ccc702591b25a82cc..3a86991244d95ae696b663a4ca68a316f44c5467 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:03 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2005/01/06 14:49:15 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,7 +17,6 @@
 =========================================================================*/
 #include "gdcmHeader.h"
 #include "gdcmFile.h"
-#include "gdcmDocument.h"
 #include "gdcmValEntry.h"
 #include "gdcmBinEntry.h"
 
@@ -74,7 +73,7 @@ int CopyDicom(std::string const & filename,
       //////////////// Step 1:
       std::cout << "      1...";
       gdcm::Header *originalH = new gdcm::Header( filename );
-      gdcm::Header *copyH     = new gdcm::Header( output );
+      gdcm::Header *copyH     = new gdcm::Header( );
 
       //First of all copy the header field by field
   
@@ -111,10 +110,6 @@ int CopyDicom(std::string const & filename,
          else
          {
           // We skip pb of SQ recursive exploration
-          //std::cout << "Skipped Sequence " 
-          //          << "------------- " << d->GetVR() << " "<< std::hex
-          //          << d->GetGroup() << " " << d->GetElement()
-          //  << std::endl;    
          }
 
          d=originalH->GetNextEntry();
@@ -136,7 +131,7 @@ int CopyDicom(std::string const & filename,
       if( !copy->WriteDcmExplVR(output) )
       {
          std::cout << " Failed" << std::endl
-                   << "        " << output << " not written" << std::endl;
+                   << "       " << output << " not written" << std::endl;
 
          delete original;
          delete copy;