#include <filepath_maker.h>
|
static constexpr auto | none () noexcept |
|
static constexpr auto | all () noexcept |
|
static constexpr auto | nonabsolute () noexcept |
|
static constexpr auto | after1 () noexcept |
|
static constexpr auto | permissive () noexcept |
|
Definition at line 111 of file filepath_maker.h.
static constexpr auto cet::lookup_policy_selector::after1 |
( |
| ) |
|
|
inlinestaticprivatenoexcept |
static constexpr auto cet::lookup_policy_selector::all |
( |
| ) |
|
|
inlinestaticprivatenoexcept |
std::string cet::lookup_policy_selector::help_message |
( |
| ) |
const |
Definition at line 143 of file filepath_maker.cc.
146 std::map<std::string, std::vector<std::string>> policies;
150 std::vector{
"Lookup is performed for all files presented to the filepath-"s,
154 std::vector{
"Lookup is performed only for files that are not absolute--"s,
155 "i.e. file names not beginning with the '/' character."s});
158 std::vector{
"No lookup for the first file, and only lookup is performed"s,
159 "for all subsequent files."s});
163 "The first file can be an absolute path, a path relative to '.',"s,
164 "or a path that can be looked up; all subsequent files must be"s,
165 "looked up. This is the policy used by the art framework; it is"s,
166 "sometimes referred to as the first-absolute-or-lookup-with-dot"s,
static constexpr auto all() noexcept
static constexpr auto none() noexcept
static constexpr auto nonabsolute() noexcept
static constexpr auto permissive() noexcept
void line(double t, double *p, double &x, double &y, double &z)
static constexpr auto after1() noexcept
static constexpr auto cet::lookup_policy_selector::nonabsolute |
( |
| ) |
|
|
inlinestaticprivatenoexcept |
static constexpr auto cet::lookup_policy_selector::none |
( |
| ) |
|
|
inlinestaticprivatenoexcept |
static constexpr auto cet::lookup_policy_selector::permissive |
( |
| ) |
|
|
inlinestaticprivatenoexcept |
Definition at line 108 of file filepath_maker.cc.
111 if (policy ==
none()) {
112 return std::make_unique<filepath_maker>();
115 if (policy ==
all()) {
116 return std::make_unique<filepath_lookup>(
move(env_or_paths));
120 return std::make_unique<filepath_lookup_nonabsolute>(
move(env_or_paths));
124 return std::make_unique<filepath_lookup_after1>(
move(env_or_paths));
129 if (
empty(search_paths)) {
132 search_paths = env_or_paths;
134 return std::make_unique<filepath_first_absolute_or_lookup_with_dot>(
139 <<
"An unsupported file-lookup policy was selected.";
static constexpr auto all() noexcept
static constexpr auto none() noexcept
std::string getenv(std::string const &name)
static constexpr auto nonabsolute() noexcept
static constexpr auto permissive() noexcept
cet::coded_exception< error, detail::translate > exception
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
static constexpr auto after1() noexcept
The documentation for this class was generated from the following files: