]> Creatis software - gdcm.git/blob - Testing/TestBug.cxx
ENH: New support for cmake 2.0.1
[gdcm.git] / Testing / TestBug.cxx
1 // The following crashes on Win32
2 // We have to be carefull when the code both use cout + printf VC++ gets
3 // confused, thus make sure we use only one kind of iostream
4
5 #include "gdcm.h"
6
7 int TestBug(int argc, char* argv[])
8 {  
9    gdcmHeader* e1;
10         
11    if (argc > 1)
12       e1 = new gdcmHeader( argv[1] );
13    else {
14       std::string filename = GDCM_DATA_ROOT;
15       filename += "/test.acr";
16       e1 = new gdcmHeader( filename.c_str() );
17    }
18    //e1->PrintPubDict();
19    //e1->GetPubDict()->GetEntriesByKey();
20    e1->GetPubDict()->PrintByKey();
21
22   return 0;
23 }