Base class for all services.
More...
#include </scratch/z5/marcocle/lhcb-release/419/GAUDI/GAUDI_v26r1/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Service.h>
Inherits CommonMessaging< implements3< IService, IProperty, IStateful > >, and CommonMessaging< implements3< IService, IProperty, IStateful > >.
Inherited by extends1< Service, Gaudi::ISignalMonitor >, extends1< Service, Gaudi::ISignalMonitor >, extends1< Service, IAuditorSvc >, extends1< Service, IAuditorSvc >, extends1< Service, ICounterSvc >, extends1< Service, ICounterSvc >, extends1< Service, IEventProcessor >, extends1< Service, IEventProcessor >, extends1< Service, IEvtSelector >, extends1< Service, IEvtSelector >, extends1< Service, IExceptionSvc >, extends1< Service, IExceptionSvc >, extends1< Service, IFileAccess >, extends1< Service, IFileAccess >, extends1< Service, IGslSvc >, extends1< Service, IGslSvc >, extends1< Service, IIncidentListener >, extends1< Service, IIncidentListener >, extends1< Service, IIncidentSvc >, extends1< Service, IIncidentSvc >, extends1< Service, IIODataManager >, extends1< Service, IIODataManager >, extends1< Service, IIssueLogger >, extends1< Service, IIssueLogger >, extends1< Service, IParticlePropertySvc >, extends1< Service, IParticlePropertySvc >, extends1< Service, IPartPropSvc >, extends1< Service, IPartPropSvc >, extends1< Service, IRunable >, extends1< Service, IRunable >, extends1< Service, IStatusCodeSvc >, extends1< Service, IStatusCodeSvc >, extends1< Service, IToolSvc >, extends1< Service, IToolSvc >, extends2< Service, IAlgContextSvc, IIncidentListener >, extends2< Service, IAlgContextSvc, IIncidentListener >, extends2< Service, IChronoStatSvc, IIncidentListener >, extends2< Service, IChronoStatSvc, IIncidentListener >, extends2< Service, IConversionSvc, IAddressCreator >, extends2< Service, IConversionSvc, IAddressCreator >, extends2< Service, IDataProviderSvc, IDataManagerSvc >, extends2< Service, IDataProviderSvc, IDataManagerSvc >, extends2< Service, IFileCatalog, IFileCatalogMgr >, extends2< Service, IFileCatalog, IFileCatalogMgr >, extends2< Service, IFileMgr, IIncidentListener >, extends2< Service, IFileMgr, IIncidentListener >, extends2< Service, IHistorySvc, IIncidentListener >, extends2< Service, IHistorySvc, IIncidentListener >, extends2< Service, IIoComponentMgr, IIncidentListener >, extends2< Service, IIoComponentMgr, IIncidentListener >, extends2< Service, IMessageSvc, IInactiveMessageCounter >, extends2< Service, IMessageSvc, IInactiveMessageCounter >, extends2< Service, IProperty, IJobOptionsSvc >, extends2< Service, IProperty, IJobOptionsSvc >, extends3< Service, IConversionSvc, IPersistencySvc, IAddressCreator >, extends3< Service, IConversionSvc, IPersistencySvc, IAddressCreator >, extends3< Service, IDataProviderSvc, IDataManagerSvc, IPartitionControl >, extends3< Service, IDataProviderSvc, IDataManagerSvc, IPartitionControl >, extends3< Service, IRndmEngine, ISerialize, IIncidentListener >, extends3< Service, IRndmEngine, ISerialize, IIncidentListener >, extends3< Service, IRndmGenSvc, IRndmEngine, ISerialize >, extends3< Service, IRndmGenSvc, IRndmEngine, ISerialize >, extends3< Service, ITHistSvc, IIncidentListener, IIoComponent >, extends3< Service, ITHistSvc, IIncidentListener, IIoComponent >, Gaudi::RootPerfMonSvc, and Gaudi::RootPerfMonSvc.
|
typedef
Gaudi::PluginService::Factory
< IService *, const
std::string &, ISvcLocator * > | Factory |
| |
typedef
Gaudi::PluginService::Factory
< IService *, const
std::string &, ISvcLocator * > | Factory |
| |
| typedef CommonMessaging | base_class |
| |
| typedef CommonMessaging | base_class |
| |
| typedef implements3 | base_class |
| | Typedef to this class.
|
| |
| typedef implements3 | base_class |
| | Typedef to this class.
|
| |
typedef extend_interfaces3
< IService, IProperty,
IStateful > | extend_interfaces_base |
| | Typedef to the base of this class.
|
| |
typedef extend_interfaces3
< IService, IProperty,
IStateful > | extend_interfaces_base |
| | Typedef to the base of this class.
|
| |
typedef
extend_interfaces_base::ext_iids | interfaces |
| | MPL set of all the implemented interfaces.
|
| |
typedef
extend_interfaces_base::ext_iids | interfaces |
| | MPL set of all the implemented interfaces.
|
| |
typedef mpl::fold< typename
I1::iid::iids::type, typename
mpl::fold< typename
I2::iid::iids::type, typename
I3::iid::iids::type,
mpl::insert< mpl::_1, mpl::_2 >
>::type, mpl::insert< mpl::_1,
mpl::_2 > >::type | ext_iids |
| | MPL set of interfaces extended by this one.
|
| |
typedef mpl::fold< typename
I1::iid::iids::type, typename
mpl::fold< typename
I2::iid::iids::type, typename
I3::iid::iids::type,
mpl::insert< mpl::_1, mpl::_2 >
>::type, mpl::insert< mpl::_1,
mpl::_2 > >::type | ext_iids |
| | MPL set of interfaces extended by this one.
|
| |
|
| virtual unsigned long | release () |
| | Release Interface instance.
|
| |
| virtual const std::string & | name () const |
| | Retrieve name of the service.
|
| |
| virtual StatusCode | configure () |
| |
| virtual StatusCode | initialize () |
| |
| virtual StatusCode | start () |
| |
| virtual StatusCode | stop () |
| |
| virtual StatusCode | finalize () |
| |
| virtual StatusCode | terminate () |
| |
| virtual Gaudi::StateMachine::State | FSMState () const |
| |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| |
| virtual StatusCode | reinitialize () |
| |
| virtual StatusCode | restart () |
| |
| virtual StatusCode | sysInitialize () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysStart () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysStop () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysFinalize () |
| | Finalize Service.
|
| |
| virtual StatusCode | sysReinitialize () |
| | Re-initialize the Service.
|
| |
| virtual StatusCode | sysRestart () |
| | Re-initialize the Service.
|
| |
| virtual StatusCode | setProperty (const Property &p) |
| |
| virtual StatusCode | setProperty (const std::string &s) |
| |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| |
| virtual StatusCode | getProperty (Property *p) const |
| |
| virtual const Property & | getProperty (const std::string &name) const |
| |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| |
virtual const std::vector
< Property * > & | getProperties () const |
| |
| template<class TYPE > |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| | set the property form the value
|
| |
| | Service (const std::string &name, ISvcLocator *svcloc) |
| | Standard Constructor.
|
| |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| | Retrieve pointer to service locator.
|
| |
| StatusCode | setProperties () |
| | Method for setting declared properties to the values specified for the job.
|
| |
| template<class T > |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| | Access a service by name, creating it if it doesn't already exist.
|
| |
| template<class T > |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| |
| template<class T > |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| | Access a service by name and type, creating it if it doesn't already exist.
|
| |
| template<class T > |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| | Declare the named property.
|
| |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| | Declare remote named properties.
|
| |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| | The standard auditor service.May not be invoked before sysInitialize() has been invoked.
|
| |
| virtual unsigned long | release () |
| | Release Interface instance.
|
| |
| virtual const std::string & | name () const |
| | Retrieve name of the service.
|
| |
| virtual StatusCode | configure () |
| |
| virtual StatusCode | initialize () |
| |
| virtual StatusCode | start () |
| |
| virtual StatusCode | stop () |
| |
| virtual StatusCode | finalize () |
| |
| virtual StatusCode | terminate () |
| |
| virtual Gaudi::StateMachine::State | FSMState () const |
| |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| |
| virtual StatusCode | reinitialize () |
| |
| virtual StatusCode | restart () |
| |
| virtual StatusCode | sysInitialize () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysStart () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysStop () |
| | Initialize Service.
|
| |
| virtual StatusCode | sysFinalize () |
| | Finalize Service.
|
| |
| virtual StatusCode | sysReinitialize () |
| | Re-initialize the Service.
|
| |
| virtual StatusCode | sysRestart () |
| | Re-initialize the Service.
|
| |
| virtual StatusCode | setProperty (const Property &p) |
| |
| virtual StatusCode | setProperty (const std::string &s) |
| |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| |
| virtual StatusCode | getProperty (Property *p) const |
| |
| virtual const Property & | getProperty (const std::string &name) const |
| |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| |
virtual const std::vector
< Property * > & | getProperties () const |
| |
| template<class TYPE > |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| | set the property form the value
|
| |
| | Service (const std::string &name, ISvcLocator *svcloc) |
| | Standard Constructor.
|
| |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| | Retrieve pointer to service locator.
|
| |
| StatusCode | setProperties () |
| | Method for setting declared properties to the values specified for the job.
|
| |
| template<class T > |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| | Access a service by name, creating it if it doesn't already exist.
|
| |
| template<class T > |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| |
| template<class T > |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| | Access a service by name and type, creating it if it doesn't already exist.
|
| |
| template<class T > |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| | Declare the named property.
|
| |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| | Declare remote named properties.
|
| |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| | The standard auditor service.May not be invoked before sysInitialize() has been invoked.
|
| |
| | CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) |
| | Templated constructor with 3 arguments.
|
| |
| | CommonMessaging (const A1 &a1, const A2 &a2) |
| | Templated constructor with 2 arguments.
|
| |
| | CommonMessaging (const A1 &a1) |
| | Templated constructor with 1 argument.
|
| |
| | CommonMessaging () |
| | Default constructor.
|
| |
| | CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) |
| | Templated constructor with 3 arguments.
|
| |
| | CommonMessaging (const A1 &a1, const A2 &a2) |
| | Templated constructor with 2 arguments.
|
| |
| | CommonMessaging (const A1 &a1) |
| | Templated constructor with 1 argument.
|
| |
| | CommonMessaging () |
| | Default constructor.
|
| |
| virtual | ~CommonMessaging () |
| | Virtual destructor.
|
| |
| virtual | ~CommonMessaging () |
| | Virtual destructor.
|
| |
| SmartIF< IMessageSvc > & | msgSvc () const |
| | The standard message service.
|
| |
| SmartIF< IMessageSvc > & | msgSvc () const |
| | The standard message service.
|
| |
| MsgStream & | msgStream () const |
| | Return an uninitialized MsgStream.
|
| |
| MsgStream & | msgStream (const MSG::Level level) const |
| | Predefined configurable message stream for the efficient printouts.
|
| |
| MsgStream & | msgStream () const |
| | Return an uninitialized MsgStream.
|
| |
| MsgStream & | msgStream (const MSG::Level level) const |
| | Predefined configurable message stream for the efficient printouts.
|
| |
| MsgStream & | always () const |
| | shortcut for the method msgStream(MSG::ALWAYS)
|
| |
| MsgStream & | always () const |
| | shortcut for the method msgStream(MSG::ALWAYS)
|
| |
| MsgStream & | fatal () const |
| | shortcut for the method msgStream(MSG::FATAL)
|
| |
| MsgStream & | fatal () const |
| | shortcut for the method msgStream(MSG::FATAL)
|
| |
| MsgStream & | err () const |
| | shortcut for the method msgStream(MSG::ERROR)
|
| |
| MsgStream & | err () const |
| | shortcut for the method msgStream(MSG::ERROR)
|
| |
| MsgStream & | error () const |
| | shortcut for the method msgStream(MSG::ERROR)
|
| |
| MsgStream & | error () const |
| | shortcut for the method msgStream(MSG::ERROR)
|
| |
| MsgStream & | warning () const |
| | shortcut for the method msgStream(MSG::WARNING)
|
| |
| MsgStream & | warning () const |
| | shortcut for the method msgStream(MSG::WARNING)
|
| |
| MsgStream & | info () const |
| | shortcut for the method msgStream(MSG::INFO)
|
| |
| MsgStream & | info () const |
| | shortcut for the method msgStream(MSG::INFO)
|
| |
| MsgStream & | debug () const |
| | shortcut for the method msgStream(MSG::DEBUG)
|
| |
| MsgStream & | debug () const |
| | shortcut for the method msgStream(MSG::DEBUG)
|
| |
| MsgStream & | verbose () const |
| | shortcut for the method msgStream(MSG::VERBOSE)
|
| |
| MsgStream & | verbose () const |
| | shortcut for the method msgStream(MSG::VERBOSE)
|
| |
| MsgStream & | msg () const |
| | shortcut for the method msgStream(MSG::INFO)
|
| |
| MsgStream & | msg () const |
| | shortcut for the method msgStream(MSG::INFO)
|
| |
| MSG::Level | msgLevel () const |
| | get the output level from the embedded MsgStream
|
| |
| bool | msgLevel (MSG::Level lvl) const |
| | get the output level from the embedded MsgStream
|
| |
| MSG::Level | msgLevel () const |
| | get the output level from the embedded MsgStream
|
| |
| bool | msgLevel (MSG::Level lvl) const |
| | get the output level from the embedded MsgStream
|
| |
Base class for all services.
It implements the IService and IProperty interfaces.
- Author
- Pere Mato
-
Marco Clemencic
Definition at line 33 of file Service.h.
| Service::Service |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
Standard Constructor.
Definition at line 393 of file Service.cpp.
{
if ( (
name !=
"MessageSvc") &&
msgSvc().isValid() ) {
}
bool audit(false);
if (
m_name !=
"IncidentSvc") {
} else {
audit = false;
}
}
}
| Service::Service |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
| virtual Service::~Service |
( |
| ) |
|
|
protectedvirtual |
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
template<class T >
| Property* Service::declareProperty |
( |
const std::string & |
name, |
|
|
T & |
property, |
|
|
const std::string & |
doc = "none" |
|
) |
| const |
|
inline |
Declare the named property.
MySvc (
const std::string&
name ,
, m_property1 ( ... )
, m_property2 ( ... )
{
-> declareUpdateHandler( &MySvc::handler_2 ) ;
}
- See Also
- PropertyMgr
-
PropertyMgr::declareProperty
- Parameters
-
| name | the property name |
| property | the property itself, |
| doc | the documentation string |
- Returns
- the actual property objects
Definition at line 211 of file Service.h.
template<class T >
| Property* Service::declareProperty |
( |
const std::string & |
name, |
|
|
T & |
property, |
|
|
const std::string & |
doc = "none" |
|
) |
| const |
|
inline |
Declare the named property.
MySvc (
const std::string&
name ,
, m_property1 ( ... )
, m_property2 ( ... )
{
-> declareUpdateHandler( &MySvc::handler_2 ) ;
}
- See Also
- PropertyMgr
-
PropertyMgr::declareProperty
- Parameters
-
| name | the property name |
| property | the property itself, |
| doc | the documentation string |
- Returns
- the actual property objects
Definition at line 211 of file Service.h.
| Property* Service::declareRemoteProperty |
( |
const std::string & |
name, |
|
|
IProperty * |
rsvc, |
|
|
const std::string & |
rname = "" |
|
) |
| const |
|
inline |
Declare remote named properties.
This is used to declare as a local property a property of another services or algorithm. The only needed information is IProperty interface of the remote service and the its property name if different of the current one.
- Parameters
-
| name | Local property name |
| rsvc | Remote IProperty interface |
| rname | Name of the property at remote service |
Definition at line 227 of file Service.h.
| Property* Service::declareRemoteProperty |
( |
const std::string & |
name, |
|
|
IProperty * |
rsvc, |
|
|
const std::string & |
rname = "" |
|
) |
| const |
|
inline |
Declare remote named properties.
This is used to declare as a local property a property of another services or algorithm. The only needed information is IProperty interface of the remote service and the its property name if different of the current one.
- Parameters
-
| name | Local property name |
| rsvc | Remote IProperty interface |
| rname | Name of the property at remote service |
Definition at line 227 of file Service.h.
Reimplemented in MultiStoreSvc, Gaudi::Utils::StopSignalHandler, DataSvc, DataSvc, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, MinimalEventLoopMgr, MinimalEventLoopMgr, Gaudi::IODataManager, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, CounterSvc, RndmEngine, IncidentSvc, HistogramPersistencySvc, Gaudi::RootEvtSelector, Gaudi::RootEvtSelector, StalledEventMonitor, AppMgrRunable, IoComponentMgr, MessageSvc, HistorySvc, AlgContextSvc, ChronoStatSvc, NTupleSvc, EvtPersistencySvc, DetDataSvc, ExceptionSvc, HepRndm::Engine< TYPE >, FileMgr, ToolSvc, JobOptionsSvc, TagCollectionSvc, AuditorSvc, THistSvc, RecordDataSvc, VFSSvc, PartPropSvc, PythonScriptingSvc, RootHistCnv::PersSvc, IssueLogger, EvtDataSvc, StatusCodeSvc, and DetPersistencySvc.
Reimplemented in MultiStoreSvc, Gaudi::Utils::StopSignalHandler, DataSvc, DataSvc, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, MinimalEventLoopMgr, MinimalEventLoopMgr, Gaudi::IODataManager, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, CounterSvc, RndmEngine, IncidentSvc, HistogramPersistencySvc, Gaudi::RootEvtSelector, Gaudi::RootEvtSelector, StalledEventMonitor, AppMgrRunable, IoComponentMgr, MessageSvc, HistorySvc, AlgContextSvc, ChronoStatSvc, NTupleSvc, EvtPersistencySvc, DetDataSvc, ExceptionSvc, HepRndm::Engine< TYPE >, FileMgr, ToolSvc, JobOptionsSvc, TagCollectionSvc, AuditorSvc, THistSvc, RecordDataSvc, VFSSvc, PartPropSvc, PythonScriptingSvc, RootHistCnv::PersSvc, IssueLogger, EvtDataSvc, StatusCodeSvc, and DetPersistencySvc.
Definition at line 199 of file Service.cpp.
| const std::vector< Property * > & Service::getProperties |
( |
| ) |
const |
|
virtual |
| virtual const std::vector<Property*>& Service::getProperties |
( |
| ) |
const |
|
virtual |
| const Property & Service::getProperty |
( |
const std::string & |
name | ) |
const |
|
virtual |
| virtual const Property& Service::getProperty |
( |
const std::string & |
name | ) |
const |
|
virtual |
| StatusCode Service::getProperty |
( |
const std::string & |
n, |
|
|
std::string & |
v |
|
) |
| const |
|
virtual |
| virtual StatusCode Service::getProperty |
( |
const std::string & |
n, |
|
|
std::string & |
v |
|
) |
| const |
|
virtual |
Reimplemented in MultiStoreSvc, DataSvc, DataSvc, Gaudi::Utils::StopSignalHandler, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, Gaudi::IODataManager, MinimalEventLoopMgr, MinimalEventLoopMgr, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, IncidentSvc, RndmEngine, HistogramPersistencySvc, Gaudi::RootEvtSelector, Gaudi::RootEvtSelector, IoComponentMgr, MessageSvc, HistorySvc, AlgContextSvc, ChronoStatSvc, AppMgrRunable, EvtPersistencySvc, NTupleSvc, StalledEventMonitor, ExceptionSvc, FileMgr, HepRndm::Engine< TYPE >, DetDataSvc, JobOptionsSvc, TagCollectionSvc, ToolSvc, THistSvc, AuditorSvc, RecordDataSvc, VFSSvc, PartPropSvc, PythonScriptingSvc, RootHistCnv::PersSvc, IssueLogger, EvtDataSvc, StatusCodeSvc, and DetPersistencySvc.
Definition at line 74 of file Service.cpp.
Reimplemented in MultiStoreSvc, DataSvc, DataSvc, Gaudi::Utils::StopSignalHandler, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, Gaudi::IODataManager, MinimalEventLoopMgr, MinimalEventLoopMgr, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, IncidentSvc, RndmEngine, HistogramPersistencySvc, Gaudi::RootEvtSelector, Gaudi::RootEvtSelector, IoComponentMgr, MessageSvc, HistorySvc, AlgContextSvc, ChronoStatSvc, AppMgrRunable, EvtPersistencySvc, NTupleSvc, StalledEventMonitor, ExceptionSvc, FileMgr, HepRndm::Engine< TYPE >, DetDataSvc, JobOptionsSvc, TagCollectionSvc, ToolSvc, THistSvc, AuditorSvc, RecordDataSvc, VFSSvc, PartPropSvc, PythonScriptingSvc, RootHistCnv::PersSvc, IssueLogger, EvtDataSvc, StatusCodeSvc, and DetPersistencySvc.
| void Service::initOutputLevel |
( |
Property & |
prop | ) |
|
|
private |
callback for output level property
Definition at line 432 of file Service.cpp.
{
if ( (
name() !=
"MessageSvc") &&
msgSvc().isValid() ) {
}
}
| void Service::initOutputLevel |
( |
Property & |
prop | ) |
|
|
private |
callback for output level property
| virtual const std::string& Service::name |
( |
| ) |
const |
|
virtual |
| const std::string & Service::name |
( |
| ) |
const |
|
virtual |
| int Service::outputLevel |
( |
| ) |
const |
|
inlineprotected |
| int Service::outputLevel |
( |
| ) |
const |
|
inlineprotected |
Reimplemented in MultiStoreSvc, DataSvc, DataSvc, HistogramSvc, DataOnDemandSvc, EventSelector, MinimalEventLoopMgr, MinimalEventLoopMgr, EventLoopMgr, HistogramPersistencySvc, HistorySvc, MessageSvc, NTupleSvc, DetDataSvc, THistSvc, RecordDataSvc, PartPropSvc, IssueLogger, EvtDataSvc, and StatusCodeSvc.
Definition at line 294 of file Service.cpp.
Reimplemented in MultiStoreSvc, DataSvc, DataSvc, HistogramSvc, DataOnDemandSvc, EventSelector, MinimalEventLoopMgr, MinimalEventLoopMgr, EventLoopMgr, HistogramPersistencySvc, HistorySvc, MessageSvc, NTupleSvc, DetDataSvc, THistSvc, RecordDataSvc, PartPropSvc, IssueLogger, EvtDataSvc, and StatusCodeSvc.
| unsigned long Service::release |
( |
| ) |
|
|
virtual |
Release Interface instance.
Specialized implementation because the default one is not enough.
Definition at line 24 of file Service.cpp.
{
const unsigned long count = (m_refCount) ? --m_refCount : m_refCount;
if( count == 0) {
}
delete this;
}
return count;
}
| virtual unsigned long Service::release |
( |
| ) |
|
|
virtual |
Release Interface instance.
Specialized implementation because the default one is not enough.
template<class T >
| StatusCode Service::service |
( |
const std::string & |
name, |
|
|
const T *& |
psvc, |
|
|
bool |
createIf = true |
|
) |
| const |
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 142 of file Service.h.
{
createIf));
if (ptr.isValid()) {
psvc = ptr.get();
const_cast<T*>(psvc)->addRef();
}
psvc = 0;
}
template<class T >
| StatusCode Service::service |
( |
const std::string & |
name, |
|
|
const T *& |
psvc, |
|
|
bool |
createIf = true |
|
) |
| const |
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 142 of file Service.h.
{
createIf));
if (ptr.isValid()) {
psvc = ptr.get();
const_cast<T*>(psvc)->addRef();
}
psvc = 0;
}
template<class T >
| StatusCode Service::service |
( |
const std::string & |
name, |
|
|
T *& |
psvc, |
|
|
bool |
createIf = true |
|
) |
| const |
|
inline |
Definition at line 158 of file Service.h.
{
createIf));
if (ptr.isValid()) {
psvc = ptr.get();
psvc->addRef();
}
psvc = 0;
}
template<class T >
| StatusCode Service::service |
( |
const std::string & |
name, |
|
|
T *& |
psvc, |
|
|
bool |
createIf = true |
|
) |
| const |
|
inline |
Definition at line 158 of file Service.h.
{
createIf));
if (ptr.isValid()) {
psvc = ptr.get();
psvc->addRef();
}
psvc = 0;
}
template<class T >
| StatusCode Service::service |
( |
const std::string & |
svcType, |
|
|
const std::string & |
svcName, |
|
|
T *& |
psvc |
|
) |
| const |
|
inline |
Access a service by name and type, creating it if it doesn't already exist.
Definition at line 176 of file Service.h.
{
return service(svcType +
"/" + svcName, psvc);
}
template<class T >
| StatusCode Service::service |
( |
const std::string & |
svcType, |
|
|
const std::string & |
svcName, |
|
|
T *& |
psvc |
|
) |
| const |
|
inline |
Access a service by name and type, creating it if it doesn't already exist.
Definition at line 176 of file Service.h.
{
return service(svcType +
"/" + svcName, psvc);
}
Method for setting declared properties to the values specified for the job.
Definition at line 371 of file Service.cpp.
{
const bool CREATEIF(true);
if( !jos.isValid() ) {
}
if (jos->setMyProperties(
name(),
this ).isFailure()) {
}
}
}
Method for setting declared properties to the values specified for the job.
| StatusCode Service::setProperty |
( |
const std::string & |
s | ) |
|
|
virtual |
| virtual StatusCode Service::setProperty |
( |
const std::string & |
s | ) |
|
|
virtual |
| StatusCode Service::setProperty |
( |
const std::string & |
n, |
|
|
const std::string & |
v |
|
) |
| |
|
virtual |
| virtual StatusCode Service::setProperty |
( |
const std::string & |
n, |
|
|
const std::string & |
v |
|
) |
| |
|
virtual |
template<class TYPE >
| StatusCode Service::setProperty |
( |
const std::string & |
name, |
|
|
const TYPE & |
value |
|
) |
| |
|
inline |
set the property form the value
std::vector<double> data = ... ;
std::map<std::string,double> cuts = ... ;
std::map<std::string,std::string> dict = ... ;
Note: the interface IProperty allows setting of the properties either directly from other properties or from strings only
This is very convenient in resetting of the default properties in the derived classes. E.g. without this method one needs to convert everything into strings to use IProperty::setProperty
For simple cases it is more or less ok, but for complicated properties it is just ugly..
- Parameters
-
| name | name of the property |
| value | value of the property |
- See Also
- Gaudi::Utils::setProperty
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2007-05-13
Definition at line 125 of file Service.h.
template<class TYPE >
| StatusCode Service::setProperty |
( |
const std::string & |
name, |
|
|
const TYPE & |
value |
|
) |
| |
|
inline |
set the property form the value
std::vector<double> data = ... ;
std::map<std::string,double> cuts = ... ;
std::map<std::string,std::string> dict = ... ;
Note: the interface IProperty allows setting of the properties either directly from other properties or from strings only
This is very convenient in resetting of the default properties in the derived classes. E.g. without this method one needs to convert everything into strings to use IProperty::setProperty
For simple cases it is more or less ok, but for complicated properties it is just ugly..
- Parameters
-
| name | name of the property |
| value | value of the property |
- See Also
- Gaudi::Utils::setProperty
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2007-05-13
Definition at line 125 of file Service.h.
Finalize Service.
Reimplemented in AuditorSvc.
Definition at line 164 of file Service.cpp.
{
try {
Gaudi::Guards::AuditorGuard guard(this,
}
fatal() <<
" Exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
" Standard std::exception is caught " <<
endmsg;
}
catch( ... ) {
}
}
Initialize Service.
Reimplemented in AuditorSvc.
Definition at line 37 of file Service.cpp.
{
try {
Gaudi::Guards::AuditorGuard guard(this,
if ((
name() !=
"MessageSvc") &&
msgSvc().isValid())
}
fatal() <<
"in sysInitialize(): exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
"in sysInitialize(): standard std::exception is caught" <<
endmsg;
}
catch(...) {
fatal() <<
"in sysInitialize(): UNKNOWN Exception is caught" <<
endmsg;
}
}
Re-initialize the Service.
Definition at line 206 of file Service.cpp.
{
<< "sysReinitialize(): cannot reinitialize service not initialized"
}
try {
Gaudi::Guards::AuditorGuard guard(this,
}
fatal() <<
" Exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
" Standard std::exception is caught " <<
endmsg;
}
catch( ... ) {
}
}
Re-initialize the Service.
Definition at line 251 of file Service.cpp.
{
<<
"sysRestart(): cannot restart service in state " <<
FSMState()
<< " -- must be RUNNING "
}
try {
Gaudi::Guards::AuditorGuard guard(this,
}
fatal() <<
" Exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
" Standard std::exception is caught " <<
endmsg;
}
catch( ... ) {
}
}
Initialize Service.
Definition at line 83 of file Service.cpp.
{
try {
Gaudi::Guards::AuditorGuard guard(this,
}
fatal() <<
"in sysStart(): exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
"in sysStart(): standard std::exception is caught" <<
endmsg;
}
catch(...) {
fatal() <<
"in sysStart(): UNKNOWN Exception is caught" <<
endmsg;
}
}
Initialize Service.
Definition at line 117 of file Service.cpp.
{
try {
Gaudi::Guards::AuditorGuard guard(this,
}
fatal() <<
"in sysStop(): exception with tag=" << Exception.
tag()
}
catch( const std::exception& Exception ) {
fatal() <<
"in sysStop(): standard std::exception is caught" <<
endmsg;
}
catch(...) {
fatal() <<
"in sysStop(): UNKNOWN Exception is caught" <<
endmsg;
}
}
| bool Service::m_auditorFinalize |
|
private |
| bool Service::m_auditorInitialize |
|
private |
| bool Service::m_auditorReinitialize |
|
private |
| bool Service::m_auditorRestart |
|
private |
| bool Service::m_auditorStart |
|
private |
| bool Service::m_auditorStop |
|
private |
| std::string Service::m_name |
|
private |
The documentation for this class was generated from the following files:
- InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Service.h
- InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/Service.h
- GaudiKernel/src/Lib/Service.cpp