Re: Question regarding range of strings in ObjectHandler

Posted by Eric Ehlers-2 on
URL: http://quantlib.414.s1.nabble.com/Question-regarding-range-of-strings-in-ObjectHandler-tp12078p12079.html

Hello,

On Thu, June 19, 2008 14:48, abdelkader ratnani wrote:
> Hi,
>
> I have just started using ObjectHandler framework; and I am
> really amazed
> about the overall professional work that was done so far.

Many thanks for the feedback.

> Actually I am struggling to make a String Range; I would like
> to implement
> the same thing as the class Range (which derives from Object)
> with a vector of strings instead of doubles. I have an error
> regarding the
> operttomatrix.
>
> Do you guys have any idea how I can make this class or maybe
> improve the
> existing Range to accept all types from excel?

Edit file ObjectHandler\gensrc\metadata\Functions\range.xml and
copy ohRange to a new class, say ohRange2, with datatype string
instead of double.

You will also need to create a modified copy of file
ObjectHandler\oh\ValueObjects\vo_range.hpp.  In the next
release of ObjectHandler this latter step will no longer be
necessary as this file is autogenerated.

When you rebuild the project, the code for the addin functions
should be created automatically and you should get an Excel
addin with your new ohRange2 class.

If you get stuck send another message and I'll send you a quick
demo project.

Regards,
Eric


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev