#include <GaudiKernel/Service.h>
Inheritance diagram for Service:

Public Types | |
| enum | State { OFFLINE, INITIALIZED } |
| Define Service states. More... | |
Public Methods | |
| virtual StatusCode | queryInterface (const IID& riid, void** ppvUnknown) |
| Query interfaces of Interface. More... | |
| virtual unsigned long | addRef () |
| Reference Interface instance. More... | |
| virtual unsigned long | release () |
| Release Interface instance. More... | |
| virtual const std::string& | name () const |
| Retrieve name of the service. More... | |
| virtual const IID& | type () const |
| Retrieve ID of the Service. More... | |
| State | state ( ) const |
| Retrieve state of the Service. More... | |
| virtual StatusCode | initialize () |
| Initilize Service. More... | |
| virtual StatusCode | finalize () |
| Finalize Service. More... | |
| virtual StatusCode | setProperty (const Property& p) |
| Set the property by property. More... | |
| virtual StatusCode | setProperty ( std::istream& s ) |
| Set the property by istream. More... | |
| virtual StatusCode | setProperty ( const std::string& n, const std::string& v) |
| Set the property by std::string. More... | |
| virtual StatusCode | getProperty (Property* p) const |
| Get the property by property. More... | |
| virtual const Property& | getProperty ( const std::string& name) const |
| Get the property by name. More... | |
| virtual StatusCode | getProperty ( const std::string& n, std::string& v ) const |
| Get the property by std::string. More... | |
| virtual const std::vector< Property*>& | getProperties ( ) const |
| Get list of properties. More... | |
| Service ( const std::string& name, ISvcLocator* svcloc) | |
| Standard Constructor. More... | |
| ISvcLocator* | serviceLocator () const |
| Retrieve pointer to service locator. More... | |
| IMessageSvc* | msgSvc () |
| Retrieve pointer to message service. More... | |
| IMessageSvc* | msgSvc () const |
| IMessageSvc* | messageService () |
| IMessageSvc* | messageService () const |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specifed for the job. More... | |
| template<classT> StatusCode | service ( const std::string& name, T*& svc, bool createIf = false ) const |
| Access a service by name, creating it if it doesn't already exist. More... | |
| template<classT> StatusCode | declareProperty ( const std::string& name, T& property ) const |
| Declare named properties. More... | |
Protected Methods | |
| virtual | ~Service () |
| Standard Destructor. More... | |
Protected Attributes | |
| int | m_outputLevel |
| Service output level. More... | |
Private Attributes | |
| std::string | m_name |
| Service Name. More... | |
| unsigned long | m_refCount |
| Reference counter. More... | |
| ISvcLocator* | m_svcLocator |
| Service Locator reference. More... | |
| IMessageSvc* | m_messageSvc |
| MessageSvc reference. More... | |
| IJobOptions* | m_jobOptions |
| JobOptions reference. More... | |
| State | m_state |
| Service state. More... | |
| PropertyMgr* | m_propertyMgr |
| Property Manager. More... | |
It implements the IService and IProperty interfaces.
Definition at line 23 of file Service.h.
|
|
Define Service states.
|
|
|
Standard Constructor.
Definition at line 175 of file Service.cpp. |
|
|
Standard Destructor.
Definition at line 189 of file Service.cpp. |
|
|
Reference Interface instance.
Reimplemented from IInterface. Definition at line 28 of file Service.cpp. Referenced by queryInterface(), DataSvc::queryInterface(), and ConversionSvc::queryInterface(). |
|
||||||
|
Declare named properties.
Definition at line 93 of file Service.h. Referenced by DataSvc::DataSvc(), and Service(). |
|
|
Finalize Service.
Reimplemented from IService. Reimplemented in ConversionSvc, and DataSvc. Definition at line 87 of file Service.cpp. Referenced by DataSvc::finalize(), and ConversionSvc::finalize(). |
|
|
Get list of properties.
Reimplemented from IProperty. Definition at line 156 of file Service.cpp. |
|
|
Get the property by std::string.
Reimplemented from IProperty. Definition at line 152 of file Service.cpp. |
|
|
Get the property by name.
Reimplemented from IProperty. Definition at line 148 of file Service.cpp. |
|
|
Get the property by property.
Reimplemented from IProperty. Definition at line 144 of file Service.cpp. Referenced by AlgTool::AlgTool(). |
|
|
Initilize Service.
Reimplemented from IService. Reimplemented in ConversionSvc, and DataSvc. Definition at line 62 of file Service.cpp. Referenced by DataSvc::initialize(), and ConversionSvc::initialize(). |
|
|
Definition at line 126 of file Service.cpp. |
|
|
Definition at line 123 of file Service.cpp. |
|
|
Definition at line 119 of file Service.cpp. |
|
|
Retrieve pointer to message service.
Definition at line 116 of file Service.cpp. Referenced by AlgTool::AlgTool(), and ConversionSvc::createReps(). |
|
|
Retrieve name of the service.
Reimplemented from IService. Definition at line 101 of file Service.cpp. Referenced by ConversionSvc::createReps(), initialize(), DataSvc::loadObject(), setProperties(), and DataSvc::updateObject(). |
|
|
Query interfaces of Interface.
Reimplemented in ConversionSvc, and DataSvc. Definition at line 43 of file Service.cpp. Referenced by DataSvc::queryInterface(), and ConversionSvc::queryInterface(). |
|
|
Release Interface instance.
Reimplemented from IInterface. Definition at line 34 of file Service.cpp. |
|
||||||||
|
Access a service by name, creating it if it doesn't already exist.
|
|
|
Retrieve pointer to service locator.
Definition at line 111 of file Service.cpp. Referenced by AlgTool::AlgTool(), ConversionSvc::createConverter(), ConversionSvc::initialize(), and service(). |
|
|
Method for setting declared properties to the values specifed for the job.
Definition at line 161 of file Service.cpp. Referenced by initialize(). |
|
|
Set the property by std::string.
Reimplemented from IProperty. Definition at line 140 of file Service.cpp. |
|
|
Set the property by istream.
Reimplemented from IProperty. Definition at line 136 of file Service.cpp. |
|
|
Set the property by property.
Reimplemented from IProperty. Definition at line 132 of file Service.cpp. |
|
|
Retrieve state of the Service.
|
|
|
Retrieve ID of the Service.
Reimplemented from IService. Definition at line 106 of file Service.cpp. |
|
|
JobOptions reference.
|
|
|
MessageSvc reference.
|
|
|
Service Name.
|
|
|
Service output level.
|
|
|
Property Manager.
|
|
|
Reference counter.
|
|
|
Service state.
|
|
|
Service Locator reference.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000