]> Creatis software - gdcm.git/blobdiff - Example/TestWrite.cxx
* Test/TestAllEntryVerify.cxx minor fix and added comments.
[gdcm.git] / Example / TestWrite.cxx
index 9673abf03387600ce14f32240cf69c1ba60f7f17..bbdf452f22b81704f8f88318fa6f3e3726f004de 100644 (file)
@@ -1,9 +1,6 @@
 #include <iostream>
-#include "gdcm.h"
-#include "gdcmHeader.h"
-#include "gdcmDocument.h"
-
 #include <stdio.h>
+#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {  
@@ -49,8 +46,9 @@ int main(int argc, char* argv[])
      
    toto = argv[1]; 
 
-   e1 = new gdcmHeader(toto.c_str(), false, true);
-   if (!e1->IsReadable()) {
+   e1 = new gdcmHeader( toto.c_str() );
+   if (!e1->IsReadable())
+   {
        std::cerr << "Sorry, not a Readable DICOM / ACR File"  <<std::endl;
        return 0;
    }