1 /*=========================================================================
4 Module: $RCSfile: gdcmDirList.h,v $
6 Date: $Date: 2004/10/27 22:58:06 $
7 Version: $Revision: 1.13 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
22 #include "gdcmCommon.h"
30 //-----------------------------------------------------------------------------
33 * \brief List containing the file headers from root directory.
35 // NOTE: Due to a VC6 'feature' we can not export a std::list in a dll,
36 // so GDCM_EXPORT keyword was removed for this class only
38 class DirList: public std::list<std::string>
41 DirList(std::string const & dirName, bool recursive=false);
44 std::string const & GetDirName() const;
47 static const char SEPARATOR_X;
49 static const char SEPARATOR_WIN;
50 /// depending on the O.S.
51 static const std::string SEPARATOR;
54 int Explore(std::string const & dirName, bool recursive=false);
56 /// name of the root directory to explore
59 } // end namespace gdcm
60 //-----------------------------------------------------------------------------