Program: gdcm
Module: $RCSfile: TestCopyDicom.cxx,v $
Language: C++
- Date: $Date: 2004/12/07 18:16:39 $
- Version: $Revision: 1.26 $
+ Date: $Date: 2005/01/14 11:28:29 $
+ Version: $Revision: 1.29 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//////////////// Step 2:
std::cout << "2...";
- originalH->Initialize();
+ originalH->InitTraversal();
gdcm::DocEntry* d=originalH->GetNextEntry();
-
while(d)
{
if ( gdcm::BinEntry* b = dynamic_cast<gdcm::BinEntry*>(d) )
{
- copyH->ReplaceOrCreateByNumber(
+ copyH->ReplaceOrCreate(
b->GetBinArea(),
b->GetLength(),
b->GetGroup(),
}
else if ( gdcm::ValEntry* v = dynamic_cast<gdcm::ValEntry*>(d) )
{
- copyH->ReplaceOrCreateByNumber(
+ copyH->ReplaceOrCreate(
v->GetValue(),
v->GetGroup(),
v->GetElement(),
if( !copy->WriteDcmExplVR(output) )
{
std::cout << " Failed" << std::endl
- << " " << output << " not written" << std::endl;
+ << " " << output << " not written" << std::endl;
delete original;
delete copy;