mercredi 5 novembre 2014

how to Expose an instance of class to python using boost python


Vote count:

0




I have already exposed a class called 'subc' to python using boost python:



class_<subc> ( "subc" )
.def ( "__init__",make_constructor ( subc ) )
.def_readonly ( "xrow",&subc::xrow )
.def_readonly ( "arow",&subc::arow )
.def ( "set",&subc::Set )


I can create an instance of it in python with no problem,but I want to expose a subc pointer to python called: subcInstance,because this class area allready and I need the one created in c++,how can I do that?



asked 3 mins ago







how to Expose an instance of class to python using boost python

Aucun commentaire:

Enregistrer un commentaire