void WriteHeader(FILE * f, char *fname0, char *fname) { Fprintf(f, indent, "\nint %s%s(char *fname)\n", fname0, fname); Fprintf(f, indent, "{\n"); indent++; WriteDeclaration(f); }
void XmlWriter::WriteDocument(const Document& rDocument) { m_rStream.exceptions(std::ios::failbit | std::ios::badbit); WriteDeclaration(rDocument.GetDeclaration()); WriteElement(rDocument.GetRootElement()); }