コード例 #1
0
	virtual void MapXMLTagsToMembers()
	{
		MapMember(m_pzElementary, "Elementary", sizeof(m_pzElementary));

		// Elements parse faster than attributes in the XMLFoundation - because after the first attribute has been detected in the XML
		// XMLObject needs to allocate and create a GHash which also constructs internal GBTrees.  This construction time should be 
		// considered in algorithm comparison data along with lookup, insert, delete, for example compare GHash and GSparshHash in this respect.
		// so we could make our numbers even better with an all Element no-Attribute design, but we dont handle attributes slow
		// - we just handle elements faster
		MapAttribute(m_pzAttributary, "Attributary", sizeof(m_pzAttributary));
	}
コード例 #2
0
	virtual void MapXMLTagsToMembers()
	{
		MapAttribute(&m_strName,"name");
		MapAttribute(&m_strValue,"value");
	}
コード例 #3
0
	virtual void MapXMLTagsToMembers()
	{
		MapAttribute(&m_strName,"name");
		MapMember(&m_lstNVP, GProfileEntry::GetStaticTag());
	}
コード例 #4
0
void GProfileEntry::MapXMLTagsToMembers()
{
	MapAttribute(&m_strName,"name");
	MapAttribute(&m_strValue,"value");
}