19 assert(
actReg_.get() !=
nullptr);
29 e <<
"A cet::exception is going through " <<
workerType() <<
":\n" 33 catch (std::bad_alloc&
e) {
44 <<
"A std::exception is going through " <<
workerType() <<
":\n" 47 catch (std::string&
s) {
48 LogError(
"BeginJob") <<
"module caught an std::string during beginJob\n";
51 <<
"std::string = " <<
s <<
"\n" 54 catch (
char const* c) {
55 LogError(
"BeginJob") <<
"module caught an const char* during beginJob\n";
61 LogError(
"BeginJob") <<
"An unknown Exception occurred in\n" 69 assert(
actReg_.get() !=
nullptr);
79 e <<
"A cet::exception is going through " <<
workerType() <<
":\n" 83 catch (std::bad_alloc&
e) {
94 <<
"A std::exception is going through " <<
workerType() <<
":\n" 98 catch (std::string&
s) {
99 LogError(
"EndJob") <<
"module caught an std::string during endJob\n";
102 <<
"std::string = " <<
s <<
"\n" 105 catch (
char const* c) {
106 LogError(
"EndJob") <<
"module caught an const char* during endJob\n";
112 LogError(
"EndJob") <<
"An unknown Exception occurred in\n" 121 assert(
actReg_.get() !=
nullptr);
122 actReg_->sPreModuleRespondToOpenInputFile.invoke(
md_);
124 actReg_->sPostModuleRespondToOpenInputFile.invoke(
md_);
130 assert(
actReg_.get() !=
nullptr);
131 actReg_->sPreModuleRespondToCloseInputFile.invoke(
md_);
133 actReg_->sPostModuleRespondToCloseInputFile.invoke(
md_);
139 assert(
actReg_.get() !=
nullptr);
140 actReg_->sPreModuleRespondToOpenOutputFiles.invoke(
md_);
142 actReg_->sPostModuleRespondToOpenOutputFiles.invoke(
md_);
148 assert(
actReg_.get() !=
nullptr);
149 actReg_->sPreModuleRespondToCloseOutputFiles.invoke(
md_);
151 actReg_->sPostModuleRespondToCloseOutputFiles.invoke(
md_);
void setActivityRegistry(cet::exempt_ptr< ActivityRegistry > areg)
void respondToOpenOutputFiles(FileBlock const &fb)
void respondToCloseOutputFiles(FileBlock const &fb)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
ActionTable const & actions_
virtual void implRespondToOpenInputFile(FileBlock const &fb)=0
virtual void implBeginJob()=0
virtual void implRespondToCloseOutputFiles(FileBlock const &fb)=0
cet::exempt_ptr< ActivityRegistry > actReg_
virtual std::string workerType() const =0
ModuleDescription const & description() const
void respondToOpenInputFile(FileBlock const &fb)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
virtual void implRespondToCloseInputFile(FileBlock const &fb)=0
Worker(ModuleDescription const &iMD, WorkerParams const &iWP)
virtual void implEndJob()=0
void respondToCloseInputFile(FileBlock const &fb)
virtual void implRespondToOpenOutputFiles(FileBlock const &fb)=0
cet::coded_exception< error, detail::translate > exception