]> Creatis software - gdcm.git/blobdiff - Example/TestDcm2Acr.cxx
* Rename src/gdcmPixelConvert.[h|cxx] to src/gdcmPixelReadConvert.[h|cxx]
[gdcm.git] / Example / TestDcm2Acr.cxx
index 8a2996b54416fb2518b575a4f8c19125bae27b58..4e8332a80c15e73d6d94632129a718221803525f 100644 (file)
@@ -1,23 +1,41 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: TestDcm2Acr.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/11/16 04:26:18 $
+  Version:   $Revision: 1.4 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 #include <iostream>
 #include "gdcm.h"
+#include <stdio.h>
 
 int main(int argc, char* argv[])
 {  
    std::string toto;
    char zozo[100];
 
-   gdcmFile  * f1;
+   gdcm::File  * f1;
 
    printf (" Before gdcmFile() \n");
    printf ("\n\n---------------------------------------\n\n");
 
    if (argc > 1) {
       toto = argv[1];
-      f1 = new gdcmFile(toto);
+      f1 = new gdcm::File(toto);
    } else {
       std::string filename = GDCM_DATA_ROOT;
       filename += "/test.acr";
-      f1 = new gdcmFile(filename.c_str());
+      f1 = new gdcm::File(filename.c_str());
    }
    printf (" Sortie gdcmFile() \n");