logo       

c++ python and rtti: msg#00167

programming.swig

Subject: c++ python and rtti

hello

i have a base class Object and two derived class, Light an Camera.
Every object has an unique ObjectID identifier, this is used in an Object Database
for object retriving purpose, the object database contain only Light and camera objects.

there is a function (that i want wrap with swig)
Object *FindObjectByID(unsigned int id);
In the c++ side i can query the type of object
returned by FindObjectByID with RTTI mechanism,
but how i can return the right type in python script?

excuse me for my orrible english:-)

bye

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise