Definition at line 106 of file FileCatalogMetadata.h.
art::FileCatalogMetadata::InheritedMetadata::InheritedMetadata |
( |
std::vector< std::string > const & |
sortedMdToInherit, |
|
|
collection_type const & |
coll |
|
) |
| |
|
inline |
Definition at line 108 of file FileCatalogMetadata.h.
111 NewToOld
const translator;
112 for (
auto const& pr : coll) {
113 if (cet::search_all(sortedMdToInherit, translator(pr.first))) {
void art::FileCatalogMetadata::InheritedMetadata::check_values |
( |
collection_type const & |
fromInput | ) |
const |
|
inline |
Definition at line 127 of file FileCatalogMetadata.h.
References art::errors::LogicError, and art::errors::MismatchedInputFiles.
129 for (
auto const& pr : fromInput) {
133 <<
"Metadata key " << pr.first
134 <<
" missing from list of metadata to inherit from input files.\n";
135 }
else if (it->second != pr.second) {
137 <<
"The value for '" << pr.first
138 <<
"' for the current file is: " << pr.second
139 <<
", which conflicts with the value from the first input file (\"" 140 << it->second <<
"\").\n";
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
auto const& art::FileCatalogMetadata::InheritedMetadata::entries |
( |
| ) |
const |
|
inline |
std::unordered_map<std::string, std::string> art::FileCatalogMetadata::InheritedMetadata::inputmd_ |
|
private |
The documentation for this class was generated from the following file: