void XMLSerializable::writeFragment(ostream & output, int iTabs) { for(int i = 0; i < iTabs; i++) { output << "\t"; } output << "<" << dumpObject() << ">"; writeDataAsFragment(output, iTabs); output "</" << dumpObject() << ">"; }
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; }
void Item::writeFragment(ostream & output) { output<<" <Item>" <<endl; writeDataAsFragment(output); output<< " </Item>"<<endl; }
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; }