Program: gdcm
Module: $RCSfile: TestFromScratch.cxx,v $
Language: C++
- Date: $Date: 2005/01/05 15:38:28 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2005/01/14 11:28:28 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
// Doesn't seems to do anything:
- dbg.SetDebug(-1);
+ gdcm::Debug::SetDebugOn();
+
// Doesn't link properly:
//gdcm::Debug::GetReference().SetDebug(1);
// Hopefully default to something
gdcm::Header *h2 = new gdcm::Header();
- h1->Initialize();
- gdcm::DocEntry* d = h1->GetNextEntry();
-
// Copy of the header content
+ h1->InitTraversal();
+ gdcm::DocEntry* d = h1->GetNextEntry();
while(d)
{
if ( gdcm::ValEntry* v = dynamic_cast<gdcm::ValEntry*>(d) )
// Do not bother with field from private dict
if( v->GetName() != "gdcm::Unknown" )
{
- h2->ReplaceOrCreateByNumber(
+ h2->ReplaceOrCreate(
v->GetValue(),
v->GetGroup(),
v->GetElement(),