The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
PathResolver.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13#include <GaudiKernel/Kernel.h>
14#include <string>
15
16namespace System {
17
19
20 {
21 public:
22 typedef enum { Ok, EnvironmentVariableUndefined, UnknownDirectory } SearchPathStatus;
23
24 typedef enum { LocalSearch, RecursiveSearch } SearchType;
25
35 static std::string find_file( const std::string& logical_file_name, const std::string& search_path,
36 SearchType search_type = LocalSearch );
37
47 static std::string find_file_from_list( const std::string& logical_file_name, const std::string& search_list,
48 SearchType search_type = LocalSearch );
49
59 static std::string find_directory( const std::string& logical_file_name, const std::string& search_path,
60 SearchType search_type = LocalSearch );
61
71 static std::string find_directory_from_list( const std::string& logical_file_name, const std::string& search_list,
72 SearchType search_type = LocalSearch );
73
81 static SearchPathStatus check_search_path( const std::string& search_path );
82 };
83
84 GAUDI_API std::string PathResolverFindXMLFile( const std::string& logical_file_name );
85 GAUDI_API std::string PathResolverFindDataFile( const std::string& logical_file_name );
86} // namespace System
#define GAUDI_API
Definition Kernel.h:49
Note: OS specific details for environment resolution.
Definition Environment.h:25
GAUDI_API std::string PathResolverFindXMLFile(const std::string &logical_file_name)
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)