Login  Register

Re: Tutorial to use ObjectHandler outside of QuantLibXL

Posted by Eric Ehlers-3 on Aug 13, 2015; 4:03pm
URL: http://quantlib.414.s1.nabble.com/Tutorial-to-use-ObjectHandler-outside-of-QuantLibXL-tp16776p16779.html

Hi Lisa,

The ObjectHandler project includes an example project which
demonstrates how you would take a C++ static library and export it to
Excel and C++ using ObjectHandler.  This example is independent of
QuantLib.  It is documented here:

http://quantlib.org/objecthandler/installation.html

That document might be very slightly out of date as far as which
#include statements you need, please refer instead to the example
source code which is included with ObjectHandler.

That example has nothing to do with XLW so if you wanted to link XLW to
ObjectHandler then you would need to write the code for that yourself.

Kind Regards,
Eric

On Wed, 12 Aug 2015 07:21:16 -0700 (MST)
Lisa Ann <[hidden email]> wrote:

> Hi,
>
> among M. Joshi's (and others)  xlw
> <http://xlw.sourceforge.net/index.shtml> examples, a Visual C++ 2010
> solution named "ObjectCacheDemo.sln" is present. README.txt by
> Narinder Claire says:
>
> /It has been asked several times on a number of forums and mailing
> lists how to implement the feature of persistent objects in XLW. The
> standard response from the XLW developers, and rightly so, is to use
> ObjectHandler. However sometimes what is required is a very small and
> an extremely light-weight solution and some other times just a
> demonstration of how it could possibly be done. For these requests I
> have coded a VERY simple implementation of the feature just to
> illustrate the concept./
>
> Source code shows that permanent Excel objects use multiple
> inheritance to inherit features either from singleton< class T > and
> from std::map< std::string, class T >, hence no multiple instances of
> the same object can be created and std::map indexing method can be
> used to retrieve objects by using a descriptive std::string.
>
> I know that ObjectHandler is used by QuantLibXL to generate all the
> "obj_01270#0002"-like stuff in Excel cells, but I've not been able to
> find any documentation explaining how to include and use
> ObjectHandler classes and methods from scratch: assuming I take
> advantage of xlw's [cppinterface.h / source.cpp / xlwRapper.cpp /
> RunInterfaceGenerator] mechanism... I would like to know what to
> #include in my class and how to use ObjectHandler classes and methods
> to achieve the same result that QuantLibXL does.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://quantlib.10058.n7.nabble.com/Tutorial-to-use-ObjectHandler-outside-of-QuantLibXL-tp16776.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users