void WidgetLookManager::writeWidgetLookToStream(const String& name, OutStream& out_stream) const { // start of file writeFalagardXMLHeadToStream(out_stream); try { // output the desired widget look data getWidgetLook(name).writeXMLToStream(out_stream); } catch (UnknownObjectException) { Logger::getSingleton().logEvent("WidgetLookManager::writeWidgetLookToStream - Failed to write widget look XML data to stream.", Errors); } // close the root tags to terminate the file writeFalagardXMLTailToStream(out_stream); }
void WidgetLookManager::writeWidgetLookToStream(const String& name, OutStream& out_stream) const { // start of file // output xml header XMLSerializer xml(out_stream); // output root element xml.openTag("Falagard"); try { // output the desired widget look data getWidgetLook(name).writeXMLToStream(xml); } catch (UnknownObjectException&) { Logger::getSingleton().logEvent("WidgetLookManager::writeWidgetLookToStream - Failed to write widget look XML data to stream.", Errors); } // close the root tags to terminate the file xml.closeTag(); }