![]() |
![]() |
#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, Arg iArg) const |
void | registerPMaker (PMakerBase *iPMaker, const std::string &iName) |
R * | tryToCreate (const std::string &iName, Arg iArg) const |
like above but returns 0 if iName is unknown | |
Static Public Member Functions | |
static PluginFactory< R *(Arg)> * | get () |
Private Member Functions | |
const PluginFactory & | operator= (const PluginFactory &) |
PluginFactory () | |
PluginFactory (const PluginFactory &) | |
Friends | |
class | DummyFriend |
Definition at line 87 of file PluginFactory.h.
edmplugin::PluginFactory< R *(Arg)>::PluginFactory | ( | ) | [inline, private] |
Definition at line 128 of file PluginFactory.h.
{ finishedConstruction(); }
edmplugin::PluginFactory< R *(Arg)>::PluginFactory | ( | const PluginFactory< R *(Arg)> & | ) | [private] |
virtual const std::string& edmplugin::PluginFactory< R *(Arg)>::category | ( | ) | const [virtual] |
returns the name of the category to which this plugin factory belongs
Implements edmplugin::PluginFactoryBase.
R* edmplugin::PluginFactory< R *(Arg)>::create | ( | const std::string & | iName, |
Arg | iArg | ||
) | const [inline] |
Definition at line 108 of file PluginFactory.h.
References SurfaceDeformationFactory::create(), and edmplugin::PluginFactoryBase::findPMaker().
{ return reinterpret_cast<PMakerBase *>(PluginFactoryBase::findPMaker(iName)->second.front().first)->create(iArg); }
static PluginFactory<R*(Arg)>* edmplugin::PluginFactory< R *(Arg)>::get | ( | ) | [static] |
const PluginFactory& edmplugin::PluginFactory< R *(Arg)>::operator= | ( | const PluginFactory< R *(Arg)> & | ) | [private] |
void edmplugin::PluginFactory< R *(Arg)>::registerPMaker | ( | PMakerBase * | iPMaker, |
const std::string & | iName | ||
) | [inline] |
Definition at line 123 of file PluginFactory.h.
References edmplugin::PluginFactoryBase::registerPMaker().
{ PluginFactoryBase::registerPMaker(iPMaker, iName); }
R* edmplugin::PluginFactory< R *(Arg)>::tryToCreate | ( | const std::string & | iName, |
Arg | iArg | ||
) | const [inline] |
like above but returns 0 if iName is unknown
Definition at line 112 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(iArg); }
friend class DummyFriend [friend] |
Definition at line 89 of file PluginFactory.h.