11 #ifndef JOBOPTIONS_DIRSEARCHPATH_H
12 #define JOBOPTIONS_DIRSEARCHPATH_H
18 #include <boost/filesystem/exception.hpp>
19 #include <boost/filesystem/path.hpp>
38 DirSearchPath(
const std::string& stringifiedPath,
const char* separator =
",;" );
40 DirSearchPath(
const std::string& stringifiedPath,
const char* separator =
",:" );
53 bool find(
const std::string& fileName, std::string& fullFileName )
const;
57 bool find(
const path& file,
path& fileFound )
const;
59 std::list<path> find_all(
const path& file )
const;
64 static bool existsDir(
const std::string& dirName );
65 static bool existsDir(
const path& dir );
73 bool operator()(
const path& p )
const {
return p.string() == m_ref.string(); }
91 #endif // JOBOPTIONS_DIRSEARCHPATH_H