X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestFromScratch.cxx;h=e9760b86cc997558a3f98b031c05b72e0af57d64;hb=5a219f505ebfecbb386a0791484c5457d574e2da;hp=35851cde2698a7df0c980f2ac1f26fdc7f690b7d;hpb=a2040ffd26fc9a3c835b6c45b92a808f1d001b36;p=gdcm.git diff --git a/Example/TestFromScratch.cxx b/Example/TestFromScratch.cxx index 35851cde..e9760b86 100644 --- a/Example/TestFromScratch.cxx +++ b/Example/TestFromScratch.cxx @@ -3,8 +3,8 @@ 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 @@ -36,7 +36,8 @@ int main(int argc, char *argv[]) } // Doesn't seems to do anything: - dbg.SetDebug(-1); + gdcm::Debug::SetDebugOn(); + // Doesn't link properly: //gdcm::Debug::GetReference().SetDebug(1); @@ -53,10 +54,9 @@ int main(int argc, char *argv[]) // 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(d) ) @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) // Do not bother with field from private dict if( v->GetName() != "gdcm::Unknown" ) { - h2->ReplaceOrCreateByNumber( + h2->ReplaceOrCreate( v->GetValue(), v->GetGroup(), v->GetElement(),