1 #ifndef JOBOPTIONS_DIRSEARCHPATH_H 2 #define JOBOPTIONS_DIRSEARCHPATH_H 8 #include "boost/filesystem/exception.hpp" 9 #include "boost/filesystem/path.hpp" 45 bool find(
const path& file,
path& fileFound )
const;
52 static bool existsDir(
const std::string& dirName );
53 static bool existsDir(
const path& dir );
61 bool operator()(
const path& p )
const {
return p.string() == m_ref.string(); }
79 #endif // JOBOPTIONS_DIRSEARCHPATH_H
bool operator()(const path &p) const
search for files in a list of directories
boost::filesystem::path path
std::vector< path > m_dirs
the dir container