1 #ifndef JOBOPTIONS_DIRSEARCHPATH_H
2 #define JOBOPTIONS_DIRSEARCHPATH_H
11 #include "boost/filesystem/path.hpp"
12 #include "boost/filesystem/exception.hpp"
28 DirSearchPath(
const std::string& stringifiedPath,
const char* separator=
",;");
30 DirSearchPath(
const std::string& stringifiedPath,
const char* separator=
",:");
43 bool find(
const std::string& fileName, std::string& fullFileName)
const;
49 std::list<path> find_all(
const path&
file)
const;
55 static bool existsDir(
const std::string& dirName);
56 static bool existsDir(
const path& dir);
62 struct eqPath :
public std::unary_function<const path&,bool> {
64 bool operator() (
const path& p)
const {
65 return p.string() == m_ref.string();
83 #endif // JOBOPTIONS_DIRSEARCHPATH_H
search for files in a list of directories
std::list< path > m_dirs
the dir container
boost::filesystem::path path
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram