|
Boost : |
From: Karl Bellve (Karl.Bellve_at_[hidden])
Date: 2001-03-26 16:17:52
hmm...
I am still confused about this. Perhaps Boost (BPL) is unable to do
this?
I don't want to have a method in Python create a new object, like you do
with n.getWorld(). I don't want to construct a new class in python, only
to have a function in C++ construct another class, then free the first
class. In all these cases, a new object is constructed.
I just want to pass a class to Python that has already been constructed,
without Python or BPL constructing a new object from a class. My
application has already did a new <someclass>. It has already
initialized the class, and loaded various pieces of data. I just want
the data and some of the functions in that class available to Python.
Some background:
In my application, it loads an image by either capturing it through a
PCI card (called a RoadRunner) or loading the image from a file. I have
a class that handles the allocating and locking of memory. I then would
like to pass this class, that has been constructed, to Python. So, users
can run internal python scripts inside the application for post
processing.
Phlip wrote:
>
> Of course - just write a free function.
>
> BPL hardcores will now tell you how to prevent Python from destroying that
> object, in case your C++ code was fond of it.
>
> --
> Phlip phlip_cpp_at_[hidden]
> ============== http://phlip.webjump.com ==============
> -- MCCD - Microsoft Certified Co-Dependent --
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-- Cheers, Karl Bellve, Ph.D. ICQ # 13956200 Biomedical Imaging Group TLCA# 7938 University of Massachusetts Email: Karl.Bellve_at_[hidden] Phone: (508) 856-6514 Fax: (508) 856-1840 PGP Public key: finger kdb_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk