locals->Set("__parent", m_Scope);
locals->Set("name", m_Name);
- DebugHint dhint;
m_Properties = make_shared<Dictionary>();
m_Properties->Set("type", m_Type);
if (!m_Zone.IsEmpty())
m_Properties->Set("zone", m_Zone);
m_Properties->Set("__parent", locals);
- GetExpressionList()->Evaluate(m_Properties, &dhint);
+ GetExpressionList()->Evaluate(m_Properties, &m_DebugHints);
m_Properties->Remove("__parent");
- m_DebugHints = dhint.ToDictionary();
String name = m_Name;
return m_Properties;
}
-Dictionary::Ptr ConfigItem::GetDebugHints(void) const
+const DebugHint& ConfigItem::GetDebugHints(void) const
{
return m_DebugHints;
}
persistentItem->Set("type", item->GetType());
persistentItem->Set("name", item->GetName());
persistentItem->Set("properties", item->GetProperties());
- persistentItem->Set("debug_hints", item->GetDebugHints());
+ persistentItem->Set("debug_hints", item->GetDebugHints().ToDictionary());
String json = JsonEncode(persistentItem);
Expression::Ptr GetExpressionList(void) const;
Dictionary::Ptr GetProperties(void);
- Dictionary::Ptr GetDebugHints(void) const;
+ const DebugHint& GetDebugHints(void) const;
DynamicObject::Ptr Commit(void);
void Register(void);
Expression::Ptr m_ExpressionList;
Dictionary::Ptr m_Properties;
- Dictionary::Ptr m_DebugHints;
+ DebugHint m_DebugHints;
std::vector<String> m_ParentNames; /**< The names of parent configuration
items. */
DebugInfo m_DebugInfo; /**< Debug information. */