![]() |
![]() |
#include <PluginFactory.h>
Classes | |
struct | PMaker |
struct | PMakerBase |
Public Member Functions | |
virtual const std::string & | category () const |
returns the name of the category to which this plugin factory belongs | |
R * | create (const std::string &iName) const |
void | registerPMaker (PMakerBase *iPMaker, const std::string &iName) |
R * | tryToCreate (const std::string &iName) const |
like above but returns 0 if iName is unknown | |
Static Public Member Functions | |
static PluginFactory< R *(void)> * | get () |
Private Member Functions | |
const PluginFactory & | operator= (const PluginFactory &) |
PluginFactory () | |
PluginFactory (const PluginFactory &) | |
Friends | |
class | DummyFriend |
Definition at line 35 of file PluginFactory.h.
edmplugin::PluginFactory< R *(void)>::PluginFactory | ( | ) | [inline, private] |
Definition at line 77 of file PluginFactory.h.
{ finishedConstruction(); }
edmplugin::PluginFactory< R *(void)>::PluginFactory | ( | const PluginFactory< R *(void)> & | ) | [private] |
virtual const std::string& edmplugin::PluginFactory< R *(void)>::category | ( | ) | const [virtual] |
returns the name of the category to which this plugin factory belongs
Implements edmplugin::PluginFactoryBase.
R* edmplugin::PluginFactory< R *(void)>::create | ( | const std::string & | iName | ) | const [inline] |
Definition at line 56 of file PluginFactory.h.
References SurfaceDeformationFactory::create(), and edmplugin::PluginFactoryBase::findPMaker().
{ return reinterpret_cast<PMakerBase*>(PluginFactoryBase::findPMaker(iName)->second.front().first)->create(); }
static PluginFactory<R*(void)>* edmplugin::PluginFactory< R *(void)>::get | ( | ) | [static] |
const PluginFactory& edmplugin::PluginFactory< R *(void)>::operator= | ( | const PluginFactory< R *(void)> & | ) | [private] |
void edmplugin::PluginFactory< R *(void)>::registerPMaker | ( | PMakerBase * | iPMaker, |
const std::string & | iName | ||
) | [inline] |
Definition at line 72 of file PluginFactory.h.
References edmplugin::PluginFactoryBase::registerPMaker().
{ PluginFactoryBase::registerPMaker(iPMaker, iName); }
R* edmplugin::PluginFactory< R *(void)>::tryToCreate | ( | const std::string & | iName | ) | const [inline] |
like above but returns 0 if iName is unknown
Definition at line 61 of file PluginFactory.h.
References SurfaceDeformationFactory::create(), and edmplugin::PluginFactoryBase::tryToFindPMaker().
{ typename Plugins::const_iterator itFound = PluginFactoryBase::tryToFindPMaker(iName); if(itFound ==m_plugins.end() ) { return 0; } return reinterpret_cast<PMakerBase*>(itFound->second.front().first)->create(); }
friend class DummyFriend [friend] |
Definition at line 37 of file PluginFactory.h.