IToolSvc::Observer Class Reference

allow call-backs when a tool is a created or retrieved More...

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/IToolSvc.h>

Public Member Functions

virtual ~Observer ()
 
virtual void onCreate (const IAlgTool *)
 
virtual void onRetrieve (const IAlgTool *)
 
virtual ~Observer ()
 
virtual void onCreate (const IAlgTool *)
 
virtual void onRetrieve (const IAlgTool *)
 

Detailed Description

allow call-backs when a tool is a created or retrieved

class myObserver : public ITooSvc::Observer {
void onCreate(IAlgTool& tool) {
cout << "tool " << tool.name() << " created " << endl;
}
void onRetrieve(IAlgTool& tool) {
cout << "someone requested " << tool.name() <<endl;
}
}
myObserver *observer = new myObserver;
IToolSvc* svc = ...
svc->registerObserver(observer);

IToolSvc implementations will call 'Observer::onCreate' when a tool is created, and 'Observer::onRetrieve' if a tool is retrieved.

The user is responsible of the life time of the object and must un-register it before it is deleted (e.g. during the finalization).

Definition at line 240 of file IToolSvc.h.

Constructor & Destructor Documentation

virtual IToolSvc::Observer::~Observer ( )
inlinevirtual

Definition at line 242 of file IToolSvc.h.

242 {}
virtual IToolSvc::Observer::~Observer ( )
inlinevirtual

Definition at line 242 of file IToolSvc.h.

242 {}

Member Function Documentation

virtual void IToolSvc::Observer::onCreate ( const IAlgTool )
inlinevirtual

Definition at line 243 of file IToolSvc.h.

243 {}
virtual void IToolSvc::Observer::onCreate ( const IAlgTool )
inlinevirtual

Definition at line 243 of file IToolSvc.h.

243 {}
virtual void IToolSvc::Observer::onRetrieve ( const IAlgTool )
inlinevirtual

Definition at line 244 of file IToolSvc.h.

244 {}
virtual void IToolSvc::Observer::onRetrieve ( const IAlgTool )
inlinevirtual

Definition at line 244 of file IToolSvc.h.

244 {}

The documentation for this class was generated from the following file: