The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
10 
11  {
12  public:
13  typedef enum { Ok, EnvironmentVariableUndefined, UnknownDirectory } SearchPathStatus;
14 
15  typedef enum { LocalSearch, RecursiveSearch } SearchType;
16 
26  static std::string find_file( const std::string& logical_file_name, const std::string& search_path,
27  SearchType search_type = LocalSearch );
28 
38  static std::string find_file_from_list( const std::string& logical_file_name, const std::string& search_list,
39  SearchType search_type = LocalSearch );
40 
50  static std::string find_directory( const std::string& logical_file_name, const std::string& search_path,
51  SearchType search_type = LocalSearch );
52 
62  static std::string find_directory_from_list( const std::string& logical_file_name, const std::string& search_list,
63  SearchType search_type = LocalSearch );
64 
72  static SearchPathStatus check_search_path( const std::string& search_path );
73  };
74 
75  GAUDI_API std::string PathResolverFindXMLFile( const std::string& logical_file_name );
76  GAUDI_API std::string PathResolverFindDataFile( const std::string& logical_file_name );
77 } // namespace System
78 
79 #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:71