#include <ConsumesInfo.h>
Definition at line 88 of file ConsumesInfo.h.
art::ConsumesInfo::~ConsumesInfo |
( |
| ) |
|
|
default |
art::ConsumesInfo::ConsumesInfo |
( |
| ) |
|
|
private |
Definition at line 31 of file ConsumesInfo.cc.
36 switch (
pi.consumableType) {
41 result +=
"consumesView";
44 result +=
"consumesMany";
49 result +=
pi.typeID.className();
68 if (!
pi.process.name().empty()) {
70 result +=
pi.instance;
72 result +=
pi.process.name();
73 }
else if (!
pi.instance.empty()) {
75 result +=
pi.instance;
std::string const & BranchTypeToString(BranchType const bt)
void art::ConsumesInfo::collectConsumes |
( |
std::string const & |
module_label, |
|
|
consumables_t::mapped_type const & |
consumables |
|
) |
| |
Definition at line 99 of file ConsumesInfo.cc.
103 std::lock_guard sentry{
mutex_};
consumables_t::mapped_type const & consumables(std::string const &module_label) const
consumables_t consumables_
std::recursive_mutex mutex_
consumables_t::mapped_type const& art::ConsumesInfo::consumables |
( |
std::string const & |
module_label | ) |
const |
|
inline |
void art::ConsumesInfo::setRequireConsumes |
( |
bool const |
val | ) |
|
void art::ConsumesInfo::showMissingConsumes |
( |
| ) |
const |
Definition at line 131 of file ConsumesInfo.cc.
133 std::lock_guard sentry{
mutex_};
135 auto const& modLabel = modLabelAndarySetPI.first;
136 auto const& arySetPI = modLabelAndarySetPI.second;
141 <<
"The following consumes (or mayConsume) statements are missing " 143 <<
"module label: " << modLabel <<
'\n' 144 << rule(
'-') <<
'\n';
146 for (
auto const& setPI : arySetPI) {
147 for (
auto const&
pi : setPI) {
std::map< std::string const, std::array< std::set< ProductInfo >, NumBranchTypes > > missingConsumes_
std::recursive_mutex mutex_
static std::string assemble_consumes_statement(BranchType const, ProductInfo const &)
Definition at line 108 of file ConsumesInfo.cc.
113 std::lock_guard sentry{
mutex_};
121 "Consumer: an error occurred during validation of a " 122 "retrieved product\n\n")
123 <<
"The following consumes (or mayConsume) statement is missing from\n" std::map< std::string const, std::array< std::set< ProductInfo >, NumBranchTypes > > missingConsumes_
consumables_t consumables_
std::recursive_mutex mutex_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
bool binary_search_all(FwdCont const &, Datum const &)
static std::string assemble_consumes_statement(BranchType const, ProductInfo const &)
static std::string module_context(ModuleDescription const &)
std::atomic< bool > requireConsumes_
std::recursive_mutex art::ConsumesInfo::mutex_ {} |
|
mutableprivate |
std::atomic<bool> art::ConsumesInfo::requireConsumes_ |
|
private |
The documentation for this class was generated from the following files: