]> Creatis software - clitk.git/blob - tools/clitkDicomInfo.cxx
removed headers
[clitk.git] / tools / clitkDicomInfo.cxx
1 /**
2    -------------------------------------------------
3    * @file   clitkDicomInfo.cxx
4    * @author Laurent ZAGNI <laurent.zagni@insa-lyon.fr>
5    * @date   27 Jul 2006
6    -------------------------------------------------*/
7
8 // clitk includes
9 #include "clitkDicomInfo_ggo.h"
10 #include "clitkCommon.h"
11
12 // itk (gdcm) include
13 #include "gdcmFile.h"
14
15 //--------------------------------------------------------------------
16 int main(int argc, char * argv[]) {
17
18   // init command line
19   GGO(clitkDicomInfo, args_info);
20
21   // check arg
22   if (args_info.inputs_num == 0) return 0;
23
24   // Loop files
25   for(unsigned int i=0; i<args_info.inputs_num; i++) {
26     gdcm::File *header = new gdcm::File();
27     header->SetFileName(args_info.inputs[i]);
28     header->SetMaxSizeLoadEntry(16384);
29     header->Load();
30     header->Print();
31   }
32
33   // this is the end my friend  
34   return 0;
35 }
36 //--------------------------------------------------------------------