Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATXMLObject::WriteToStream
CATResult CATXMLObject::WriteToStream ( CATStream stream  ) 

WriteToStream() is a recursive function that writes the object and its children to a stream as XML.

You must open the stream and write the header out first, then call this on the top level nodes to create a valid XML file.

Parameters:
stream - the opened stream to write to.
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 223 of file CATXMLObject.cpp.

References CAT_ERR_STREAM_INVALID, CAT_SUCCESS, CATFAILED, CATRESULT, CATString::Escape(), fAttribs, fType, GetChild(), GetNumChildren(), CATStream::IsOpen(), CATString::Length(), CATString::SetCodePage(), CATStream::Write(), and WriteToStream().

Referenced by CATXMLParser::Write(), and WriteToStream().


Generated on Mon Feb 11 04:11:28 2008 for Game Accessibility Suite by doxygen 1.5.4