]> Creatis software - gdcm.git/blobdiff - Example/PrintDocument.cxx
ENH: update jpeg lib with ls patch and 2 bugfix patch
[gdcm.git] / Example / PrintDocument.cxx
index d3ceeb25dafc9157d92c24d848f5bcec7dc7914a..8e9bba04adde9affc5a4384ed2d168bc87250c6d 100644 (file)
@@ -4,12 +4,14 @@
 int main(int argc, char* argv[])
 {
  
-   gdcmHeader *e1;
+   gdcm::Header *e1;
    std::string fileName;   
 
    if (argc != 2) {
-      std::cout << " Usage : " << argv[0] 
-                << " filename." << std::endl;
+      std::cout << " Usage : "
+                << argv[0] 
+                << " filename."
+                << std::endl;
    }
 
    if (argc > 1) {
@@ -19,8 +21,7 @@ int main(int argc, char* argv[])
       fileName += "/test.acr";
    }
    
-   e1= new gdcmHeader 
-      (fileName.c_str(),false, true);
+   e1= new gdcm::Header( fileName.c_str() );
 
    e1->SetPrintLevel(2);