The Gaudi Framework  v29r0 (ff2e7097)
PathResolver.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_PATHRESOLVER_H
2 #define GAUDIKERNEL_PATHRESOLVER_H
3 
4 #include "GaudiKernel/Kernel.h"
5 #include <string>
6 
7 namespace System
8 {
9 
11 
12  {
13  public:
14  typedef enum { Ok, EnvironmentVariableUndefined, UnknownDirectory } SearchPathStatus;
15 
16  typedef enum { LocalSearch, RecursiveSearch } SearchType;
17 
27  static std::string find_file( const std::string& logical_file_name, const std::string& search_path,
28  SearchType search_type = LocalSearch );
29 
39  static std::string find_file_from_list( const std::string& logical_file_name, const std::string& search_list,
40  SearchType search_type = LocalSearch );
41 
51  static std::string find_directory( const std::string& logical_file_name, const std::string& search_path,
52  SearchType search_type = LocalSearch );
53 
63  static std::string find_directory_from_list( const std::string& logical_file_name, const std::string& search_list,
64  SearchType search_type = LocalSearch );
65 
73  static SearchPathStatus check_search_path( const std::string& search_path );
74  };
75 
76  GAUDI_API std::string PathResolverFindXMLFile( const std::string& logical_file_name );
77  GAUDI_API std::string PathResolverFindDataFile( const std::string& logical_file_name );
78 }
79 
80 #endif
Note: OS specific details for environment resolution.
Definition: Debugger.h:19
GAUDI_API std::string PathResolverFindXMLFile(const std::string &logical_file_name)
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)
STL class.
#define GAUDI_API
Definition: Kernel.h:110