]> Creatis software - gdcm.git/blobdiff - Example/FlatHashTablePrint.cxx
Avoid Doxygen Warnings
[gdcm.git] / Example / FlatHashTablePrint.cxx
index fd134640c5e3f1309a580a001afc6b78d3e8a2d7..6aa17d220f9ba1554651225d4a266318383c97ee 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FlatHashTablePrint.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/21 11:40:52 $
-  Version:   $Revision: 1.8 $
+  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
@@ -22,7 +22,7 @@
 // as line argument) and print them. This is an illustration of the
 // usage of \ref gdcmDocument::BuildFlatHashTable().
 
-int main(int , char* [])
+int main(int, char*[])
 {
 /*   if (argc < 2)
    {
@@ -30,9 +30,11 @@ 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::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)
    {