1 /*=========================================================================
4 Module: $RCSfile: gdcmDirList.h,v $
6 Date: $Date: 2005/01/14 21:52:06 $
7 Version: $Revision: 1.17 $
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"
31 //-----------------------------------------------------------------------------
34 * \brief List containing the file Header s of all the gdcm readable files
35 * found by exploring recursively a root directory.
37 // NOTE: Due to a VC6 'feature' we can not export a std::list in a dll,
38 // so GDCM_EXPORT keyword was removed for this class only
40 class DirList : public std::vector<std::string>
43 DirList(std::string const &dirName, bool recursive=false);
46 std::string const &GetDirName() const;
48 void Print(std::ostream &os = std::cout);
51 static const char SEPARATOR_X;
53 static const char SEPARATOR_WIN;
54 /// depending on the O.S.
55 static const std::string SEPARATOR;
58 int Explore(std::string const &dirName, bool recursive=false);
60 /// name of the root directory to explore
63 } // end namespace gdcm
64 //-----------------------------------------------------------------------------