BOSS 7.0.6
BESIII Offline Software System
|
#include <PathResolver.h>
Public Types | |
enum | SearchPathStatus { Ok , EnvironmentVariableUndefined , UnknownDirectory } |
enum | SearchType { LocalSearch , RecursiveSearch } |
Static Public Member Functions | |
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 6 of file PathResolver.h.
Enumerator | |
---|---|
Ok | |
EnvironmentVariableUndefined | |
UnknownDirectory |
Definition at line 9 of file PathResolver.h.
Enumerator | |
---|---|
LocalSearch | |
RecursiveSearch |
Definition at line 16 of file PathResolver.h.
|
static |
search_path
the name of a path-like environment variableOk
, EnvironmentVariableUndefined
, UnknownDirectory
Definition at line 600 of file PathResolver.cxx.
Referenced by PathResolverCheckSearchPath().
|
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 RecursiveSearchDefinition at line 570 of file PathResolver.cxx.
Referenced by PathResolverFindDirectory().
|
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 RecursiveSearchDefinition at line 586 of file PathResolver.cxx.
Referenced by find_directory(), and PathResolverFindDirectoryFromList().
|
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
Definition at line 540 of file PathResolver.cxx.
Referenced by main(), PathResolverFindDataFile(), PathResolverFindFile(), and PathResolverFindXMLFile().
|
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
Definition at line 556 of file PathResolver.cxx.
Referenced by find_file(), and PathResolverFindFileFromList().