X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexSerieHelper.cxx;h=4873a72d41dc42ddf433455ec60820e66129a532;hb=9a3c8efad6a7f1b2f1fdb689dae4ce09bf2d433f;hp=03a6a80f1bb8b9fd9a1947e85967e769a06035f0;hpb=1b40c2ffa0f5f173a98e121572a19c7316be011b;p=gdcm.git diff --git a/Example/exSerieHelper.cxx b/Example/exSerieHelper.cxx index 03a6a80f..4873a72d 100644 --- a/Example/exSerieHelper.cxx +++ b/Example/exSerieHelper.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exSerieHelper.cxx,v $ Language: C++ - Date: $Date: 2005/08/22 11:21:56 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/10/17 09:54:20 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) std::cout << "Dir Name :[" << dirName << "]" << std::endl; s = new gdcm::SerieHelper(); - s->SetLoadMode(0x00000000); // Load everything for each File + s->SetLoadMode(gdcm::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 @@ -52,8 +52,8 @@ int main(int argc, char *argv[]) << std::endl; int nbFiles; - // For all the Coherent Files lists of the gdcm::Serie - gdcm::FileList *l = s->GetFirstCoherentFileList(); + // For all the Single SerieUID Files Sets of the gdcm::Serie + gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet(); while (l) { nbFiles = l->size() ; @@ -62,11 +62,11 @@ int main(int argc, char *argv[]) std::cout << "Sort list : " << nbFiles << " long" << std::endl; s->OrderFileList(l); // sort the list } - l = s->GetNextCoherentFileList(); + l = s->GetNextSingleSerieUIDFileSet(); } std::cout << " -------------------------------------------- Finish sorting" << std::endl; - s->Print(); // Prints all the Coherent Files lists (sorted or not) + s->Print(); // Prints all the Single SerieUID File Sets (sorted or not) std::cout << " -------------------------------------------- Finish printing" << std::endl; @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) // Display all the file names std::string fileName; - l = s->GetFirstCoherentFileList(); + l = s->GetFirstSingleSerieUIDFileSet(); for (std::vector::iterator it = l->begin(); it != l->end(); ++it)