| The Gaudi Framework v32r1 (f65d50dc)

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 class GAUDI_API PathResolver
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
Kernel.h
System
Note: OS specific details for environment resolution.
Definition: Debugger.h:19
System::PathResolverFindXMLFile
GAUDI_API std::string PathResolverFindXMLFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:183
System::PathResolverFindDataFile
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:187
std::string
STL class.
System::PathResolver
Definition: PathResolver.h:9
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71