X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FFlatHashTablePrint.cxx;h=183ec8c1857f4561ab35fe6009cc528d2043fbec;hb=910e35c51c25f53b00f7d1a126ae51a71474d0ab;hp=cda66333c597b33aa2fdcf2123dd717af358573c;hpb=1d69b92978803204089d270599133917d944c651;p=gdcm.git diff --git a/Example/FlatHashTablePrint.cxx b/Example/FlatHashTablePrint.cxx index cda66333..183ec8c1 100644 --- a/Example/FlatHashTablePrint.cxx +++ b/Example/FlatHashTablePrint.cxx @@ -1,26 +1,45 @@ -#include "gdcmHeader.h" +/*========================================================================= + + Program: gdcm + Module: $RCSfile: FlatHashTablePrint.cxx,v $ + Language: C++ + 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 + 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 "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) +/* if (argc < 2) { std::cerr << "Usage :" << std::endl << argv[0] << " input_dicom " << std::endl; return 1; } - gdcm::Header* header = new gdcm::Header( argv[1] ); - gdcm::TagDocEntryHT* Ht = 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) { tag->second->Print(); std::cout << std::endl; - } + }*/ + std::cout<<"Usefull example ???\n"; return 0; }