1 /*=========================================================================
4 Module: $RCSfile: gdcmDirList.h,v $
6 Date: $Date: 2005/01/11 15:15:38 $
7 Version: $Revision: 1.15 $
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 Header s of all the gdcm readable files
34 * found by exploring recursively a root directory.
36 // NOTE: Due to a VC6 'feature' we can not export a std::list in a dll,
37 // so GDCM_EXPORT keyword was removed for this class only
39 class DirList: public std::list<std::string>
42 DirList(std::string const &dirName, bool recursive=false);
45 std::string const &GetDirName() const;
48 static const char SEPARATOR_X;
50 static const char SEPARATOR_WIN;
51 /// depending on the O.S.
52 static const std::string SEPARATOR;
55 int Explore(std::string const &dirName, bool recursive=false);
57 /// name of the root directory to explore
60 } // end namespace gdcm
61 //-----------------------------------------------------------------------------