else
fp << "\n";
- bool abstract = object->Get("abstract");
Dictionary::Ptr debug_hints = object->Get("debug_hints");
- if (abstract)
- fp << "Template '";
- else
- fp << "Object '";
-
- fp << ConsoleColorTag(Console_ForegroundBlue | Console_Bold) << internal_name << ConsoleColorTag(Console_Normal) << "'";
+ fp << "Object " << ConsoleColorTag(Console_ForegroundBlue | Console_Bold) << internal_name << ConsoleColorTag(Console_Normal) << "'";
fp << " of type '" << ConsoleColorTag(Console_ForegroundMagenta | Console_Bold) << type << ConsoleColorTag(Console_Normal) << "':\n";
PrintProperties(fp, properties, debug_hints, 2);
Dictionary::Ptr ConfigItem::GetProperties(void)
{
ASSERT(!OwnsLock());
+ VERIFY(!IsAbstract());
ObjectLock olock(this);
BOOST_FOREACH(const ItemMap::value_type& kv, m_Items) {
ConfigItem::Ptr item = kv.second;
+ if (item->IsAbstract())
+ continue;
+
Dictionary::Ptr persistentItem = make_shared<Dictionary>();
persistentItem->Set("type", item->GetType());
persistentItem->Set("name", item->GetName());
- persistentItem->Set("abstract", item->IsAbstract());
persistentItem->Set("properties", item->GetProperties());
persistentItem->Set("debug_hints", item->GetDebugHints());