#include <SoDetSvc.h>
Inheritance diagram for SoDetSvc:
Public Types | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
enum | Status |
Public Member Functions | |
virtual StatusCode | initialize () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual StatusCode | finalize () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
virtual const std::string & | name () const |
virtual const InterfaceID & | type () const |
virtual StatusCode | configure () |
virtual StatusCode | start () |
virtual StatusCode | stop () |
virtual StatusCode | terminate () |
virtual Gaudi::StateMachine::State | FSMState () const |
virtual Gaudi::StateMachine::State | targetFSMState () const |
virtual StatusCode | reinitialize () |
virtual StatusCode | restart () |
virtual StatusCode | sysInitialize () |
virtual StatusCode | sysStart () |
virtual StatusCode | sysStop () |
virtual StatusCode | sysFinalize () |
virtual StatusCode | sysReinitialize () |
virtual StatusCode | sysRestart () |
virtual StatusCode | setProperty (const Property &p) |
virtual StatusCode | setProperty (const std::string &s) |
virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
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 |
ISvcLocator * | serviceLocator () const |
IMessageSvc * | msgSvc () |
IMessageSvc * | msgSvc () const |
IMessageSvc * | messageService () |
IMessageSvc * | messageService () const |
StatusCode | setProperties () |
StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
IAuditorSvc * | auditorSvc () const |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
static const InterfaceID & | interfaceID () |
static const InterfaceID & | interfaceID () |
Public Attributes | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
Protected Member Functions | |
SoDetSvc (const std::string &, ISvcLocator *) | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual | ~SoDetSvc () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
int | outputLevel () const |
Protected Attributes | |
IntegerProperty | m_outputLevel |
Gaudi::StateMachine::State | m_state |
Gaudi::StateMachine::State | m_targetState |
IMessageSvc * | m_messageSvc |
Private Attributes | |
IUserInterfaceSvc * | m_uiSvc |
IMagneticFieldSvc * | m_magneticFieldSvc |
Friends | |
class | SvcFactory< SoDetSvc > |
friend class | ServiceManager |
Definition at line 12 of file SoDetSvc.h.
SoDetSvc::SoDetSvc | ( | const std::string & | , | |
ISvcLocator * | ||||
) | [protected] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 26 of file SoDetSvc.cpp.
00030 :Service(aName,aSvcLoc) 00031 ,m_uiSvc(0) 00032 ,m_magneticFieldSvc(0) 00035 { 00036 }
SoDetSvc::~SoDetSvc | ( | ) | [protected, virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 38 of file SoDetSvc.cpp.
StatusCode SoDetSvc::initialize | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Reimplemented from Service.
Definition at line 45 of file SoDetSvc.cpp.
00049 { 00050 StatusCode status = Service::initialize(); 00051 if( status.isFailure() ) return status; 00052 00053 MsgStream log(messageService(), Service::name()); 00054 00055 log << MSG::INFO << "SoDetSvc::initialize " << endreq; 00056 00057 setProperties(); 00058 00059 if(!serviceLocator()) { 00060 log << MSG::INFO << " service locator not found " << endreq; 00061 return StatusCode::FAILURE; 00062 } 00063 00064 // Get the Detector data service : 00065 00066 if(m_uiSvc) { 00067 m_uiSvc->release(); 00068 m_uiSvc = 0; 00069 } 00070 status = service("OnXSvc",m_uiSvc,true); 00071 if(status.isFailure() || !m_uiSvc) { 00072 log << MSG::INFO << " OnXSvc not found " << endreq; 00073 return StatusCode::FAILURE; 00074 } 00075 m_uiSvc->addRef(); 00076 00077 m_uiSvc->addType(new LVolumeType(m_uiSvc->printer())); 00078 00079 if(m_magneticFieldSvc) { 00080 m_magneticFieldSvc->release(); 00081 m_magneticFieldSvc = 0; 00082 } 00083 status = service("MagneticFieldSvc",m_magneticFieldSvc,true); 00084 if(status.isFailure() || !m_magneticFieldSvc) { 00085 log << MSG::INFO << " MagneticFieldSvc not found " << endreq; 00086 } else { 00087 m_magneticFieldSvc->addRef(); 00088 m_uiSvc->addType(new MagneticFieldType(m_uiSvc,m_magneticFieldSvc)); 00089 } 00090 00091 return status; 00092 }
StatusCode SoDetSvc::finalize | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Reimplemented from Service.
Definition at line 94 of file SoDetSvc.cpp.
00098 { 00099 if(m_uiSvc) { 00100 m_uiSvc->release(); 00101 m_uiSvc = 0; 00102 } 00103 if(m_magneticFieldSvc) { 00104 m_magneticFieldSvc->release(); 00105 m_magneticFieldSvc = 0; 00106 } 00107 00108 MsgStream log(messageService(), Service::name()); 00109 log << MSG::INFO << "SoDetSvc finalized successfully" << endreq; 00110 return StatusCode::SUCCESS; 00111 }
friend class SvcFactory< SoDetSvc > [friend] |
Definition at line 20 of file SoDetSvc.h.
IUserInterfaceSvc* SoDetSvc::m_uiSvc [private] |
Definition at line 22 of file SoDetSvc.h.
IMagneticFieldSvc* SoDetSvc::m_magneticFieldSvc [private] |
Definition at line 23 of file SoDetSvc.h.