On Thu, May 28, 2009 at 2:15 PM, Daniele Pianu <mu...@gm...> wrote:
> Hi all,
> I'm using the (great :D) pygccxml package to implement a wrappers
> generator for some C libraries used in my company. Given a Foo
> library/component, the pygccxml parser is launched on the Foo.h header
> (not on other headers used by the same library, ex. Foo_bar.h). Now a
> particular case has arisen:
> if a Bar structure in Foo.h is declared (but defined in another header
> NOT included by the Foo.h), I'm able to obtain the Bar declaration but
> not the Bar definition. I've checked the class_declaration_t type but
> I've not found any useful property-method. How can I solve my problem?
> Do I need to mandatory parse all header related to the Foo library to
> obtain all structure definitions or is there another way to obtain a
> structure definition from a struct declaration?
Yes, you will have to include file, that contains "Bar" definition.
The performance should not be an issue, if you will use "cache"
functionality: http://language-binding.net/pygccxml/apidocs/parser.html#pygccxml.parser.project_reader.create_cached_source_fc
> Thanks for your help and for the amazing work done with the pygccxml package,
Thank you.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|