ESyS-Particle  2.3.4
PathSearcher.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 
14 #ifndef ESYS_LSMPATHSEARCHER_H
15 #define ESYS_LSMPATHSEARCHER_H
16 
17 #include <boost/filesystem/path.hpp>
18 #include <vector>
19 
20 namespace esys
21 {
22  namespace lsm
23  {
25  {
26  public:
27  PathSearcher(const std::string &delimitedPathList, const std::string &delim = ":");
28 
29  //bool exists(const std::string &fileName);
30 
31  boost::filesystem::path findPath(const std::string &fileName);
32 
33  std::string find(const std::string &fileName);
34 
35  private:
36  typedef std::vector<boost::filesystem::path> PathVector;
38  };
39  }
40 }
41 
42 #endif
esys::lsm::StringUtil::splitStrings
StringVector splitStrings(const std::string &str, const std::string &delim)
Definition: StringUtil.h:169
esys::lsm::PathSearcher
Definition: PathSearcher.h:25
boost
Definition: BondInteractionGroupPy.h:20
StringUtil.h
esys::lsm::PathSearcher::find
std::string find(const std::string &fileName)
Definition: PathSearcher.cpp:62
esys
Definition: CheckPointable.cpp:17
esys::lsm::PathSearcher::PathVector
std::vector< boost::filesystem::path > PathVector
Definition: PathSearcher.h:36
esys::lsm::StringUtil::StringVector
esys::lsm::StringVector StringVector
Definition: StringUtil.h:31
esys::lsm::PathSearcher::PathSearcher
PathSearcher(const std::string &delimitedPathList, const std::string &delim=":")
Definition: PathSearcher.cpp:28
PathSearcher.h
esys::lsm::PathSearcher::m_pathVector
PathVector m_pathVector
Definition: PathSearcher.h:37
esys::lsm::PathSearcher::findPath
boost::filesystem::path findPath(const std::string &fileName)
Definition: PathSearcher.cpp:49