]> Creatis software - gdcm.git/blobdiff - Example/PrintHeader.cxx
ENH : now parsing creates a Vitual DictEntry for Pixels Element,
[gdcm.git] / Example / PrintHeader.cxx
index 516048e5e1c8bc7572fae9f81cf1af9da2f1636a..68b09261ebb3e710191d970cba064e86cb6179b0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 10:24:33 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -15,8 +15,8 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
 #include <iostream>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 { 
@@ -37,8 +37,7 @@ int main(int argc, char* argv[])
       fileName += "/test.acr";
    }
 
-   gdcm::File *f1 = new gdcm::File( fileName.c_str() );
-   gdcm::Header *e1 = f1->GetHeader();  
+   gdcm::Header *e1 = new gdcm::Header( fileName.c_str() );  
 
    if (argc > 2) 
    {
@@ -61,19 +60,6 @@ int main(int argc, char* argv[])
    std::string transferSyntaxName = e1->GetTransfertSyntaxName();
    std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl;
 
-   if (  transferSyntaxName != "Implicit VR - Little Endian"
-      && transferSyntaxName != "Explicit VR - Little Endian"     
-      && transferSyntaxName != "Deflated Explicit VR - Little Endian"      
-      && transferSyntaxName != "Explicit VR - Big Endian"
-      && transferSyntaxName != "Uncompressed ACR-NEMA" )
-   {
-      std::cout << std::endl << "==========================================="
-                << std::endl; 
-      f1->GetPixelConverter()->Print();
-      std::cout << std::endl << "==========================================="
-                << std::endl; 
-   }
-
    if(e1->IsReadable())
       std::cout <<std::endl<<fileName<<" is Readable"<<std::endl;
    else