X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestSerieHelper.cxx;h=02f06f8e9e8e789bc11e6e939f95e0992f4c00a6;hb=9599017adda887d012139a8a452e5a18242dec3b;hp=a36cfdef0240f125944ec7cd0943353510a423ad;hpb=bbfa3cf89fc2ede7c43259e945f021044b56069f;p=gdcm.git diff --git a/Testing/TestSerieHelper.cxx b/Testing/TestSerieHelper.cxx index a36cfdef..02f06f8e 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/02/02 14:26:34 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/05/26 18:50:45 $ + 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 @@ -20,9 +20,7 @@ #include "gdcmDebug.h" #include -typedef std::list GdcmFileList; - -int TestSerieHelper(int argc, char* argv[]) +int TestSerieHelper(int argc, char *argv[]) { gdcm::SerieHelper *s; @@ -35,7 +33,7 @@ int TestSerieHelper(int argc, char* argv[]) } //if (argc > 2) - // gdcm::Debug::SetDebugOn(); + // gdcm::Debug::DebugOn(); std::cout << "Dir Name :[" << dirName << "]" << std::endl; @@ -50,14 +48,14 @@ int TestSerieHelper(int argc, char* argv[]) int nbFiles; // For all the Coherent Files lists of the gdcm::Serie - GdcmFileList *l = s->GetFirstCoherentFileList(); + gdcm::FileList *l = s->GetFirstCoherentFileList(); while (l) { nbFiles = l->size() ; if ( l->size() > 3 ) // Why not ? Just an example, for testing { std::cout << "Sort list : " << nbFiles << " long" << std::endl; - s->OrderGdcmFileList(l); // sort the list + s->OrderFileList(l); // sort the list } l = s->GetNextCoherentFileList(); }