#include <XmlWriter.h>
Public Member Functions | |
XmlWriter (QIODevice *device, QTextCodec *codec=0) | |
~XmlWriter () | |
void | writeRaw (const QString &xml) |
void | writeString (const QString &string) |
void | writeOpenTag (const QString &name, const AttrMap &attrs=AttrMap()) |
void | writeCloseTag (const QString &name) |
void | writeAtomTag (const QString &name, const AttrMap &attrs=AttrMap()) |
void | writeTaggedString (const QString &name, const QString &string, const AttrMap &attrs=AttrMap()) |
void | newLine () |
void | setIndentSize (int size) |
void | setAutoNewLine (bool on) |
Private Member Functions | |
QString | protect (const QString &string) |
QString | opening (const QString &tag, const AttrMap &attrs=AttrMap()) |
void | writePendingIndent () |
Private Attributes | |
QTextStream | out |
QString | indentStr |
int | indentSize |
bool | autoNewLine |
bool | atBeginningOfLine |
Definition at line 46 of file XmlWriter.h.
XmlWriter::XmlWriter | ( | QIODevice * | device, | |
QTextCodec * | codec = 0 | |||
) |
XmlWriter::~XmlWriter | ( | ) |
void XmlWriter::writeRaw | ( | const QString & | xml | ) |
Definition at line 89 of file XmlWriter.cpp.
References atBeginningOfLine, and out.
Referenced by IndicatorSummary::createDataWindow().
void XmlWriter::writeString | ( | const QString & | string | ) |
Definition at line 95 of file XmlWriter.cpp.
References atBeginningOfLine, out, and protect().
Referenced by writeTaggedString().
Definition at line 101 of file XmlWriter.cpp.
References autoNewLine, indentSize, indentStr, newLine(), opening(), out, and writePendingIndent().
Referenced by IndicatorSummary::createDataWindow().
void XmlWriter::writeCloseTag | ( | const QString & | name | ) |
Definition at line 110 of file XmlWriter.cpp.
References autoNewLine, indentSize, indentStr, newLine(), opening(), out, and writePendingIndent().
Referenced by IndicatorSummary::createDataWindow().
Definition at line 119 of file XmlWriter.cpp.
References autoNewLine, newLine(), opening(), out, and writePendingIndent().
void XmlWriter::writeTaggedString | ( | const QString & | name, | |
const QString & | string, | |||
const AttrMap & | attrs = AttrMap() | |||
) |
Definition at line 129 of file XmlWriter.cpp.
References autoNewLine, newLine(), opening(), out, writePendingIndent(), and writeString().
Referenced by IndicatorSummary::createDataWindow().
void XmlWriter::newLine | ( | ) |
Definition at line 83 of file XmlWriter.cpp.
References atBeginningOfLine, and out.
Referenced by IndicatorSummary::createDataWindow(), writeAtomTag(), writeCloseTag(), writeOpenTag(), and writeTaggedString().
void XmlWriter::setIndentSize | ( | int | size | ) | [inline] |
Definition at line 60 of file XmlWriter.h.
References indentSize.
Referenced by IndicatorSummary::createDataWindow().
void XmlWriter::setAutoNewLine | ( | bool | on | ) | [inline] |
Definition at line 61 of file XmlWriter.h.
References autoNewLine.
Referenced by IndicatorSummary::createDataWindow().
QString XmlWriter::protect | ( | const QString & | string | ) | [private] |
Definition at line 52 of file XmlWriter.cpp.
Referenced by opening(), writeString(), and XmlWriter().
Definition at line 63 of file XmlWriter.cpp.
References protect().
Referenced by writeAtomTag(), writeCloseTag(), writeOpenTag(), and writeTaggedString().
void XmlWriter::writePendingIndent | ( | ) | [private] |
Definition at line 75 of file XmlWriter.cpp.
References atBeginningOfLine, indentStr, and out.
Referenced by writeAtomTag(), writeCloseTag(), writeOpenTag(), and writeTaggedString().
QTextStream XmlWriter::out [private] |
Definition at line 68 of file XmlWriter.h.
Referenced by newLine(), writeAtomTag(), writeCloseTag(), writeOpenTag(), writePendingIndent(), writeRaw(), writeString(), writeTaggedString(), XmlWriter(), and ~XmlWriter().
QString XmlWriter::indentStr [private] |
Definition at line 69 of file XmlWriter.h.
Referenced by writeCloseTag(), writeOpenTag(), and writePendingIndent().
int XmlWriter::indentSize [private] |
Definition at line 70 of file XmlWriter.h.
Referenced by setIndentSize(), writeCloseTag(), and writeOpenTag().
bool XmlWriter::autoNewLine [private] |
Definition at line 71 of file XmlWriter.h.
Referenced by setAutoNewLine(), writeAtomTag(), writeCloseTag(), writeOpenTag(), writeTaggedString(), and ~XmlWriter().
bool XmlWriter::atBeginningOfLine [private] |
Definition at line 72 of file XmlWriter.h.
Referenced by newLine(), writePendingIndent(), writeRaw(), writeString(), and ~XmlWriter().