X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestBug.cxx;h=959b5f1ab03f24f9a6d72b5ba9f1a0931698034d;hb=d9f8b4b69e332d38e9c883ba60f40dc858883de9;hp=4f5b7a282d0270e93b30dcf4ff29a477d96b0990;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index 4f5b7a28..959b5f1a 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestBug.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:05:26 $ - Version: $Revision: 1.19 $ + Date: $Date: 2007/05/23 14:18:06 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,18 +23,23 @@ int TestBug(int argc, char *argv[]) { - gdcm::File *e1; - +std::cout << "==========test" < 1) - e1 = new gdcm::File( argv[1] ); + f->SetFileName( argv[1] ); else { std::string filename = GDCM_DATA_ROOT; filename += "/test.acr"; - e1 = new gdcm::File( filename.c_str() ); + f->SetFileName( filename.c_str() ); } - - e1->GetPubDict()->Print(); - delete e1; + f->Load( ); + // f->Print(); + std::cout << "-------------End of Print file ------------" << std::cout; + //f->GetPubDict()->Print(); + std::cout << "-------------End of Print Dict ------------" << std::cout; + f->Delete(); return 0; }