]> Creatis software - gdcm.git/blobdiff - Example/TestValidate.cxx
Fix mistypings
[gdcm.git] / Example / TestValidate.cxx
index 8df1960c8483e19a26ebc403c1693942d3092694..c2913b6512fb95097d3510a495b025ce4f9de75b 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestValidate.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/03 14:17:24 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -23,16 +23,16 @@ int main(int argc, char *argv[])
 {
   if( argc < 2 )
   {
-    std::cerr << "ouh les cornes / shame on you" << std::endl;
+    std::cerr << "ouh les cornes / shame on you / !inocente!" << std::endl;
     return 1;
   }
 
    const char *filename = argv[1];
 
-   gdcm::File *input =  gdcm::File::New( );
+   GDCM_NAME_SPACE::File *input =  GDCM_NAME_SPACE::File::New( );
    input->SetFileName(filename);
    input->Load();
-   gdcm::Validator *v = new gdcm::Validator();
+   GDCM_NAME_SPACE::Validator *v = GDCM_NAME_SPACE::Validator::New();
    v->SetInput( input );
 
    return 0;