[PyKDE] Metaobjects ?
Phil Thompson
phil at river-bank.demon.co.uk
Fri Dec 17 11:33:28 GMT 1999
Bradley Schatz wrote:
>
> Hi Phil,
>
> Thanks for replying..
>
> >
> > > Any suggestions on how I could get the signature of a method as well? ie
> > > the types it returns, and the parameters it expects?
> >
> > No - all of that is buried in the generated C++ code. The only thing
> > that springs to mind is for SIP to generate this extra information so it
> > could be picked up by ViPyl and similar tools. It could be done as a
> > file which ViPyl parses (not too bad if a standard can be agreed), or
> > included as data structures in the bindings (I don't like).
> >
>
> Since we dont have any relfection mechanisms in C++ I think that a file based
> approach would work fine.The signal and slot signatures could be generated
> into a XML format similar to that used in your sip files for documentation for
> reading by ViPyl. Is this difficult?
I wouldn't have thought it would be too difficult. If somebody wants to
give me a spec for the format of the XML file then it will be fairly
easy for me to write the code to generate it (or better still, give me
the code itself). I don't know what's required, so I can't spec it
myself.
Phil
More information about the PyQt
mailing list