-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add visualization for a couple of QuantLib types in Visual Studio debugger #1028
Add visualization for a couple of QuantLib types in Visual Studio debugger #1028
Conversation
Is it enough to add them to the QuantLib project, or should they be added to the test-suite and examples as well? |
@igitur: Definitely something a VS programmer wants to have! Does <DisplayString>{year():0000}-{month():00}-{day():00}</DisplayString> work as well and produces This would be in line with //! output dates in ISO format (yyyy-mm-dd)
/*! \ingroup manips */
detail::iso_date_holder iso_date(const Date&); in |
It's sufficient to add it only to the QuantLib project. I tested the test-suite and an example project. Works 100%. |
I agree. I also tried to find format specifiers to achieve this, but couldn't. The format specifiers you mention also don't work. But I managed to do it with some integer maths where the tens and units parts are calculated separately. Update pushed. |
@ralfkonrad If you can think of other classes that could use special visualisation, please let me know. |
I guess this is because the "full" QuantLib project is referenced in the testsuite and examples: QuantLib/test-suite/testsuite.vcxproj Line 961 in e607238
Therefore the natvis is forewarded as well. I have not tested it yet but I do not expect it to work out of the box using |
For me the Other special visualisations might be
Besides that I think it will not work in a couple of interesting classes like |
@igitur I am not sure if you get informed about a comment on a closed PR without being mentioned, therefore this additional comment. |
As discussed in https://sourceforge.net/p/quantlib/mailman/message/37162962/
I see the embedded images were removed in the mailing list. That's a pity.
Anyway, the added Quantlib.natvis file enables better visualisation of QuantLib types in Visual Studio.