~esys-p-dev/esys-particle/trunk

« back to all changes in this revision

Viewing changes to Foundation/PathSearcher.h

  • Committer: slatham
  • Date: 2005-01-15 05:09:37 UTC
  • Revision ID: svn-v4:1ddc92f8-1f06-0410-a909-b11019f1b28a:lsmtrunk:573
Moved OpValue dependencies in CLatticeMaster to ParserLmInitialiser.cpp classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*=============================================================================
 
2
??
 
3
??******************************************************************************
 
4
??*                                               *
 
5
??* COPYRIGHT ??????? - All Rights Reserved *
 
6
??*  *
 
7
??* This software is the property of ??????????????. No part of this code   *
 
8
??* may be copied in any form or by any means without the expressed written   *
 
9
??* consent of ???????????. Copying, use or modification of this software     *
 
10
??* by any unauthorised person is illegal unless that    *
 
11
??* person has a software license agreement with ?????????????.            *
 
12
??*                                                          *
 
13
??******************************************************************************
 
14
??
 
15
*********************************************************************************/
 
16
 
 
17
#ifndef ESYS_LSMPATHSEARCHER_H
 
18
#define ESYS_LSMPATHSEARCHER_H
 
19
 
 
20
#include <boost/filesystem/path.hpp>
 
21
#include <vector>
 
22
 
 
23
namespace esys
 
24
{
 
25
  namespace lsm
 
26
  {
 
27
    class PathSearcher
 
28
    {
 
29
    public:
 
30
      PathSearcher(const std::string &delimitedPathList, const std::string &delim = ":");
 
31
      
 
32
      bool exists(const std::string &fileName);
 
33
      
 
34
      boost::filesystem::path findPath(const std::string &fileName);
 
35
      
 
36
      std::string find(const std::string &fileName);
 
37
      
 
38
    private:
 
39
      typedef std::vector<boost::filesystem::path> PathVector;
 
40
      PathVector m_pathVector;
 
41
    };
 
42
  }
 
43
}
 
44
 
 
45
#endif