OpenAccess Scripting Language Interfaces Architecture
At DAC 2011 I gave a presentation on the architecture of oaScript at Si2’s OpenAccess Scripting Language Workshop.
At DAC 2011 I gave a presentation on the architecture of oaScript at Si2’s OpenAccess Scripting Language Workshop.
By default SWIG generates C# and Java code that does not support downcast for polymorphic return types. I found a straightforward way to solve this, provided your C++ code has a way to identify the concrete class of the C++ instances that are returned. That is, this technique will work only if the C++ API you are wrapping with SWIG has something similar to C# object.GetType()
or Java Object.getClass()
.More