|
Gaudi Framework, version v21r8 |
| Home | Generated: 17 Mar 2010 |
#include <GaudiKernel/ISvcManager.h>


Public Member Functions | |
| DeclareInterfaceID (ISvcManager, 4, 0) | |
| InterfaceID. | |
| virtual StatusCode | addService (IService *svc, int prio=10)=0 |
| Add a service to the "active" list of services of the factory. | |
| virtual StatusCode | addService (const std::string &typ, const std::string &nam, int prio) |
| Add a service to the "active" list of services of the factory. | |
| virtual StatusCode | addService (const Gaudi::Utils::TypeNameString &nametype, int prio=10)=0 |
| Add a service to the "active" list of services of the factory. | |
| virtual StatusCode | removeService (IService *svc)=0 |
| Remove a service from the "active" list of services of the factory. | |
| virtual StatusCode | removeService (const std::string &nam)=0 |
| Remove a service from the "active" list of services of the factory. | |
| virtual StatusCode | declareSvcFactory (const ISvcFactory &, const std::string &) |
| Declare an abstract factory for a given service type. | |
| virtual StatusCode | declareSvcType (const std::string &svcname, const std::string &svctype)=0 |
| Declare the type of the service to be used when crating a given service name. | |
| virtual SmartIF< IService > & | createService (const Gaudi::Utils::TypeNameString &nametype)=0 |
| Creates and instance of a service type that has been declared beforehand and assigns it a name. | |
| virtual StatusCode | createService (const std::string &svctype, const std::string &svcname, IService *&svc) |
| Creates and instance of a service type that has been declared beforehand and assigns it a name. | |
| virtual StatusCode | getFactory (const std::string &, const ISvcFactory *&) const |
| Access to service factory by name to create unmanaged services. | |
| virtual StatusCode | initializeServices () |
| Initializes the list of "active" services. | |
| virtual StatusCode | startServices () |
| Starts the list of "active" services. | |
| virtual StatusCode | stopServices () |
| Stops the list of "active" services. | |
| virtual StatusCode | finalizeServices () |
| Finalizes the list of "active" services. | |
| virtual StatusCode | reinitializeServices () |
| Reinitializes the list of "active" services. | |
| virtual StatusCode | restartServices () |
| Restarts the list of "active" services. | |
| virtual int | getPriority (const std::string &name) const =0 |
| virtual StatusCode | setPriority (const std::string &name, int pri)=0 |
| virtual bool | loopCheckEnabled () const =0 |
| Get the value of the initialization loop check flag. | |
| virtual void | setLoopCheckEnabled (bool en=true)=0 |
| Set the value of the initialization loop check flag. | |
Clients use this interface to declare abstract service factories, and to create concrete instances of services.
Definition at line 29 of file ISvcManager.h.
| ISvcManager::DeclareInterfaceID | ( | ISvcManager | , | |
| 4 | , | |||
| 0 | ||||
| ) |
| virtual StatusCode ISvcManager::addService | ( | IService * | svc, | |
| int | prio = 10 | |||
| ) | [pure virtual] |
Add a service to the "active" list of services of the factory.
| svc | Pointer to the service |
| virtual StatusCode ISvcManager::addService | ( | const std::string & | typ, | |
| const std::string & | nam, | |||
| int | prio | |||
| ) | [inline, virtual] |
Add a service to the "active" list of services of the factory.
| svc | Pointer to the service |
Definition at line 47 of file ISvcManager.h.
00047 { 00048 return addService(Gaudi::Utils::TypeNameString(nam,typ), prio); 00049 }
| virtual StatusCode ISvcManager::addService | ( | const Gaudi::Utils::TypeNameString & | nametype, | |
| int | prio = 10 | |||
| ) | [pure virtual] |
Add a service to the "active" list of services of the factory.
| svc | Pointer to the service |
| virtual StatusCode ISvcManager::removeService | ( | IService * | svc | ) | [pure virtual] |
Remove a service from the "active" list of services of the factory.
| svc | Pointer to the service |
| virtual StatusCode ISvcManager::removeService | ( | const std::string & | nam | ) | [pure virtual] |
Remove a service from the "active" list of services of the factory.
| svc | Pointer to the service |
| virtual StatusCode ISvcManager::declareSvcFactory | ( | const ISvcFactory & | , | |
| const std::string & | ||||
| ) | [inline, virtual] |
Declare an abstract factory for a given service type.
| factory | Abstract factory reference | |
| svctype | Service type name |
Definition at line 80 of file ISvcManager.h.
00081 { 00082 // This function is never used. 00083 return StatusCode::FAILURE; 00084 }
| virtual StatusCode ISvcManager::declareSvcType | ( | const std::string & | svcname, | |
| const std::string & | svctype | |||
| ) | [pure virtual] |
Declare the type of the service to be used when crating a given service name.
| virtual StatusCode ISvcManager::createService | ( | const std::string & | svctype, | |
| const std::string & | svcname, | |||
| IService *& | svc | |||
| ) | [inline, virtual] |
Creates and instance of a service type that has been declared beforehand and assigns it a name.
It returns a pointer to an IService.
Definition at line 113 of file ISvcManager.h.
00115 { 00116 SmartIF<IService> s = createService(svctype + "/" + svcname); 00117 svc = s.get(); 00118 if (svc) { 00119 svc->addRef(); // Needed to maintain the correct reference counting. 00120 return StatusCode::SUCCESS; 00121 } 00122 return StatusCode::FAILURE; 00123 }
| virtual StatusCode ISvcManager::getFactory | ( | const std::string & | , | |
| const ISvcFactory *& | ||||
| ) | const [inline, virtual] |
Access to service factory by name to create unmanaged services.
| svc_type | [IN] Name of the service type | |
| fac | [OUT] Reference to store pointer to service factory |
Definition at line 131 of file ISvcManager.h.
00132 { 00133 // This function is never used. 00134 return StatusCode::FAILURE; 00135 }
| virtual StatusCode ISvcManager::initializeServices | ( | ) | [inline, virtual] |
Initializes the list of "active" services.
Definition at line 141 of file ISvcManager.h.
00141 { return initialize(); }
| virtual StatusCode ISvcManager::startServices | ( | ) | [inline, virtual] |
Starts the list of "active" services.
Definition at line 147 of file ISvcManager.h.
00147 { return start(); }
| virtual StatusCode ISvcManager::stopServices | ( | ) | [inline, virtual] |
Stops the list of "active" services.
Definition at line 153 of file ISvcManager.h.
00153 { return stop(); }
| virtual StatusCode ISvcManager::finalizeServices | ( | ) | [inline, virtual] |
Finalizes the list of "active" services.
Definition at line 159 of file ISvcManager.h.
00159 { return finalize(); }
| virtual StatusCode ISvcManager::reinitializeServices | ( | ) | [inline, virtual] |
Reinitializes the list of "active" services.
Definition at line 165 of file ISvcManager.h.
00165 { return reinitialize(); }
| virtual StatusCode ISvcManager::restartServices | ( | ) | [inline, virtual] |
Restarts the list of "active" services.
Definition at line 171 of file ISvcManager.h.
00171 { return restart(); }
| virtual int ISvcManager::getPriority | ( | const std::string & | name | ) | const [pure virtual] |
| virtual StatusCode ISvcManager::setPriority | ( | const std::string & | name, | |
| int | pri | |||
| ) | [pure virtual] |
| virtual bool ISvcManager::loopCheckEnabled | ( | ) | const [pure virtual] |
Get the value of the initialization loop check flag.
| virtual void ISvcManager::setLoopCheckEnabled | ( | bool | en = true |
) | [pure virtual] |
Set the value of the initialization loop check flag.