Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RemoteSpectrumFactory Class Template Reference

#include <ISpectrumFactory.h>

Inheritance diagram for RemoteSpectrumFactory::

ISpectrumFactory List of all members.

Public Methods

 RemoteSpectrumFactory (IFluxSvc *svc)
virtual ISpectruminstantiate (const std::string &params) const
 return a new Spectrum object. More...

virtual void addRef () const
 dummy to follow Gaudi model. More...

template<class T>
class RemoteSpectrumFactory< T >


Constructor & Destructor Documentation

template<class T>
RemoteSpectrumFactory< T >::RemoteSpectrumFactory IFluxSvc   svc [inline]
 

Definition at line 41 of file ISpectrumFactory.h.

References IFluxSvc::addFactory().

00041                                         {
00042         //Get class name using RTTI:
00043         std::string classname = typeid(T).name();
00044         int s = classname.find_first_of("class");
00045         if( s==0 ) s=6; //found it
00046         else s =classname.find_first_not_of("0123456789");
00047         classname = classname.substr(s);
00048         svc->addFactory(classname, this); 
00049     }


Member Function Documentation

template<class T>
virtual void RemoteSpectrumFactory< T >::addRef   const [inline, virtual]
 

dummy to follow Gaudi model.

Reimplemented from ISpectrumFactory.

Definition at line 54 of file ISpectrumFactory.h.

00054 {}

template<class T>
virtual ISpectrum* RemoteSpectrumFactory< T >::instantiate const std::string &    params const [inline, virtual]
 

return a new Spectrum object.

Reimplemented from ISpectrumFactory.

Definition at line 51 of file ISpectrumFactory.h.

00051 {return new T(params);}


The documentation for this class was generated from the following file:
Generated on Wed Oct 16 14:01:35 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001