X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexXCoherentFileSet.cxx;h=db2dd0e107f150f894b84c0caef7ef576cb93036;hb=4e0fff9935d03469ce6d7484e5f43dddb06e251b;hp=3a873abaf4b11199b85ea24ca5365e075c796c49;hpb=7394687b260abcb408fb180ce4486c6992f19040;p=gdcm.git diff --git a/Example/exXCoherentFileSet.cxx b/Example/exXCoherentFileSet.cxx index 3a873aba..db2dd0e1 100755 --- a/Example/exXCoherentFileSet.cxx +++ b/Example/exXCoherentFileSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exXCoherentFileSet.cxx,v $ Language: C++ - Date: $Date: 2005/11/07 10:54:41 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/11/14 15:55:17 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -115,9 +115,10 @@ int main(int argc, char *argv[]) gdcm::SerieHelper *s; - 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 @@ -186,7 +187,7 @@ int main(int argc, char *argv[]) l = s->GetNextSingleSerieUIDFileSet(); } - delete s; + s->Delete(); return 0; }