The Gaudi Framework  master (da3d77e1)
PathResolver.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef GAUDIKERNEL_PATHRESOLVER_H
12 #define GAUDIKERNEL_PATHRESOLVER_H
13 
14 #include <GaudiKernel/Kernel.h>
15 #include <string>
16 
17 namespace System {
18 
20 
21  {
22  public:
23  typedef enum { Ok, EnvironmentVariableUndefined, UnknownDirectory } SearchPathStatus;
24 
25  typedef enum { LocalSearch, RecursiveSearch } SearchType;
26 
36  static std::string find_file( const std::string& logical_file_name, const std::string& search_path,
37  SearchType search_type = LocalSearch );
38 
48  static std::string find_file_from_list( const std::string& logical_file_name, const std::string& search_list,
49  SearchType search_type = LocalSearch );
50 
60  static std::string find_directory( const std::string& logical_file_name, const std::string& search_path,
61  SearchType search_type = LocalSearch );
62 
72  static std::string find_directory_from_list( const std::string& logical_file_name, const std::string& search_list,
73  SearchType search_type = LocalSearch );
74 
82  static SearchPathStatus check_search_path( const std::string& search_path );
83  };
84 
85  GAUDI_API std::string PathResolverFindXMLFile( const std::string& logical_file_name );
86  GAUDI_API std::string PathResolverFindDataFile( const std::string& logical_file_name );
87 } // namespace System
88 
89 #endif
std::string
STL class.
System::PathResolverFindXMLFile
GAUDI_API std::string PathResolverFindXMLFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:193
System::PathResolverFindDataFile
GAUDI_API std::string PathResolverFindDataFile(const std::string &logical_file_name)
Definition: PathResolver.cpp:197
Kernel.h
System
Note: OS specific details for environment resolution.
Definition: Debugger.h:29
System::PathResolver
Definition: PathResolver.h:21
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81