X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexSerieHelper.cxx;h=fb48ad03075a4d189f254810546fa9216435c5b3;hb=d5f74ad32314e5aa7c2b36fccf33b8d58d8db81d;hp=4873a72d41dc42ddf433455ec60820e66129a532;hpb=1723582aeb2f75f7a0f62d4091f26100fe95a635;p=gdcm.git diff --git a/Example/exSerieHelper.cxx b/Example/exSerieHelper.cxx index 4873a72d..fb48ad03 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/10/17 09:54:20 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/11/14 15:55:17 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,9 +38,10 @@ int main(int argc, char *argv[]) std::cout << "Dir Name :[" << dirName << "]" << std::endl; - s = new gdcm::SerieHelper(); + s = gdcm::SerieHelper::New(); s->SetLoadMode(gdcm::LD_ALL); // Load everything for each File - //s->AddRestriction(tagKey, valueToCheck); // Keep only files where + //gdcm::TagKey t(0x0020,0x0013); + //s->AddRestriction(t, "340", gdcm::GDCM_LESS); // Keep only files where // restriction is true s->SetDirectory(dirName, true); // true : recursive exploration @@ -86,7 +87,7 @@ int main(int argc, char *argv[]) } - delete s; + s->Delete(); return 0; }