]> Creatis software - gdcm.git/blob - src/gdcmDirList.h
* ENH : now gdcmDicomDir::CreateDicomDir() returns also the meta elements
[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    static const char SEPARATOR_X;
21    static const char SEPARATOR_WIN;
22    static const std::string SEPARATOR;
23
24 private :
25    void NormalizePath(std::string &dirName);
26    void Explore(std::string dirName,bool recursive=false);
27
28    std::string name;
29 };
30
31 //-----------------------------------------------------------------------------
32 #endif