1 #ifndef _crea_DIRLIST_H_
2 #define _crea_DIRLIST_H_
15 DirList(std::string const &dirName, bool recursive);
19 std::string NormalizePath(std::string const &pathname);
21 /// Return the name of the directory
22 std::string const &GetDirName() const { return DirName; }
24 /// Return the file names
25 std::vector<std::string> const &GetFilenames() const { return Filenames; }
27 /// Return the number of Files
28 int GetSize() const { return Filenames.size(); }
30 static bool IsDirectory(std::string const &dirName);
32 std::string GetFirst();
33 std::string GetNext();
36 int Explore(std::string const &dirName, bool recursive=false);
38 /// List of file names
39 std::vector<std::string> Filenames;
40 /// name of the root directory to explore