/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Framework/interface/ComponentConstructionSentry.h
40 строк
1 KB
Chris Jones
Constructing an ES module no longer depends on EventSetupProvider
08 июл 2026, 17:47
08 июл 2026, 17:47
a062af5
Код
Авторство
О чём код?
#ifndef FWCore_Framework_ComponentConstructionSentry_h #define FWCore_Framework_ComponentConstructionSentry_h // // Package: Framework // Class : ComponentConstructionSentry // /**\class edm::eventsetup::ComponentConstructionSentry Description: Used to send ActivityRegistry signals before and after the construction of an EventSetup component (ESSource or ESProducer) Usage: <usage> */ // // Author: Chris Jones // Created: Wed May 25 16:56:05 EDT 2005 // namespace edm { namespace eventsetup { class ComponentInterfaceHolder; struct ComponentDescription; struct ComponentConstructionSentry { ComponentConstructionSentry(ComponentInterfaceHolder const& iInterfaceHolder, ComponentDescription const& iDescription); ~ComponentConstructionSentry() noexcept(false); //call if the construction call succeeded without throwing an exception. void succeeded() { succeeded_ = true; } private: ComponentInterfaceHolder const& interfaceHolder_; ComponentDescription const& description_; bool succeeded_ = false; }; } // namespace eventsetup } // namespace edm #endif