X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestBug.cxx;h=6f87e0ad21a081d4eeb4ca8a0b108f59208defa1;hb=1ce3c187fd42db21539066a0ec8df1599e16eba2;hp=6b398d24453f7bcfe93875ae2b8a77b9d72fb592;hpb=97e9810ce62ec157c6f9318dee76b566e67f8bb6;p=gdcm.git diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index 6b398d24..6f87e0ad 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -4,10 +4,10 @@ #include "gdcm.h" -int PrintBug(int argc, char* argv[]) +int TestBug(int argc, char* argv[]) { gdcmHeader* e1; - + if (argc > 1) e1 = new gdcmHeader( argv[1] ); else { @@ -15,7 +15,9 @@ int PrintBug(int argc, char* argv[]) filename += "/test.acr"; e1 = new gdcmHeader( filename.c_str() ); } - e1->PrintPubDict(); + //e1->PrintPubDict(); + //e1->GetPubDict()->GetEntriesByKey(); + e1->GetPubDict()->PrintByKey(); return 0; }