1 /*=========================================================================
4 Module: $RCSfile: gdcmDirList.h,v $
6 Date: $Date: 2004/06/20 18:08:47 $
7 Version: $Revision: 1.7 $
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.htm 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"
27 //-----------------------------------------------------------------------------
29 * \ingroup gdcmDirList
30 * \brief List containing the file headers from root directory.
32 class GDCM_EXPORT gdcmDirList: public std::list<std::string>
35 gdcmDirList(std::string dirName,bool recursive=false);
36 virtual ~gdcmDirList(void);
38 std::string GetDirName(void);
41 static const char SEPARATOR_X;
43 static const char SEPARATOR_WIN;
44 /// depending on the O.S.
45 static const std::string SEPARATOR;
48 void Explore(std::string dirName,bool recursive=false);
49 /// name of the root directory to explore
53 //-----------------------------------------------------------------------------