[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] SIP wrapping template call
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-09-24 8:45:48
Message-ID: 12ca065215a1c09b8f17a892640e679c () localhost
[Download RAW message or body]

On Sat, 24 Sep 2011 09:36:32 +0530, Pankaj Singh <pankajs.21@gmail.com>
wrote:
> In the C++ code that I'm exporting to python, I have the following call
in
> the header file.
> 
> template <class PropertyManager>
> 
> Following this, PropertyManager is being used in other class
definitions.
> How do I wrap this in a sip file?

Define the template then use a typedef to instantiate the template with
the required name and type arguments. See PyQt's
phonon/objectdescription.sip file for an example.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic