#include </scratch/z5/marcocle/lhcb-release/419/GAUDI/GAUDI_v26r1/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/PathResolver.h>
|
| enum | SearchPathStatus {
Ok,
EnvironmentVariableUndefined,
UnknownDirectory,
Ok,
EnvironmentVariableUndefined,
UnknownDirectory
} |
| |
| enum | SearchType { LocalSearch,
RecursiveSearch,
LocalSearch,
RecursiveSearch
} |
| |
| enum | SearchPathStatus {
Ok,
EnvironmentVariableUndefined,
UnknownDirectory,
Ok,
EnvironmentVariableUndefined,
UnknownDirectory
} |
| |
| enum | SearchType { LocalSearch,
RecursiveSearch,
LocalSearch,
RecursiveSearch
} |
| |
|
| static std::string | find_file (const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch) |
| |
| static std::string | find_file_from_list (const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch) |
| |
| static std::string | find_directory (const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch) |
| |
| static std::string | find_directory_from_list (const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch) |
| |
| static SearchPathStatus | check_search_path (const std::string &search_path) |
| |
| static std::string | find_file (const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch) |
| |
| static std::string | find_file_from_list (const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch) |
| |
| static std::string | find_directory (const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch) |
| |
| static std::string | find_directory_from_list (const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch) |
| |
| static SearchPathStatus | check_search_path (const std::string &search_path) |
| |
Definition at line 10 of file PathResolver.h.
- Enumerator:
| Ok |
|
| EnvironmentVariableUndefined |
|
| UnknownDirectory |
|
| Ok |
|
| EnvironmentVariableUndefined |
|
| UnknownDirectory |
|
Definition at line 14 of file PathResolver.h.
- Enumerator:
| Ok |
|
| EnvironmentVariableUndefined |
|
| UnknownDirectory |
|
| Ok |
|
| EnvironmentVariableUndefined |
|
| UnknownDirectory |
|
Definition at line 14 of file PathResolver.h.
- Enumerator:
| LocalSearch |
|
| RecursiveSearch |
|
| LocalSearch |
|
| RecursiveSearch |
|
Definition at line 21 of file PathResolver.h.
- Enumerator:
| LocalSearch |
|
| RecursiveSearch |
|
| LocalSearch |
|
| RecursiveSearch |
|
Definition at line 21 of file PathResolver.h.
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 197 of file PathResolver.cpp.
{
std::string path_list;
vector<string> spv;
boost::split( spv, path_list, boost::is_any_of( path_separator ), boost::token_compress_on);
vector<string>::iterator itr=spv.begin();
try {
for (; itr!= spv.end(); ++itr) {
}
}
} catch(bf::filesystem_error ) {
}
}
| static SearchPathStatus System::PathResolver::check_search_path |
( |
const std::string & |
search_path | ) |
|
|
static |
search_path the name of a path-like environment variable
- Returns
- the result of the verification. Can be one of
Ok, EnvironmentVariableUndefined, UnknownDirectory
| static std::string System::PathResolver::find_directory |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_path, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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
| string System::PathResolver::find_directory |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_path, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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 166 of file PathResolver.cpp.
{
std::string path_list;
}
| string System::PathResolver::find_directory_from_list |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_list, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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 179 of file PathResolver.cpp.
{
std::string result;
if (!PR_find (logical_file_name, search_list,
PR_directory, search_type, result))
{
result = "";
}
return (result);
}
| static std::string System::PathResolver::find_directory_from_list |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_list, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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
| static std::string System::PathResolver::find_file |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_path, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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
| string System::PathResolver::find_file |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_path, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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 127 of file PathResolver.cpp.
{
std::string path_list;
}
| std::string System::PathResolver::find_file_from_list |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_list, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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 140 of file PathResolver.cpp.
{
std::string result("");
return (result);
}
| static std::string System::PathResolver::find_file_from_list |
( |
const std::string & |
logical_file_name, |
|
|
const std::string & |
search_list, |
|
|
SearchType |
search_type = LocalSearch |
|
) |
| |
|
static |
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
The documentation for this class was generated from the following files: