[C++-sig] Expanding embedded code

2009-04-21 Thread Robin Gilks
A difficult question to put a title to so I'll paint a brief scenario... The application is written in c++ It receives a data message and instantiates a message decoder class. Based on the contends that are extracted into the class variables, a response is built by instantiating an encoder clas

Re: [C++-sig] Expanding embedded code

2009-04-22 Thread Robin Gilks
Stefan Seefeld wrote: Robin Gilks wrote: A difficult question to put a title to so I'll paint a brief scenario... The application is written in c++ It receives a data message and instantiates a message decoder class. Based on the contends that are extracted into the class variabl

Re: [C++-sig] Expanding embedded code

2009-04-23 Thread Robin Gilks
Stefan Seefeld wrote: I'm not sure what you are asking. Sticking to my example code, when you run the python script, 'instance' will be available in the global namespace, so you can make calls into it from Python. If that is not what you want, can you come up with another example ? Thanks,

[C++-sig] pybindgen add_function_as_constructor

2009-04-26 Thread Robin Gilks
Following on from my expanding embedded code thread, I'm making progress in that if I hack the class instantiation in the wrapper that pybindgen produces I can get it all to work. With that in mind, I'm trying to use add_function_as_constructor but it won't let me use a 'void *' or 'PyObject *

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-26 Thread Robin Gilks
Robin Gilks wrote: Following on from my expanding embedded code thread, I'm making progress in that if I hack the class instantiation in the wrapper that pybindgen produces I can get it all to work. With that in mind, I'm trying to use add_function_as_constructor but it won'

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-26 Thread Robin Gilks
Robin Gilks wrote: I've found the pybindgen commit for revision 628 and that fixes the PyObject problem - got a new one now!! I can't work out the syntax to return any sort of pointer for example mod.add_method('methodA', ReturnValue.new('uint8_t *'), [])

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-27 Thread Robin Gilks
Gustavo Carneiro wrote: Sounds good. Sorry I wasn't online to help with the other questions. I assume those problems are solved, if not please ask again the questions. Where I've got to now is I can't find how to declare a docstring for a function or method. Doesn't this work?