16 #define ON_DEBUG if ( msgLevel( MSG::DEBUG ) ) 17 #define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) ) 47 fatal() <<
"in sysInitialize(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
51 fatal() <<
"in sysInitialize(): standard std::exception is caught" <<
endmsg;
55 fatal() <<
"in sysInitialize(): UNKNOWN Exception is caught" <<
endmsg;
84 fatal() <<
"in sysStart(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
88 fatal() <<
"in sysStart(): standard std::exception is caught" <<
endmsg;
92 fatal() <<
"in sysStart(): UNKNOWN Exception is caught" <<
endmsg;
113 fatal() <<
"in sysStop(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
117 fatal() <<
"in sysStop(): standard std::exception is caught" <<
endmsg;
121 fatal() <<
"in sysStop(): UNKNOWN Exception is caught" <<
endmsg;
156 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
160 fatal() <<
" Standard std::exception is caught " <<
endmsg;
164 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
187 error() <<
"sysReinitialize(): cannot reinitialize service not initialized" <<
endmsg;
200 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
204 fatal() <<
" Standard std::exception is caught " <<
endmsg;
208 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
222 error() <<
"sysRestart(): cannot restart service in state " <<
FSMState() <<
" -- must be RUNNING " <<
endmsg;
234 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
238 fatal() <<
" Standard std::exception is caught " <<
endmsg;
242 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
276 error() <<
"restart(): cannot be stopped" <<
endmsg;
281 error() <<
"restart(): cannot be started" <<
endmsg;
296 const bool CREATEIF(
true );
303 if (
name() !=
"MessageSvc" ) {
309 return jos->setMyProperties(
name(),
this );
316 if (
m_name !=
"MessageSvc" ) {
324 if (
appMgr &&
appMgr->hasProperty(
"AuditServices" ) ) {
Gaudi::Property< int > m_outputLevel
constexpr static const auto FAILURE
Gaudi::StateMachine::State m_targetState
Service state.
StatusCode initialize() override
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
const std::string & name() const override
Retrieve name of the service.
Gaudi::StateMachine::State m_state
Service state.
Gaudi::Property< bool > m_auditorInitialize
SmartIF< IAuditorSvc > m_pAuditorSvc
Auditor Service.
StatusCode finalize() override
Implementation of property with value of concrete type.
SmartIF< IAuditorSvc > & auditorSvc() const
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
StatusCode start() override
The ISvcManager is the interface implemented by the Service Factory in the Application Manager to sup...
StatusCode sysRestart() override
Re-initialize the Service.
StatusCode sysStart() override
Initialize Service.
SmartIF< ISvcLocator > m_svcLocator
Service Locator reference.
Gaudi::Property< bool > m_auditInit
Gaudi::Property< bool > m_auditorRestart
std::string m_name
Service Name.
Gaudi::Property< bool > m_auditorReinitialize
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
StatusCode sysStop() override
Initialize Service.
Main interface for the JobOptions service.
void updateMsgStreamOutputLevel(int level)
Update the output level of the cached MsgStream.
~Service() override
Standard Destructor.
This class is used for returning status codes from appropriate routines.
MSG::Level setUpMessaging() const
Set up local caches.
Gaudi::Property< bool > m_auditorFinalize
virtual const std::string & tag() const
name tag for the exception, or exception type
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
StatusCode reinitialize() override
StatusCode stop() override
std::once_flag m_initFlag
StatusCode sysFinalize() override
Finalize Service.
StatusCode setProperties()
Method for setting declared properties to the values specified for the job.
constexpr static const auto SUCCESS
StatusCode sysReinitialize() override
Re-initialize the Service.
State GAUDI_API ChangeState(const Transition transition, const State state)
Function to get the new state according to the required transition, checking if the transition is all...
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
const StatusCode & ignore() const
Ignore/check StatusCode.
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor.
Gaudi::StateMachine::State FSMState() const override
Gaudi::Property< bool > m_auditorStart
bool assign(const Details::PropertyBase &source) override
get the value from another property
SmartIF< ISvcManager > m_svcManager
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
void setServiceManager(ISvcManager *ism) override
The IProperty is the basic interface for all components which have properties that can be set or get...
It is a simple guard, which "locks" the scope for the Auditor Service is am exception-safe way...
StatusCode restart() override
virtual StatusCode removeService(IService *svc)=0
Remove a service from the "active" list of services of the factory.
Gaudi::Property< bool > m_auditorStop
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode sysInitialize() override
Initialize Service.