]> Creatis software - gdcm.git/blobdiff - Example/FlatHashTablePrint.cxx
Fix mistypings
[gdcm.git] / Example / FlatHashTablePrint.cxx
index 183ec8c1857f4561ab35fe6009cc528d2043fbec..09b427277c85ca61809285331393f004609bc061 100644 (file)
@@ -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: 2007/06/21 15:01:00 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,11 +30,13 @@ int main(int, char*[])
       argv[0] << " input_dicom " << std::endl;
       return 1;
    }
-
-   gdcm::File *header = new gdcm::File( argv[1] );
-   gdcm::TagDocEntryHT *Ht = header->BuildFlatHashTable();
+   GDCM_NAME_SPACE::File *header = new GDCM_NAME_SPACE::File();
+   header->SetFileName(argv[1] );
+   header->Load();
+   GDCM_NAME_SPACE::TagDocEntryHT *Ht = header->BuildFlatHashTable();
    
-   for (gdcm::TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag)
+   for (GDCM_NAME_SPACE::TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag)
    {
       tag->second->Print(); 
       std::cout << std::endl;