2009/10/26 Benoît Leveau <ben...@gm...>:
> Hello,
Good morning
> First, thanks for the great py++/pygccxml packages. I'm pretty new to
> it, so please forgive my newbieness...
>
> I'll soon be using Py++ for the binding of a large c++ library, and
> I'm trying to detect and automatize as much as possible the binding.
>
> One thing I could not figure out is a way to detect that a function
> has an array passed as one of its arguments. The type of the argument
> is a pointer to some type, but there's no mention to the fact that
> it's an array, or to the size of this array.
> I did some tests with pygccxml and got the same result: only the fact
> that the argument is a pointer can be extracted.
>
> So it's up to the user to manually add the input_static_array
> transformation with the correct size, which I'd like to avoid.
> Is there a simple way to do this?
Yes and no. Obviously you can't extract this information from function
definition, but may be you can use the following information:
* coding convention
* documentation/comments
* naming convention
You can "re-parse" the source code and extract it.
>
> P.S. If this is not the correct place to ask such questions, let me know.
This is the place :-)
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|