#include <SpectrumFactory.h>
Inheritance diagram for SpectrumFactory::

Public Methods | |
| SpectrumFactory () | |
| virtual ISpectrum * | instantiate (const std::string ¶ms) const |
| return a new Spectrum object. More... | |
| virtual void | addRef () const |
| dummy to follow Gaudi model. More... | |
$Header $
Definition at line 22 of file SpectrumFactory.h.
|
|||||||||
|
Definition at line 26 of file SpectrumFactory.h. References SpectrumFactoryTable::addFactory(), and SpectrumFactoryTable::instance().
00026 {
00027 //Get class name using RTTI:
00028 std::string classname = typeid(T).name();
00029 int s = classname.find_first_of("class");
00030 if( s==0 ) s=6; //found it
00031 else s =classname.find_first_not_of("0123456789");
00032 classname = classname.substr(s);
00033 SpectrumFactoryTable::instance()->addFactory(classname, this);
00034 }
|
|
|||||||||
|
dummy to follow Gaudi model.
Reimplemented from ISpectrumFactory. Definition at line 39 of file SpectrumFactory.h.
00039 {}
|
|
||||||||||
|
return a new Spectrum object.
Reimplemented from ISpectrumFactory. Definition at line 36 of file SpectrumFactory.h.
00036 {return new T(params);}
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001