| The Gaudi Framework v28r2-patches (bc4ad17a)

- 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 <string>
5 #include "GaudiKernel/Kernel.h"
6
7
8 namespace System {
9
10 class GAUDI_API PathResolver
11
12 {
13 public:
14 typedef enum
15 {
16 Ok,
17 EnvironmentVariableUndefined,
18 UnknownDirectory
19 } SearchPathStatus;
20
21 typedef enum
22 {
23 LocalSearch,
24 RecursiveSearch
25 } SearchType;
26
36 static std::string find_file (const std::string& logical_file_name,
37 const std::string& search_path,
38 SearchType search_type = LocalSearch);
39
49 static std::string find_file_from_list (const std::string& logical_file_name,
50 const std::string& search_list,
51 SearchType search_type = LocalSearch);
52
53
63 static std::string find_directory (const std::string& logical_file_name,
64 const std::string& search_path,
65 SearchType search_type = LocalSearch);
66
76 static std::string find_directory_from_list (const std::string& logical_file_name,
77 const std::string& search_list,
78 SearchType search_type = LocalSearch);
79
80
88 static SearchPathStatus check_search_path (const std::string& search_path);
89
90
91 };
92
93 GAUDI_API std::string PathResolverFindXMLFile (const std::string& logical_file_name);
94 GAUDI_API std::string PathResolverFindDataFile (const std::string& logical_file_name);
95
96 }
97
98 #endif
Kernel.h
System::PathResolver::Ok
Definition: PathResolver.h:16
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:221
System::PathResolver::SearchPathStatus
SearchPathStatus
Definition: PathResolver.h:14
System::PathResolverFindDataFile
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:226
System::PathResolver::LocalSearch
Definition: PathResolver.h:23
std::string
STL class.
System::PathResolver
Definition: PathResolver.h:10
System::PathResolver::EnvironmentVariableUndefined
Definition: PathResolver.h:17
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
System::PathResolver::SearchType
SearchType
Definition: PathResolver.h:21