ESyS-Particle  2.3.2
PathSearcher.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 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.opensource.org/licenses/osl-3.0.php //
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