#include <Python.hpp>
Public Member Functions | |
FactoryMap () | |
~FactoryMap () | |
void | add (const std::string &name, FactoryMethod fact) |
PyObject * | create (const std::string &name) |
PyObject * | wrap (const std::string &name, ModelObject *obj) |
Static Public Member Functions | |
FactoryMap & | instance () |
|
|
|
|
|
Add a new factory method. |
|
Create a new instance. |
|
Get the singleton instance. |
|
Wrap an existing object with a new wrapper. |