Beispiel #1
0
void
Group::DeserializeChildren(const wxXmlNode& root)
{
	wxXmlNode *child = root.GetChildren();
	while (child != NULL)
	{
		wxString uid = XML::GetStringAttribute(*child, wxT("uid"));
		Persistent *obj = Persistent::GetObjectByUID(uid);
		obj->Deserialize(*child);
		Shape *shape = static_cast<Shape *>(obj);
		shape->SetParent(this);
		m_children.Add(shape);
		child = child->GetNext();
	}
}