summaryrefslogtreecommitdiffstats
path: root/tools/debug/natvis/Visualizers/icinga2.natvis
blob: 0ec4b7847c275d7f9c34229c6219267b47adf2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version='1.0' encoding='utf-8'?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  <Type Name="icinga::String">
    <DisplayString>{m_Data}</DisplayString>
  </Type>

  <Type Name="icinga::Value">
    <DisplayString Condition="m_Value.which_ == 0">Empty</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 Name="icinga::Array">
    <DisplayString>{m_Data}</DisplayString>
    <Expand>
      <ExpandedItem>m_Data</ExpandedItem>
    </Expand>
  </Type>

  <Type Name="icinga::Dictionary">
    <DisplayString>{m_Data}</DisplayString>
    <Expand>
      <ExpandedItem>m_Data</ExpandedItem>
    </Expand>
  </Type>

  <Type Name="icinga::ObjectLock">
    <DisplayString>{m_Lock}</DisplayString>
  </Type>
</AutoVisualizer>