|
Gaudi Framework, version v25r2 |
| Home | Generated: Wed Jun 4 2014 |
Base class for all services. More...
#include <Service.h>


Public Types | |
| typedef Gaudi::PluginService::Factory2 < IService *, const std::string &, ISvcLocator * > | Factory |
Public Types inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| typedef CommonMessaging | base_class |
Public Types inherited from implements3< IService, IProperty, IStateful > | |
| 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_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from extend_interfaces3< I1, I2, I3 > | |
| 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. | |
Public Member Functions | |
| 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. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| 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. | |
| 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 & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () 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 & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| 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 | |
Protected Member Functions | |
| virtual | ~Service () |
| Standard Destructor. | |
| int | outputLevel () const |
get the Service's output level | |
Protected Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| void | updateMsgStreamOutputLevel (int level) |
| Update the output level of the cached MsgStream. | |
Protected Attributes | |
| IntegerProperty | m_outputLevel |
| Service output level. | |
| Gaudi::StateMachine::State | m_state |
| Service state. | |
| Gaudi::StateMachine::State | m_targetState |
| Service state. | |
Protected Attributes inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| SmartIF< IMessageSvc > | m_msgsvc |
| Pointer to the message service;. | |
| std::auto_ptr< MsgStream > | m_msgStream |
| The predefined message stream. | |
| bool | m_streamWithService |
| Flag to create a new MsgStream if it was created without the message service. | |
Private Member Functions | |
| void | setServiceManager (ISvcManager *ism) |
| void | initOutputLevel (Property &prop) |
| callback for output level property | |
Private Attributes | |
| std::string | m_name |
| Service Name. | |
| SmartIF< ISvcLocator > | m_svcLocator |
| Service Locator reference. | |
| SmartIF< ISvcManager > | m_svcManager |
| PropertyMgr * | m_propertyMgr |
| Property Manager. | |
| SmartIF< IAuditorSvc > | m_pAuditorSvc |
| Auditor Service. | |
| BooleanProperty | m_auditInit |
| bool | m_auditorInitialize |
| bool | m_auditorStart |
| bool | m_auditorStop |
| bool | m_auditorFinalize |
| bool | m_auditorReinitialize |
| bool | m_auditorRestart |
Friends | |
| class | ServiceManager |
| typedef Gaudi::PluginService::Factory2<IService*, const std::string&, ISvcLocator*> Service::Factory |
| Service::Service | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Standard Constructor.
Definition at line 393 of file Service.cpp.
|
protectedvirtual |
| SmartIF< IAuditorSvc > & Service::auditorSvc | ( | ) | const |
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
Definition at line 444 of file Service.cpp.
|
inlinevirtual |
Definition at line 48 of file Service.h.
|
inline |
Declare the named property.
| name | the property name |
| property | the property itself, |
| doc | the documentation string |
|
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.
| name | Local property name |
| rsvc | Remote IProperty interface |
| rname | Name of the property at remote service |
|
virtual |
Reimplemented in MultiStoreSvc, Gaudi::Utils::StopSignalHandler, DataSvc, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, MinimalEventLoopMgr, Gaudi::IODataManager, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, CounterSvc, RndmEngine, IncidentSvc, HistogramPersistencySvc, 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.
|
inlinevirtual |
|
virtual |
Definition at line 366 of file Service.cpp.
|
virtual |
Reimplemented in JobOptionsSvc.
Definition at line 354 of file Service.cpp.
|
virtual |
Definition at line 358 of file Service.cpp.
|
virtual |
Definition at line 362 of file Service.cpp.
|
virtual |
Reimplemented in MultiStoreSvc, DataSvc, Gaudi::Utils::StopSignalHandler, PersistencySvc, HistogramSvc, DataOnDemandSvc, Gaudi::RootCnvSvc, GslSvc, EventCollectionSelector, EventSelector, ConversionSvc, Gaudi::RootPerfMonSvc, Gaudi::ParticlePropertySvc, Gaudi::IODataManager, MinimalEventLoopMgr, EventLoopMgr, RndmGenSvc, Gaudi::MultiFileCatalog, IncidentSvc, RndmEngine, HistogramPersistencySvc, 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.
|
private |
|
virtual |
Retrieve name of the service.
Implements CommonMessaging< implements3< IService, IProperty, IStateful > >.
Definition at line 331 of file Service.cpp.
|
inlineprotected |
|
virtual |
Reimplemented in MultiStoreSvc, DataSvc, HistogramSvc, DataOnDemandSvc, EventSelector, MinimalEventLoopMgr, EventLoopMgr, HistogramPersistencySvc, HistorySvc, MessageSvc, NTupleSvc, DetDataSvc, THistSvc, RecordDataSvc, PartPropSvc, IssueLogger, EvtDataSvc, and StatusCodeSvc.
Definition at line 294 of file Service.cpp.
|
virtual |
Release Interface instance.
Specialized implementation because the default one is not enough.
Definition at line 24 of file Service.cpp.
|
virtual |
Reimplemented in MinimalEventLoopMgr.
Definition at line 315 of file Service.cpp.
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 140 of file Service.h.
|
inline |
Definition at line 156 of file Service.h.
|
inline |
|
virtual |
Retrieve pointer to service locator.
Implements CommonMessaging< implements3< IService, IProperty, IStateful > >.
Definition at line 336 of file Service.cpp.
| StatusCode Service::setProperties | ( | ) |
Method for setting declared properties to the values specified for the job.
Definition at line 371 of file Service.cpp.
|
virtual |
Reimplemented in JobOptionsSvc.
Definition at line 342 of file Service.cpp.
|
virtual |
Definition at line 346 of file Service.cpp.
|
virtual |
Definition at line 350 of file Service.cpp.
|
inline |
set the property form the value
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..
| name | name of the property |
| value | value of the property |
Definition at line 123 of file Service.h.
|
private |
Definition at line 455 of file Service.cpp.
|
virtual |
Reimplemented in MinimalEventLoopMgr, AppMgrRunable, StalledEventMonitor, and ToolSvc.
Definition at line 158 of file Service.cpp.
|
virtual |
Reimplemented in Gaudi::RootPerfMonSvc, MinimalEventLoopMgr, EventLoopMgr, HistorySvc, StalledEventMonitor, AppMgrRunable, and ToolSvc.
Definition at line 152 of file Service.cpp.
|
virtual |
Finalize Service.
Reimplemented in AuditorSvc.
Definition at line 164 of file Service.cpp.
|
virtual |
Initialize Service.
Reimplemented in AuditorSvc.
Definition at line 37 of file Service.cpp.
|
virtual |
Re-initialize the Service.
Definition at line 206 of file Service.cpp.
|
virtual |
Re-initialize the Service.
Definition at line 251 of file Service.cpp.
|
virtual |
Initialize Service.
Definition at line 83 of file Service.cpp.
|
virtual |
Initialize Service.
Definition at line 117 of file Service.cpp.
|
inlinevirtual |
Definition at line 55 of file Service.h.
|
inlinevirtual |
Definition at line 53 of file Service.h.
|
friend |
|
private |
|
protected |
|
mutableprivate |
|
private |
|
protected |
|
mutableprivate |
|
private |
|
protected |