Login  Register

Re: Exposing a new function in QLAddinCpp

Posted by Eric Ehlers-2 on Dec 25, 2012; 7:24pm
URL: http://quantlib.414.s1.nabble.com/Exposing-a-new-function-in-QLAddinCpp-tp13793p13819.html

Hello,

On 2012-12-10 19:32, Lapin wrote:

> I have narrowed down the issue.
>
> In fact everything seems to work fine when you want to expose a QL
> function
> through *qlgensrc*.
> It is a different topic when you want to expose a function from the
> objecthandler through *ohgensrc*.
>
> My guess is because the files in rules, addins, stubs... for the C++
> have
> not been updated.
> I have tried to have a look to see what is missing but if someone
> could give
> a direction, that would be great.

I beleive the autogeneration of the OH functions should be working.  
For example, if you look in file...

     ObjectHandler/gensrc/metadata/functions/logging.xml

...under function ohLogSetFile you find <SupportedPlatform
name='Cpp'/>.  And if you look in file...

     QuantLibAddin/Clients/Cpp/qlademo.cpp

...you see that function ohLogSetFile() is called successfully.

So it should just be a question of copying what's there.  After editing
the XML file you need to rebuild.  If using Visual C++ under Windows
then you would rebuild the ohgensrc project.  If using automake under
linux you would invoke make in directory ObjectHandler/gensrc.

Regards,
Eric

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users