]> Creatis software - gdcm.git/blob - src/gdcmDirList.h
Now the tree-like structure describing a DICOMDIR comming from an already
[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 Explore(std::string dirName,bool recursive=false);
26
27    std::string name;
28 };
29
30 //-----------------------------------------------------------------------------
31 #endif