- e=i->second;
- e->WriteCommonPart(fp, filetype);
- std::cout<<e->GetKey() << " " << hex << e->GetVR() << " "
- << e->GetName()
- << std::endl;
-
-// e->Write(fp,filetype); // This will be the right way to proceed !
-
- if (gdcmBinEntry* BinEntry = dynamic_cast< gdcmBinEntry* >(e) ) {
- BinEntry->Write(fp,filetype);
- continue;
- }
- if (gdcmValEntry* ValEntry = dynamic_cast< gdcmValEntry* >(e) ) {
- ValEntry->Write(fp,filetype);
- continue;
- }
-
- if (gdcmSeqEntry* SeqEntry = dynamic_cast< gdcmSeqEntry* >(e) ) {
- SeqEntry->Write(fp,filetype);
- continue;
- }