10 class ModuleBeginJobSignalSentry {
12 ModuleBeginJobSignalSentry(
ActivityRegistry*
a, ModuleDescription& md):a_(a), md_(&md) {
13 if(a_) a_->preModuleBeginJobSignal_(*md_);
15 ~ModuleBeginJobSignalSentry() {
16 if(a_) a_->postModuleBeginJobSignal_(*md_);
20 ModuleDescription* md_;
23 class ModuleEndJobSignalSentry {
25 ModuleEndJobSignalSentry(
ActivityRegistry* a, ModuleDescription& md):a_(a), md_(&md) {
26 if(a_) a_->preModuleEndJobSignal_(*md_);
28 ~ModuleEndJobSignalSentry() {
29 if(a_) a_->postModuleEndJobSignal_(*md_);
33 ModuleDescription* md_;
38 iEx << iMD.moduleName() <<
"/" << iMD.moduleLabel() <<
"\n";
54 actions_(iWP.actions_),
75 ModuleBeginJobSignalSentry cpp(
actReg_.get(),
md_);
87 std::ostringstream ost;
97 ModuleEndJobSignalSentry cpp(
actReg_.get(),
md_);
109 std::ostringstream ost;
117 stopwatch_.reset(
new RunStopwatch::StopwatchPointer::element_type);
void pathFinished(EventPrincipal &)
void setEarlyDeleteHelper(EarlyDeleteHelper *iHelper)
boost::shared_ptr< ActivityRegistry > actReg_
void setActivityRegistry(boost::shared_ptr< ActivityRegistry > areg)
std::string const & moduleName() const
std::string const & moduleLabel() const
EarlyDeleteHelper * earlyDeleteHelper_
void stdToEDM(std::exception const &e)
virtual void implEndJob()=0
void moduleRan(EventPrincipal &)
void postDoEvent(EventPrincipal &)
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
virtual void implBeginJob()=0
void addContext(std::string const &context)
Worker(ModuleDescription const &iMD, WorkerParams const &iWP)
RunStopwatch::StopwatchPointer stopwatch_
void pathFinished(EventPrincipal &)