BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
PathResolver.cxx File Reference
#include "HltTools/PathResolver.h"
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <vector>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>

Go to the source code of this file.

Enumerations

enum  PR_file_type { PR_regular_file , PR_directory }
 
enum  PR_search_type { PR_local , PR_recursive }
 

Functions

PathResolver::SearchPathStatus PathResolverCheckSearchPath (const std::string &search_path)
 
std::string PathResolverFindDirectory (const std::string &logical_file_name, const std::string &search_path)
 
std::string PathResolverFindDirectoryFromList (const std::string &logical_file_name, const std::string &search_list)
 
std::string PathResolverFindFile (const std::string &logical_file_name, const std::string &search_path)
 
std::string PathResolverFindFileFromList (const std::string &logical_file_name, const std::string &search_list)
 
std::string PathResolverFindXMLFile (const std::string &logical_file_name)
 
std::string PathResolverFindDataFile (const std::string &logical_file_name)
 

Enumeration Type Documentation

◆ PR_file_type

Enumerator
PR_regular_file 
PR_directory 

Definition at line 22 of file PathResolver.cxx.

23 {
PR_file_type
@ PR_regular_file
@ PR_directory

◆ PR_search_type

Enumerator
PR_local 
PR_recursive 

Definition at line 28 of file PathResolver.cxx.

29 {
PR_search_type
@ PR_recursive
@ PR_local

Function Documentation

◆ PathResolverCheckSearchPath()

PathResolver::SearchPathStatus PathResolverCheckSearchPath ( const std::string &  search_path)

Definition at line 653 of file PathResolver.cxx.

654 {
655 return PathResolver::check_search_path (search_path);
656 }
static SearchPathStatus check_search_path(const std::string &search_path)

◆ PathResolverFindDataFile()

std::string PathResolverFindDataFile ( const std::string &  logical_file_name)

Definition at line 687 of file PathResolver.cxx.

688 {
689 return PathResolver::find_file (logical_file_name, "DATAPATH");
690 }
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)

◆ PathResolverFindDirectory()

std::string PathResolverFindDirectory ( const std::string &  logical_file_name,
const std::string &  search_path 
)

Definition at line 658 of file PathResolver.cxx.

660 {
661 return PathResolver::find_directory (logical_file_name, search_path);
662 }
static std::string find_directory(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)

Referenced by main().

◆ PathResolverFindDirectoryFromList()

std::string PathResolverFindDirectoryFromList ( const std::string &  logical_file_name,
const std::string &  search_list 
)

Definition at line 664 of file PathResolver.cxx.

666 {
667 return PathResolver::find_directory_from_list (logical_file_name, search_list);
668 }
static std::string find_directory_from_list(const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch)

◆ PathResolverFindFile()

std::string PathResolverFindFile ( const std::string &  logical_file_name,
const std::string &  search_path 
)

Definition at line 670 of file PathResolver.cxx.

672 {
673 return PathResolver::find_file (logical_file_name, search_path);
674 }

Referenced by main().

◆ PathResolverFindFileFromList()

std::string PathResolverFindFileFromList ( const std::string &  logical_file_name,
const std::string &  search_list 
)

Definition at line 676 of file PathResolver.cxx.

678 {
679 return PathResolver::find_file_from_list (logical_file_name, search_list);
680 }
static std::string find_file_from_list(const std::string &logical_file_name, const std::string &search_list, SearchType search_type=LocalSearch)

◆ PathResolverFindXMLFile()

std::string PathResolverFindXMLFile ( const std::string &  logical_file_name)

Definition at line 682 of file PathResolver.cxx.

683 {
684 return PathResolver::find_file (logical_file_name, "XMLPATH");
685 }