Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

OMF::Python::FactoryMap Struct Reference

#include <Python.hpp>

List of all members.


Detailed Description

Just a mapping of factory methods to be shared by the various Python bindings. Note that you could actually use this to build any kind of Python object.


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 ()


Constructor & Destructor Documentation

OMF::Python::FactoryMap::FactoryMap (   ) 
 

OMF::Python::FactoryMap::~FactoryMap (   ) 
 


Member Function Documentation

void OMF::Python::FactoryMap::add (  const std::string &  name,
FactoryMethod  fact
) 
 

Add a new factory method.

PyObject* OMF::Python::FactoryMap::create (  const std::string &  name  ) 
 

Create a new instance.

FactoryMap& OMF::Python::FactoryMap::instance (   )  [static]
 

Get the singleton instance.

PyObject* OMF::Python::FactoryMap::wrap (  const std::string &  name,
ModelObject *  obj
) 
 

Wrap an existing object with a new wrapper.


The documentation for this struct was generated from the following file:
Generated on Fri Sep 10 13:07:38 2004 for OpenModelingFramework by doxygen 1.3.8