00001
00002
00003 #ifndef GDCMDIRLIST_H
00004 #define GDCMDIRLIST_H
00005
00006 #include "gdcmCommon.h"
00007
00008 #include <string>
00009 #include <list>
00010
00011
00012 class GDCM_EXPORT gdcmDirList: public std::list<std::string>
00013 {
00014 public :
00015 gdcmDirList(std::string dirName,bool recursive=false);
00016 virtual ~gdcmDirList(void);
00017
00018 std::string GetDirName(void);
00019
00020 static const char SEPARATOR_X;
00021 static const char SEPARATOR_WIN;
00022 static const std::string SEPARATOR;
00023
00024 private :
00025 void NormalizePath(std::string &dirName);
00026 void Explore(std::string dirName,bool recursive=false);
00027
00028 std::string name;
00029 };
00030
00031
00032 #endif