X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FFlatHashTablePrint.cxx;h=c330dda8198d5ecef1192c615cac88fadf6e9b35;hb=978f699b97794e209f9d20e2a33a72404bda54ef;hp=96703649f7bf905c9f8debbd4bd0bf145fa84124;hpb=9756355d79626cad8a58b9d7b7b1412b287517ac;p=gdcm.git diff --git a/Example/FlatHashTablePrint.cxx b/Example/FlatHashTablePrint.cxx index 96703649..c330dda8 100644 --- a/Example/FlatHashTablePrint.cxx +++ b/Example/FlatHashTablePrint.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: FlatHashTablePrint.cxx,v $ + Language: C++ + Date: $Date: 2004/11/16 04:26:17 $ + Version: $Revision: 1.4 $ + + 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" // Iterate on all the Dicom entries encountered in the gdcmFile (given @@ -13,10 +30,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;