X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FFlatHashTablePrint.cxx;h=9403d02d1c286c294bc09c078225160991dee5c4;hb=9b424310ddd5033481f5b95929645e9014882398;hp=bc9e599f9c5bd7021c728b4be7db29784c87838c;hpb=8a806c5653d7832005f2c6f658cf8b5fa612f656;p=gdcm.git diff --git a/Example/FlatHashTablePrint.cxx b/Example/FlatHashTablePrint.cxx index bc9e599f..9403d02d 100644 --- a/Example/FlatHashTablePrint.cxx +++ b/Example/FlatHashTablePrint.cxx @@ -1,4 +1,22 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: FlatHashTablePrint.cxx,v $ + Language: C++ + Date: $Date: 2004/12/03 20:16:55 $ + 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 + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcmHeader.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 @@ -13,10 +31,10 @@ int main(int argc, char* argv[]) return 1; } - gdcmHeader* header = new gdcmHeader( argv[1] ); - TagDocEntryHT* Ht = header->BuildFlatHashTable(); + gdcm::Header* header = new gdcm::Header( argv[1] ); + gdcm::TagDocEntryHT* Ht = header->BuildFlatHashTable(); - for (TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag) + for (gdcm::TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag) { tag->second->Print(); std::cout << std::endl; @@ -24,6 +42,3 @@ int main(int argc, char* argv[]) return 0; } - - -