Re: [pygccxml-development] how can I get the full member signature as string?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-07-29 17:25:08
|
On 7/29/06, Eddy Pronk <ep...@mu...> wrote: > If I have: > > struct foo > { > void bar(std::string&, float, int, bool); > } > > and then do: > class_.get_members() > > How can I get the full signature, "void foo::bar(std::string&, float, > int, bool)" as a string? > I think I can manage it using the API, and glue all the bits and pieces > together, but there might be a simple way. Every function has "function_type" method. You can call it, and then you can use property "decl_string" defined on every type. foo =mb.member_function( 'foo' ) foo.function_type().decl_string -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |