1 /*=========================================================================
4 Module: $RCSfile: TestBug.cxx,v $
6 Date: $Date: 2005/01/08 15:03:58 $
7 Version: $Revision: 1.17 $
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.
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.
17 =========================================================================*/
18 // The following crashes on Win32
19 // We have to be carefull when the code both use cout + printf VC++ gets
20 // confused, thus make sure we use only one kind of iostream
22 #include "gdcmHeader.h"
24 int TestBug(int argc, char* argv[])
29 e1 = new gdcm::Header( argv[1] );
31 std::string filename = GDCM_DATA_ROOT;
32 filename += "/test.acr";
33 e1 = new gdcm::Header( filename.c_str() );
36 //e1->GetPubDict()->GetEntriesByKey();
37 e1->GetPubDict()->Print();