]> Creatis software - gdcm.git/blobdiff - Example/FlatHashTablePrint.cxx
COMP: Those things did not compile on VS60... dont understand what the author meant...
[gdcm.git] / Example / FlatHashTablePrint.cxx
index 8fc200755e6d66231efce91c3791498aad63acd1..183ec8c1857f4561ab35fe6009cc528d2043fbec 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FlatHashTablePrint.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/14 11:28:28 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2005/02/02 10:06:31 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcmHeader.h"
+#include "gdcmFile.h"
 #include "gdcmDocEntry.h"
 
 // Iterate on all the Dicom entries encountered in the gdcmFile (given
 // as line argument) and print them. This is an illustration of the
 // usage of \ref gdcmDocument::BuildFlatHashTable().
 
-int main(int argc, char* argv[])
+int main(int, char*[])
 {
 /*   if (argc < 2)
    {
@@ -31,8 +31,8 @@ int main(int argc, char* argv[])
       return 1;
    }
 
-   gdcm::Header* header = new gdcm::Header( argv[1] );
-   gdcm::TagDocEntryHTHt = header->BuildFlatHashTable();
+   gdcm::File *header = new gdcm::File( argv[1] );
+   gdcm::TagDocEntryHT *Ht = header->BuildFlatHashTable();
    
    for (gdcm::TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag)
    {