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