]> Creatis software - gdcm.git/blob - Testing/TestBug.cxx
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[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   gdcm::Header* e1;
10
11    if (argc > 1)
12       e1 = new gdcm::Header( argv[1] );
13    else {
14       std::string filename = GDCM_DATA_ROOT;
15       filename += "/test.acr";
16       e1 = new gdcm::Header( filename.c_str() );
17    }
18    //e1->PrintPubDict();
19    //e1->GetPubDict()->GetEntriesByKey();
20    e1->GetPubDict()->PrintByKey();
21
22   return 0;
23 }