-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJsonStthm.natvis
28 lines (25 loc) · 1.54 KB
/
JsonStthm.natvis
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
<?xml version='1.0' encoding='utf-8'?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="JsonStthm::JsonValue">
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_NULL">(NULL)</DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_OBJECT">(Object)</DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_ARRAY">(Array) </DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_STRING">(String): {m_oValue.String,s}</DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_BOOLEAN">(Boolean): {m_oValue.Boolean}</DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_INTEGER">(Integer): {m_oValue.Integer}</DisplayString>
<DisplayString Condition="m_eType == JsonStthm::JsonValue::E_TYPE_FLOAT">(Float): {m_oValue.Float}</DisplayString>
<StringView Condition="m_eType == JsonStthm::JsonValue::E_TYPE_STRING">m_oValue.String</StringView>
<Expand>
<LinkedListItems Condition="m_eType == JsonStthm::JsonValue::E_TYPE_OBJECT">
<HeadPointer>m_oValue.Childs.m_pFirst</HeadPointer>
<NextPointer>m_pNext</NextPointer>
<ValueNode Name="{(*this).m_pName,s}">*this</ValueNode>
</LinkedListItems>
<LinkedListItems Condition="m_eType == JsonStthm::JsonValue::E_TYPE_ARRAY">
<HeadPointer>m_oValue.Childs.m_pFirst</HeadPointer>
<NextPointer>m_pNext</NextPointer>
<ValueNode>*this</ValueNode>
</LinkedListItems>
</Expand>
</Type>
</AutoVisualizer>