| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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