24 std::vector<PyOpalObjectNS::AttributeDef>
31 namespace PyDistributionNS {
43 auto distributionClass = distributionObject.
make_class(
"Distribution");
44 distributionObject.
addExecute(distributionClass);
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
void registerDistribution(PyOpalObjectNS::PyOpalObject< Distribution > &dist)
BOOST_PYTHON_MODULE(distribution)
The base class for all OPAL objects.
virtual void update()
Update this object.
static OpalData * getInstance()
void define(Object *newObject)
Define a new object.
PyOpalObject<C> is the basic wrapper class for Opal Objects.
std::shared_ptr< C > getOpalShared()
Returns the Opal Object from the PyOpalObject.
boost::python::class_< PyC > make_class(const char *className)
This is the basic method to make a class for OpalObjects.
void addExecute(PYCLASS &pyclass)
Add an "execute" method to the python class (e.g.