]> Creatis software - gdcm.git/blob - Testing/TestValidate.cxx
ENH: proof of concept for usage of VM in gdcm. Extremely early alpha stage don't use
[gdcm.git] / Testing / TestValidate.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: TestValidate.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/06/14 20:33:53 $
7   Version:   $Revision: 1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18 #include "gdcmFile.h"
19 #include "gdcmValidator.h"
20
21
22 int TestValidate(int argc, char *argv[])
23 {
24   if( argc < 2 )
25     {
26     std::cerr << "ouh les cornes" << std::endl;
27     return 1;
28     }
29
30   const char *filename = argv[1];
31
32    gdcm::File *input = new gdcm::File( filename );
33    gdcm::Validator *v = new gdcm::Validator();
34    v->SetInput( input );
35
36    return 0;
37 }
38