#include <outputsaxreceptor.h>
Inheritance diagram for OutputSAXReceptor:
Public Methods | |
OutputSAXReceptor (void) | |
A constructor. More... | |
OutputSAXReceptor (IODevice *outDevice) | |
A constructor. More... | |
virtual | ~OutputSAXReceptor (void) |
A destructor. More... | |
virtual void | setOutputDevice (IODevice *outDevice) |
Set output device. More... | |
virtual void | reportError (void) |
Report error messages. More... | |
virtual void | startElement (void *userData, const XmlChar *name, const XmlChar **atts) |
Start element handler. More... | |
virtual void | endElement (void *userData, const XmlChar *name) |
End element handler. More... | |
virtual void | characterData (void *userData, const XmlChar *data, int length) |
Character data handler. More... | |
virtual void | processingInstruction (void *userData, const XmlChar *target, const XmlChar *data) |
Processing instruction handler. More... | |
virtual void | comment (void *userData, const XmlChar *data) |
Comment handler. More... | |
virtual void | startCDATASection (void *userData) |
Start CDATA section handler. More... | |
virtual void | endCDATASection (void *userData) |
End CDATA section handler. More... | |
virtual void | defaultHandler (void *userData, const XmlChar *data, int length) |
Default handler. More... | |
virtual int | unknownEncoding (void *unknownEncodingData, const XmlChar *name, XML_Encoding *info) |
Unknown encoding handler. More... | |
virtual void | xmlDecl (void *userData, const XmlChar *version, const XmlChar *encoding, int standalone) |
XML declaration handler. More... | |
virtual void | startDoctypeDecl (void *userData, const XmlChar *doctypeName, const XmlChar *systemId, const XmlChar *publicId, int hasInternalSubset) |
Start doctype handler. More... | |
virtual void | endDoctypeDecl (void *userData) |
End doctype handler. More... | |
virtual void | entityDecl (void *userData, const XmlChar *entityName, int isParameterEntity, const XmlChar *value, int valueLength, const XmlChar *base, const XmlChar *systemId, const XmlChar *publicId, const XmlChar *notationName) |
Entity declaration handler. More... | |
virtual void | notationDecl (void *userData, const XmlChar *notationName, const XmlChar *base, const XmlChar *systemId, const XmlChar *publicId) |
Notation declaration handler. More... | |
Protected Methods | |
void | init (void) |
Initialize the receptor. More... | |
Protected Attributes | |
IODevice * | outputDevice |
Pointer to the input device. | |
bool | dtdHasInternalSubset |
Has the DTD an internal subset? | |
bool | inCDATA |
Are we located in the CDATA section? |
The receptor translates incoming SAX events into a stream of XML data, and writes it to the output device.
Definition at line 45 of file outputsaxreceptor.h.
|
A constructor. Initialization of the receptor is performed by call to init(). The output device is set to NULL. Definition at line 93 of file outputsaxreceptor.cpp. References init, and outputDevice. |
|
A constructor. Initialization of the receptor is performed by call to init(). The output device is set to given device.
Definition at line 107 of file outputsaxreceptor.cpp. References init, and outputDevice. |
|
A destructor. The instance of TextCodec is deleted. Definition at line 118 of file outputsaxreceptor.cpp. References UserOfTextCodec::deleteDefaultTextCodec. |
|
Character data handler. Examines the character data and emits an event to the XML model. If the data contain characters &, ', ", < or >, these are substituted by corresponding entities (&, ', ", < or >).
Reimplemented from SAXBase. Definition at line 224 of file outputsaxreceptor.cpp. References AMP_REPLACEMENT, ENT_AMP, ENT_APOS, ENT_GT, ENT_LT, ENT_QUOT, inCDATA, OUTPUT_TO_DEVICE, OUTPUT_TO_DEVICE_CHAR, OUTPUT_TO_DEVICE_LENGTH, and XmlChar. |
|
Comment handler. Outputs corresponding string to the output device.
Reimplemented from SAXBase. Definition at line 309 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, and XmlChar. |
|
Default handler. Outputs the string of given length to the output device.
Reimplemented from SAXBase. Definition at line 352 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE_LENGTH, and XmlChar. |
|
End CDATA section handler. Outputs corresponding string to the output device.
Reimplemented from SAXBase. Definition at line 337 of file outputsaxreceptor.cpp. References inCDATA, and OUTPUT_TO_DEVICE. |
|
End doctype handler. Outputs the end the DTD declaration.
Reimplemented from SAXBase. Definition at line 481 of file outputsaxreceptor.cpp. References dtdHasInternalSubset, and OUTPUT_TO_DEVICE. |
|
End element handler. Examines the name of the element and emits corresponding event to the XML model.
Reimplemented from SAXBase. Definition at line 204 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, and XmlChar. |
|
Entity declaration handler. Outputs the entity declaration.
Reimplemented from SAXBase. Definition at line 508 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, OUTPUT_TO_DEVICE_LENGTH, and XmlChar. |
|
Initialize the receptor. Initializes some state variables. Definition at line 127 of file outputsaxreceptor.cpp. References dtdHasInternalSubset, and inCDATA. Referenced by OutputSAXReceptor. |
|
Notation declaration handler. Outputs the notation declaration.
Reimplemented from SAXBase. Definition at line 569 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, and XmlChar. |
|
Processing instruction handler. Examines the description of the processing instruction and outputs corresponding string to the output device.
Reimplemented from SAXBase. Definition at line 286 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, XmlChar, and xmlchar_strlen. |
|
Report error messages. Used for reporting error messages generated by Expat. Reimplemented from SAXBase. Definition at line 154 of file outputsaxreceptor.cpp. References FATAL. |
|
Set output device. Sets the output device used by the receptor for output.
Definition at line 140 of file outputsaxreceptor.cpp. References outputDevice. |
|
Start CDATA section handler. Outputs corresponding string to the output device.
Reimplemented from SAXBase. Definition at line 324 of file outputsaxreceptor.cpp. References inCDATA, and OUTPUT_TO_DEVICE. |
|
Start doctype handler. Outputs the start of the DTD declaration.
Reimplemented from SAXBase. Definition at line 438 of file outputsaxreceptor.cpp. References dtdHasInternalSubset, OUTPUT_TO_DEVICE, and XmlChar. |
|
Start element handler. Examines the name of the element and the values of its attributes and emits corresponding events to the XML model.
Reimplemented from SAXBase. Definition at line 170 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, and XmlChar. |
|
Unknown encoding handler. Does nothing.
Reimplemented from SAXBase. Definition at line 370 of file outputsaxreceptor.cpp. References XmlChar. |
|
XML declaration handler. Outputs the XML declaration to the output device.
Reimplemented from SAXBase. Definition at line 388 of file outputsaxreceptor.cpp. References OUTPUT_TO_DEVICE, and XmlChar. |