From: Steve C. <ste...@mq...> - 2002-03-15 00:28:30
|
I looked at using SWIG to wrap AGAPI.h directly last night and got some of the way but not all. The problem I hit was mapping between tcl strings and the C++ stl string type. I've since found a few resources on the net which might help with this, eg: http://www-cad.eecs.berkeley.edu/~pinhong/scriptEDA/pyTypemapFAQ.html#38 discusses wrapping stl:string in python but is apparently a little out of data for swig 1.3. I also found an example of doing this from someone on the swig mailing list which I've attached here along with my AGAPI.i file. I'll continue to fiddle with this if I get some time but feel free to take this and fiddle yourselves. All input is welcome. Steve |