X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestMakeDicomDir.cxx;h=586e8692be6f8363a1f4af32e088d7efc189bb61;hb=9cfc0e09d292826980e3d63728d46b5c6b185bf4;hp=861b755348c1ed16ece531dc2009f6afc66c9bde;hpb=bf974e736465fcd9de7ddee123e9d7e3edc03ce6;p=gdcm.git diff --git a/Testing/TestMakeDicomDir.cxx b/Testing/TestMakeDicomDir.cxx index 861b7553..586e8692 100644 --- a/Testing/TestMakeDicomDir.cxx +++ b/Testing/TestMakeDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestMakeDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/06/02 09:37:50 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/07/08 10:15:08 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -60,19 +60,15 @@ int TestMakeDicomDir(int argc, char *argv[]) } gdcm::DicomDir *dcmdir; - - // Old style (still available) - // - // true : we ask for Directory parsing - // dcmdir = new gdcm::DicomDir(dirName, true); // new style (user is allowed no to load Sequences an/or Shadow Groups) dcmdir = new gdcm::DicomDir( ); - dcmdir->SetParseDir(true); + // dcmdir->SetLoadMode(NO_SEQ | NO_SHADOW); // some images have a wrong length for element 0x0000 of private groups dcmdir->SetLoadMode(NO_SEQ); - dcmdir->Load(dirName); + dcmdir->SetDirectoryName(dirName); + dcmdir->Load( ); dcmdir->SetStartMethod(StartMethod, (void *) NULL); dcmdir->SetEndMethod(EndMethod);