Login  Register

Re: Adding functions to QuantLib SWIG

Posted by smazzucca on Dec 19, 2013; 7:38pm
URL: http://quantlib.414.s1.nabble.com/Adding-functions-to-QuantLib-SWIG-tp6140p14761.html

Luigi,

I got this to work (I was doing something wrong), so that's great because I know going forward I can add missing interfaces!

Predictably, I am now stuck at the next step... The CallableFixedRateBond C# constructor expects a SWIGTYPE_p_CallabilitySchedule type, but that seemed wrong, so I changed it to use a CallabilitySchedule which seems to work.

To create a CallabilitySchedule I need to pass a Callability instance and that's where I get stuck.

Although I can declare a Callability variable:
Callability callability; //Works

I don't have access to the constructor:
Callability callability = new Callability();    //The type 'QuantLib.Callability' has no constructors defined

Am I on the right track ? Can you shed some light, please ?

Thank you,
Simon