How to wrap a container of custom type?
I'm trying to wrap the container
std::vector<
Currently I have the following custom converters:
class Vector3fParam(
DIRECTIONS = [Parameter.
CTYPES = ['Eigen:
def convert_
...
class Vector3fReturn(
CTYPES = ['Eigen::Vector3f']
def convert_
...
This is enough to wrap my methods, which take Vector3f or return it, but obviously it's not enough for container since I'm getting an error when executing
mod.add_
Traceback (most recent call last):
File "./generate.py", line 358, in <module>
mod.
File "/usr/local/
self.
File "/usr/local/
container.
File "/usr/local/
self.
File "/usr/local/
item_
File "/usr/local/
converter_
File "/usr/local/
mangled_ctype = utils.mangle_
File "/usr/local/
s = name.replace('<', '__lt__
AttributeError: 'CType' object has no attribute 'replace'
Could you please tell me which converters I need to add in order to wrap the container? Is there anything special except the converter, which I have to do?
Thank you in advance!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask yesint for more information if necessary.