1 #include "gdcmHeader.h"
3 // Iterate on all the Dicom entries encountered in the gdcmFile (given
4 // as line argument) and print them. This is an illustration of the
5 // usage of \ref gdcmDocument::BuildFlatHashTable().
7 int main(int argc, char* argv[])
11 std::cerr << "Usage :" << std::endl <<
12 argv[0] << " input_dicom " << std::endl;
16 gdcmHeader* header = new gdcmHeader( argv[1] );
17 TagDocEntryHT* Ht = header->BuildFlatHashTable();
19 for (TagDocEntryHT::iterator tag = Ht->begin(); tag != Ht->end(); ++tag)
22 std::cout << std::endl;