forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCallFrameScope.cpp
More file actions
30 lines (25 loc) · 775 Bytes
/
Copy pathCallFrameScope.cpp
File metadata and controls
30 lines (25 loc) · 775 Bytes
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
#include "CallFrameScope.h"
CallFrameScope::CallFrameScope() {}
CallFrameScope::~CallFrameScope() {}
void CallFrameScope::FromJSON(const JSONItem& json)
{
m_type = json.namedObject("type").toString();
m_name = json.namedObject("name").toString();
m_remoteObject.FromJSON(json.namedObject("object"));
}
JSONItem CallFrameScope::ToJSON(const wxString& name) const
{
JSONItem json = JSONItem::createObject(name);
json.addProperty("type", m_type);
if(!m_name.IsEmpty()) { json.addProperty("name", m_name); }
json.append(m_remoteObject.ToJSON("object"));
return json;
}
wxString CallFrameScope::GetDisplayName() const
{
if(GetName().IsEmpty()) {
return GetType();
} else {
return GetName() + " : " + GetType();
}
}