#include <SkXMLWriter.h>
|
| SkXMLStreamWriter (SkWStream *, uint32_t flags=0) |
|
| ~SkXMLStreamWriter () override |
|
void | writeHeader () override |
|
| SkXMLWriter (bool doEscapeMarkup=true) |
|
virtual | ~SkXMLWriter () |
|
void | addS32Attribute (const char name[], int32_t value) |
|
void | addAttribute (const char name[], const char value[]) |
|
void | addAttributeLen (const char name[], const char value[], size_t length) |
|
void | addHexAttribute (const char name[], uint32_t value, int minDigits=0) |
|
void | addScalarAttribute (const char name[], SkScalar value) |
|
void | addText (const char text[], size_t length) |
|
void | endElement () |
|
void | startElement (const char elem[]) |
|
void | startElementLen (const char elem[], size_t length) |
|
void | writeDOM (const SkDOM &, const SkDOM::Node *, bool skipRoot) |
|
void | flush () |
|
virtual void | writeHeader () |
|
Definition at line 64 of file SkXMLWriter.h.
◆ anonymous enum
anonymous enum : uint32_t |
◆ SkXMLStreamWriter()
SkXMLStreamWriter::SkXMLStreamWriter |
( |
SkWStream * |
stream, |
|
|
uint32_t |
flags = 0 |
|
) |
| |
◆ ~SkXMLStreamWriter()
SkXMLStreamWriter::~SkXMLStreamWriter |
( |
| ) |
|
|
override |
◆ onAddAttributeLen()
void SkXMLStreamWriter::onAddAttributeLen |
( |
const char |
name[], |
|
|
const char |
value[], |
|
|
size_t |
length |
|
) |
| |
|
overrideprotectedvirtual |
Implements SkXMLWriter.
Definition at line 201 of file SkXMLWriter.cpp.
201 {
208}
virtual bool write(const void *buffer, size_t size)=0
bool writeText(const char text[])
SkTDArray< Elem * > fElems
DEF_SWITCHES_START aot vmservice shared library name
◆ onAddText()
void SkXMLStreamWriter::onAddText |
( |
const char |
text[], |
|
|
size_t |
length |
|
) |
| |
|
overrideprotectedvirtual |
Implements SkXMLWriter.
Definition at line 210 of file SkXMLWriter.cpp.
210 {
211 Elem* elem =
fElems.back();
212
213 if (!elem->fHasChildren && !elem->fHasText) {
215 this->newline();
216 }
217
218 this->tab(
fElems.size() + 1);
220 this->newline();
221}
◆ onEndElement()
void SkXMLStreamWriter::onEndElement |
( |
| ) |
|
|
overrideprotectedvirtual |
Implements SkXMLWriter.
Definition at line 223 of file SkXMLWriter.cpp.
223 {
225 if (elem->fHasChildren || elem->fHasText) {
230 } else {
232 }
233 this->newline();
235}
◆ onStartElementLen()
void SkXMLStreamWriter::onStartElementLen |
( |
const char |
elem[], |
|
|
size_t |
length |
|
) |
| |
|
overrideprotectedvirtual |
Implements SkXMLWriter.
Definition at line 237 of file SkXMLWriter.cpp.
237 {
240
242 this->newline();
243 }
244
248}
bool doStart(const char name[], size_t length)
◆ writeHeader()
void SkXMLStreamWriter::writeHeader |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: