]> Creatis software - gdcm.git/blob - src/gdcmDirList.h
2004-03-24 Jean-Pierre Roux
[gdcm.git] / src / gdcmDirList.h
1 // gdcmDirList.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMDIRLIST_H
4 #define GDCMDIRLIST_H
5
6 #include "gdcmCommon.h"
7
8 #include <string>
9 #include <list>
10
11 //-----------------------------------------------------------------------------
12 class GDCM_EXPORT gdcmDirList: public std::list<std::string>
13 {
14 public :
15    gdcmDirList(std::string dirName,bool recursive=false);
16    virtual ~gdcmDirList(void);
17
18    std::string GetDirName(void);
19
20 /// \
21    static const char SEPARATOR_X;
22 /// /  
23 static const char SEPARATOR_WIN;
24 /// depending on the O.S.
25    static const std::string SEPARATOR;
26
27 private :
28    void Explore(std::string dirName,bool recursive=false);
29 /// name of the root directory to explore
30    std::string name;
31 };
32
33 //-----------------------------------------------------------------------------
34 #endif