1 #ifndef artdaq_core_Utilities_SimpleLookupPolicy_h
2 #define artdaq_core_Utilities_SimpleLookupPolicy_h
5 #include "cetlib/filepath_maker.h"
6 #include "cetlib/search_path.h"
9 class SimpleLookupPolicy;
51 std::string
operator()(std::string
const& filename)
override;
62 std::unique_ptr<cet::search_path> cwdPath_;
66 std::unique_ptr<cet::search_path> fallbackPaths_;
SimpleLookupPolicy(std::string const &paths, ArgType argType=ArgType::ENV_VAR)
Constructor.
Constructor argument is a list of directories.
virtual ~SimpleLookupPolicy() noexcept
Default destructor.
ArgType
Flag if the constructor argument is a list of paths or the name of an environment variable...
This class is intended to find files using a set lookup order.
std::string operator()(std::string const &filename) override
Perform the file lookup.
Constructor argument is environment variable name.