]> Creatis software - gdcm.git/blob - Testing/TestAllPrint.cxx
3962137b3a4d3b3d1ade514fa56cc444a1db8d67
[gdcm.git] / Testing / TestAllPrint.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: TestAllPrint.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/08/30 15:13:07 $
7   Version:   $Revision: 1.4 $
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
19 // TODO : check what's *actually* usefull
20
21 #include "gdcmDictEntry.h"
22 #include "gdcmDict.h"
23 #include "gdcmDictSet.h"
24 #include "gdcmFile.h"
25 #include "gdcmFileHelper.h"
26 #include "gdcmUtil.h"
27 #include "gdcmCommon.h"
28 #include "gdcmBinEntry.h"  
29 #include "gdcmDocEntry.h" 
30 #include "gdcmDocEntrySet.h"           
31 #include "gdcmDocument.h"          
32 #include "gdcmElementSet.h"        
33 #include "gdcmSeqEntry.h" 
34 #include "gdcmSQItem.h" 
35 #include "gdcmValEntry.h" 
36
37 #include <iostream>
38
39 //Generated file:
40 #include "gdcmDataImages.h"
41
42 int TestAllPrint(int, char *[])
43 {
44    int i = 0;
45
46    while( gdcmDataImages[i] != 0 )
47    {
48       std::string filename = gdcmDataImages[i];
49
50       gdcm::File file;
51       file.SetLoadMode( gdcm::LD_NOSEQ );
52       file.SetFileName( filename );
53       file.Load();
54       //file.Print( std::cout ); //just for debug
55       i++;
56    }
57    return 0;
58 }