#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/PathResolver.h>
Definition at line 19 of file PathResolver.h.
◆ SearchPathStatus
Enumerator |
---|
Ok | |
EnvironmentVariableUndefined | |
UnknownDirectory | |
Definition at line 23 of file PathResolver.h.
◆ SearchType
Enumerator |
---|
LocalSearch | |
RecursiveSearch | |
Definition at line 25 of file PathResolver.h.
◆ check_search_path()
search_path
the name of a path-like environment variable
- Returns
- the result of the verification. Can be one of
Ok
, EnvironmentVariableUndefined
, UnknownDirectory
Definition at line 174 of file PathResolver.cpp.
179 boost::split( spv, path_list, boost::is_any_of( path_separator ), boost::token_compress_on );
182 for (
const auto& itr : spv ) {
◆ find_directory()
logical_file_name
the name of the directory to locate in the search path
search_path
the name of a path-like environment variable
search_type
characterizes the type of search. Can be either LocalSearch or RecursiveSearch
- Returns
- the physical name of the located directory or empty string if not found
Definition at line 153 of file PathResolver.cpp.
◆ find_directory_from_list()
logical_file_name
the name of the directory to locate in the search path
search_list
the prioritized list of possible locations separated by the usual path separator
search_type
characterizes the type of search. Can be either LocalSearch or RecursiveSearch
- Returns
- the physical name of the located directory or empty string if not found
Definition at line 163 of file PathResolver.cpp.
167 if ( !PR_find( logical_file_name, search_list,
PR_directory, search_type, result ) ) { result =
""; }
◆ find_file()
logical_file_name
the name of the file to locate in the search path
search_path
the name of a path-like environment variable
search_type
characterizes the type of search. Can be either LocalSearch
or RecursiveSearch
- Returns
- the physical name of the located file or empty string if not found
Definition at line 118 of file PathResolver.cpp.
◆ find_file_from_list()
logical_file_name
the name of the file to locate in the search path
search_list
the prioritized list of possible locations separated by the usual path separator
search_type
characterizes the type of search. Can be either LocalSearch
or RecursiveSearch
- Returns
- the physical name of the located file or empty string if not found
Definition at line 129 of file PathResolver.cpp.
The documentation for this class was generated from the following files: