1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 -------------------------------------------------
20 * @file clitkDicomInfo.cxx
21 * @author Laurent ZAGNI <laurent.zagni@insa-lyon.fr>
23 -------------------------------------------------*/
26 #include "clitkDicomInfo_ggo.h"
27 #include "clitkCommon.h"
31 #if GDCM_MAJOR_VERSION == 2
32 #include "gdcmReader.h"
33 #include "gdcmPrinter.h"
36 //--------------------------------------------------------------------
37 int main(int argc, char * argv[])
41 GGO(clitkDicomInfo, args_info);
44 if (args_info.inputs_num == 0) return 0;
47 for(unsigned int i=0; i<args_info.inputs_num; i++) {
48 #if GDCM_MAJOR_VERSION == 2
50 reader.SetFileName(args_info.inputs[i]);
52 gdcm::Printer printer;
53 printer.SetFile(reader.GetFile());
54 printer.SetStyle(gdcm::Printer::VERBOSE_STYLE);
55 printer.Print( std::cout );
57 gdcm::File *header = new gdcm::File();
58 header->SetFileName(args_info.inputs[i]);
59 header->SetMaxSizeLoadEntry(163840);
65 // this is the end my friend
68 //--------------------------------------------------------------------