| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
10 class GAUDI_API PathResolver
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
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:202
System::PathResolver::SearchPathStatus
SearchPathStatus
Definition: PathResolver.h:14
System::PathResolverFindDataFile
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:207
std::string
STL class.
System::PathResolver
Definition: PathResolver.h:10
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
System::PathResolver::SearchType
SearchType
Definition: PathResolver.h:16