#include <ISpectrumFactory.h>
Inheritance diagram for RemoteSpectrumFactory::

Public Methods | |
| RemoteSpectrumFactory (IFluxSvc *svc) | |
| virtual ISpectrum * | instantiate (const std::string ¶ms) const |
| return a new Spectrum object. More... | |
| virtual void | addRef () const |
| dummy to follow Gaudi model. More... | |
|
||||||||||
|
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 }
|
|
|||||||||
|
dummy to follow Gaudi model.
Reimplemented from ISpectrumFactory. Definition at line 54 of file ISpectrumFactory.h.
00054 {}
|
|
||||||||||
|
return a new Spectrum object.
Reimplemented from ISpectrumFactory. Definition at line 51 of file ISpectrumFactory.h.
00051 {return new T(params);}
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001