Improve support for the Value class in the natvis extension

This commit is contained in:
Gunnar Beutner 2015-03-08 20:34:25 +01:00
parent 3ed85aea31
commit fb6cc2f6ed
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@
<Type Name="icinga::Value"> <Type Name="icinga::Value">
<DisplayString Condition="m_Value.which_ == 0">Empty</DisplayString> <DisplayString Condition="m_Value.which_ == 0">Empty</DisplayString>
<DisplayString>{m_Value}</DisplayString> <DisplayString Condition="m_Value.which_ == 1">{*(double *)m_Value.storage_.data_.buf}</DisplayString>
<DisplayString Condition="m_Value.which_ == 2">{*(double *)m_Value.storage_.data_.buf}</DisplayString>
<DisplayString Condition="m_Value.which_ == 3">{*(icinga::String *)m_Value.storage_.data_.buf}</DisplayString>
<DisplayString Condition="m_Value.which_ == 4">{*(boost::intrusive_ptr&lt;icinga::Object&gt; *)m_Value.storage_.data_.buf}</DisplayString>
</Type> </Type>
<Type Name="icinga::Array"> <Type Name="icinga::Array">