10 #include <boost/algorithm/string.hpp> 16 bool useLFNasPFNifLFNnotFound)
17 : logicalFileNames_(fileNames),
18 fileNames_(fileNames),
19 fallbackFileNames_(fileNames.
size()),
22 overrideFileLocator_(),
23 fallbackFileLocator_(),
24 overrideFallbackFileLocator_() {
25 init(
override,
"", useLFNasPFNifLFNnotFound);
31 bool useLFNasPFNifLFNnotFound)
40 init(
override, overrideFallback, useLFNasPFNifLFNnotFound);
47 bool useLFNasPFNifLFNnotFound) {
49 typedef std::vector<std::string>::iterator iter;
59 <<
"An empty string specified in the fileNames parameter for input source.\n";
62 if (it->back() ==
':') {
64 <<
"An empty physical file name specified in the fileNames parameter for input source.\n";
74 std::make_unique<FileLocator>(inputOverride,
false);
79 std::make_unique<FileLocator>(
"",
true);
86 std::make_unique<FileLocator>(inputOverrideFallback,
true);
89 findFile(*it, *ft, *lt, useLFNasPFNifLFNnotFound);
98 bool useLFNasPFNifLFNnotFound) {
107 if (pfn.empty() && useLFNasPFNifLFNnotFound) {
static void trim(std::string &s)