X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDict.cxx;h=db151958f1c070bd188ea57bbd73d2fa9262e369;hb=0a9f25290006bdee6be492179f8b0dae7ba1c598;hp=6d5b4e207fe7bf7a3dde828beb0486c14b4ffda8;hpb=95484666ccfcdb26d6ff1ea57cb1cde7826b7a28;p=gdcm.git diff --git a/Testing/TestDict.cxx b/Testing/TestDict.cxx index 6d5b4e20..db151958 100644 --- a/Testing/TestDict.cxx +++ b/Testing/TestDict.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestDict.cxx,v $ Language: C++ - Date: $Date: 2005/01/18 07:56:21 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/01/24 14:14:09 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -65,7 +65,7 @@ int TestDict(int , char* []) const int ENTRY_GR = 0x10; const int ENTRY_EL = 0x20; std::string key=gdcm::DictEntry::TranslateToKey(ENTRY_GR,ENTRY_EL); - gdcm::DictEntry *entry=pubDict->GetDictEntry(ENTRY_GR,ENTRY_EL); + gdcm::DictEntry *entry=pubDict->GetEntry(ENTRY_GR,ENTRY_EL); if(!entry) { std::cout<<"The DictEntry hasn't be found... Failed\n"; @@ -79,7 +79,9 @@ int TestDict(int , char* []) entry=pubDict->GetFirstEntry(); while(entry) { - entry->Print(); + std::cout << entry->GetGroup() << "|" << entry->GetElement() + << " [" << entry->GetVR() << "] - M" << entry->GetVM() + << " : " << entry->GetName() << " ( " << entry->GetKey() << ")\n"; entry=pubDict->GetNextEntry(); }