void XMLSerializable::writeFragment(ostream & output, int iTabs)
{
	for(int i = 0; i < iTabs; i++)
	{
		output << "\t";
	}

	output << "<" << dumpObject() << ">";
	writeDataAsFragment(output, iTabs);
	output "</" << dumpObject() << ">";
}
Example #2
0
void Consumable::writeFragment(ostream & output)
{
	output<<" <Consumable>" <<endl;
	writeDataAsFragment(output);
	output<< " </Consumable>"<<endl;
}
void Entity::writeFragment( std::ostream & output ) {
	output << "\t<Entity>" << std::endl;
	writeDataAsFragment( output );
	output << "\t</Entity>" << std::endl;
}
void Creature::writeFragment( std::ostream & output ) {
	output << "\t<Creature>" << std::endl;
	writeDataAsFragment( output );
	output << "\t</Creature>" << std::endl;
}
Example #5
0
void Item::writeFragment(ostream & output)
{
	output<<" <Item>" <<endl;
	writeDataAsFragment(output);
	output<< " </Item>"<<endl;
}
Example #6
0
void Gold::writeFragment(std::ostream & output)
{
	output << "	<Gold>" << std::endl;
	writeDataAsFragment(output);
	output << "	</Gold>" << std::endl;
}
void Equipment::writeFragment( std::ostream & output ) {
	output << "\t<Equipment>" << std::endl;
	writeDataAsFragment( output );
	output << "\t</Equipment>" << std::endl;
}