X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDirList.cxx;h=65c6b358355bff5f991ffdcc131fc616983dd96f;hb=aa74099d3b9e6bf860806305891414f048b7e9a0;hp=615d0b4deced7612782941982df26cb9c0c80d02;hpb=ad24565658c6ecaee9d09473ec60280c912815e9;p=gdcm.git diff --git a/src/gdcmDirList.cxx b/src/gdcmDirList.cxx index 615d0b4d..65c6b358 100644 --- a/src/gdcmDirList.cxx +++ b/src/gdcmDirList.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDirList.cxx,v $ Language: C++ - Date: $Date: 2005/01/12 22:09:55 $ - Version: $Revision: 1.32 $ + Date: $Date: 2005/01/14 21:52:06 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,7 +19,7 @@ #include "gdcmDirList.h" #include "gdcmUtil.h" -#include +#include #ifdef _MSC_VER #include @@ -42,8 +42,7 @@ namespace gdcm DirList::DirList(std::string const &dirName, bool recursive) { DirName = dirName; - Util::NormalizePath(DirName); - Explore(DirName, recursive); + Explore(dirName, recursive); } /** @@ -69,6 +68,11 @@ std::string const &DirList::GetDirName() const return DirName; } +void DirList::Print(std::ostream &os) +{ + copy(begin(), end(), std::ostream_iterator(os, "\n")); +} + //----------------------------------------------------------------------------- // Protected