Yes, it could at least be extended with Peter's code for Arrays.
> I've managed to put together an EEAddIn. It works for me. I attach the
> source.
>
> You'll have to fix the references to QuantLib and Boost. After compilation,
> copy the .dll to your %ProgramFiles%\Microsoft Visual Studio
> 10.0\Common7\IDE\ directory and add this line to autoexp.dat:
>
> QuantLib::Date=$ADDIN(QuantLibEE.dll,AddIn_quantlibdate)
>
> Maybe this project can be extended for other types too.
>
> Francois Botha
>
>
> On 10 July 2014 11:58, Francois Botha <
[hidden email]> wrote:
>>
>> Thanks Michael and Peter.
>>
>> This is definitely a wonderful little hidden gem. Wish I knew about this
>> before. I adds a lot of value for the boost classes, but I can't get it to
>> work for Date. It seems you can use only data members, and not functions,
>> e.g. .dayOfMonth(). Do you know of a workaround? In the meantime I'm looking
>> into using EEAdIn (
>>
http://msdn.microsoft.com/en-us/library/8fwk67y3%28v=VS.90%29.aspx )
>>
>> Francois Botha
>>
>>
>> On 9 July 2014 21:02, Peter Caspers <
[hidden email]> wrote:
>>>
>>> Kim wrote something in the same line for QuantLib::Array some time ago
>>> (which may also serve as an example)
>>>
>>>
>>>
http://quantlib.10058.n7.nabble.com/Debugging-QuantLib-Array-in-msvc-td7565.html>>>
>>> Maybe it would be nice to collect such pretty printers for QuantLib
>>> types in the repository (for msvc, gdb, ...) ?
>>>
>>>
>>>
>>> On 9 July 2014 17:37, Michael Sharpe <
[hidden email]> wrote:
>>> > I haven't done this myself for Quantlib, and I don't have the time at
>>> > the
>>> > moment to help, but if you're using Visual Studio you need to add a
>>> > section
>>> > to a file called autoexp.dat. Here's a post on Stack Overflow with a
>>> > bunch
>>> > of links describing the process:
>>> >
http://stackoverflow.com/q/4883238/1181561>>> >
>>> >
>>> > On Wed, Jul 9, 2014 at 1:19 AM, Francois Botha <
[hidden email]>
>>> > wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> I was wondering how you guys debug Quantlib, specifically with
>>> >> reference
>>> >> to the dates. I'm from a .NET background, so when I put a breakpoint,
>>> >> and
>>> >> add some variables to my watches, the dates show in a human readable
>>> >> format.
>>> >>
>>> >> In C++, the Quantlib dates show only as the internal serial number. In
>>> >> the
>>> >> Visual Studio Immediate window, I can do someDate.year(),
>>> >> someDate.month()
>>> >> and someDate.dayOfMonth(), but that is quite cumbersome to do every
>>> >> time I
>>> >> want to see a dates human readable value.
>>> >>
>>> >> How do you guys do it?
>>> >>
>>> >> Francois Botha
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Open source business process management suite built on Java and
>>> >> Eclipse
>>> >> Turn processes into business applications with Bonita BPM Community
>>> >> Edition
>>> >> Quickly connect people, data, and systems into organized workflows
>>> >> Winner of BOSSIE, CODIE, OW2 and Gartner awards
>>> >>
http://p.sf.net/sfu/Bonitasoft>>> >> _______________________________________________
>>> >> QuantLib-dev mailing list
>>> >>
[hidden email]
>>> >>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev>>> >>
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Open source business process management suite built on Java and Eclipse
>>> > Turn processes into business applications with Bonita BPM Community
>>> > Edition
>>> > Quickly connect people, data, and systems into organized workflows
>>> > Winner of BOSSIE, CODIE, OW2 and Gartner awards
>>> >
http://p.sf.net/sfu/Bonitasoft>>> > _______________________________________________
>>> > QuantLib-dev mailing list
>>> >
[hidden email]
>>> >
https://lists.sourceforge.net/lists/listinfo/quantlib-dev>>> >
>>
>>
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
>
http://p.sf.net/sfu/Bonitasoft> _______________________________________________
> QuantLib-dev mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev>