]> Creatis software - gdcm.git/blob - src/gdcmDirList.h
some cosmetic cleanup so that compilation : -W -Wall -Werror can pass.
[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 /**
13  * \ingroup gdcmDirList
14  * \brief   List containing the file headers from root directory. 
15  */
16 class GDCM_EXPORT gdcmDirList: public std::list<std::string>
17 {
18 public :
19    gdcmDirList(std::string dirName,bool recursive=false);
20    virtual ~gdcmDirList(void);
21
22    std::string GetDirName(void);
23
24    /// Character '\' 
25    static const char SEPARATOR_X;
26    /// Character '/'  
27    static const char SEPARATOR_WIN;
28    /// depending on the O.S.
29    static const std::string SEPARATOR;
30
31 private :
32    void Explore(std::string dirName,bool recursive=false);
33    /// name of the root directory to explore
34    std::string name;
35 };
36
37 //-----------------------------------------------------------------------------
38 #endif