X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FFlatHashTablePrint.cxx;h=6aa17d220f9ba1554651225d4a266318383c97ee;hb=2f8885ad13a4cb5bc5637a0c496f64a713ef9507;hp=183ec8c1857f4561ab35fe6009cc528d2043fbec;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/Example/FlatHashTablePrint.cxx b/Example/FlatHashTablePrint.cxx index 183ec8c1..6aa17d22 100644 --- a/Example/FlatHashTablePrint.cxx +++ b/Example/FlatHashTablePrint.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: FlatHashTablePrint.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:06:31 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/07/08 12:02:02 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -30,8 +30,10 @@ int main(int, char*[]) argv[0] << " input_dicom " << std::endl; return 1; } - - gdcm::File *header = new gdcm::File( argv[1] ); + gdcm::File *header = new gdcm::File(); + header->SetFileName(argv[1] ); + header->Load(); + gdcm::TagDocEntryHT *Ht = header->BuildFlatHashTable(); for (gdcm::TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag)