X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestSerieHelper.cxx;h=81de64be068840d1146b5bdcadc461a68fd6ec00;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=77bd81d4d4da819a6150b9d541abc078c4f59567;hpb=db42e5541964319d882c965dc6d0284806ff0489;p=gdcm.git diff --git a/Testing/TestSerieHelper.cxx b/Testing/TestSerieHelper.cxx index 77bd81d4..81de64be 100644 --- a/Testing/TestSerieHelper.cxx +++ b/Testing/TestSerieHelper.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestSerieHelper.cxx,v $ Language: C++ - Date: $Date: 2005/11/14 15:56:55 $ - Version: $Revision: 1.10 $ + Date: $Date: 2008/09/15 15:49:21 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,7 +22,7 @@ int TestSerieHelper(int argc, char *argv[]) { - gdcm::SerieHelper *s; + GDCM_NAME_SPACE::SerieHelper *s; std::string dirName; if (argc > 1) @@ -33,13 +33,13 @@ int TestSerieHelper(int argc, char *argv[]) } //if (argc > 2) - // gdcm::Debug::DebugOn(); + // GDCM_NAME_SPACE::Debug::DebugOn(); - std::cout << "Dir Name :[" << dirName << "]" << std::endl; + std::cout << "-------------- Dir Name :[" << dirName << "]" << std::endl; - s = gdcm::SerieHelper::New(); - s->SetLoadMode(gdcm::LD_ALL); // Load everything for each File + s = GDCM_NAME_SPACE::SerieHelper::New(); + s->SetLoadMode(GDCM_NAME_SPACE::LD_ALL); // Load everything for each File //s->AddRestriction(tagKey, valueToCheck); // Keep only files where // restriction is true s->SetDirectory(dirName, true); // true : recursive exploration @@ -51,8 +51,8 @@ int TestSerieHelper(int argc, char *argv[]) << std::endl; int nbFiles; - // For all the SingleSerieUID filesets of the gdcm::Serie - gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet(); + // For all the SingleSerieUID filesets of the GDCM_NAME_SPACE::Serie + GDCM_NAME_SPACE::FileList *l = s->GetFirstSingleSerieUIDFileSet(); while (l) { nbFiles = l->size() ; @@ -76,7 +76,7 @@ int TestSerieHelper(int argc, char *argv[]) std::string fileName; l = s->GetFirstSingleSerieUIDFileSet(); - for (std::vector::iterator it = l->begin(); + for (std::vector::iterator it = l->begin(); it != l->end(); ++it) {