#include <Print_Handler.h>
Inheritance diagram for ACEXML_Print_Handler:


Public Member Functions | |
| ACEXML_Print_Handler (ACEXML_Char *fileName) | |
| virtual | ~ACEXML_Print_Handler (void) |
| virtual void | characters (const ACEXML_Char *ch, int start, int length ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | endDocument (ACEXML_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | endElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | endPrefixMapping (const ACEXML_Char *prefix ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | ignorableWhitespace (const ACEXML_Char *ch, int start, int length ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | processingInstruction (const ACEXML_Char *target, const ACEXML_Char *data ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | setDocumentLocator (ACEXML_Locator *locator) |
| virtual void | skippedEntity (const ACEXML_Char *name ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | startDocument (ACEXML_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | startPrefixMapping (const ACEXML_Char *prefix, const ACEXML_Char *uri ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | notationDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | unparsedEntityDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId, const ACEXML_Char *notationName ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual ACEXML_InputSource * | resolveEntity (const ACEXML_Char *publicId, const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | error (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | fatalError (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
| virtual void | warning (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL) ACE_THROW_SPEC((ACEXML_SAXException)) |
Private Attributes | |
| ACEXML_Char * | fileName_ |
| ACEXML_Locator * | locator_ |
This SAX event handler prints out a detailed event report on every event it receives.
Definition at line 26 of file Print_Handler.h.
|
|
Definition at line 7 of file Print_Handler.cpp. References ACEXML_Char.
00008 : fileName_(ACE::strnew (fileName)) 00009 { 00010 00011 } |
|
|
Definition at line 13 of file Print_Handler.cpp. References fileName_.
00014 {
00015 delete[] this->fileName_;
00016 }
|
|
||||||||||||||||
|
Receive notification of character data. Reimplemented from ACEXML_DefaultHandler. Definition at line 19 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00023 {
00024
00025
00026 ACE_DEBUG ((LM_DEBUG,
00027 ACE_TEXT ("* Event characters () ** start: %d end: %d ***************\n%s\n- End event characters () ---------------\n"),
00028 start, length, cdata));
00029 }
|
|
|
Receive notification of the end of a document. Reimplemented from ACEXML_DefaultHandler. Definition at line 32 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, and LM_DEBUG.
00034 {
00035
00036
00037 ACE_DEBUG ((LM_DEBUG,
00038 ACE_TEXT ("* Event endDocument () ***************\n")));
00039 }
|
|
||||||||||||||||
|
Receive notification of the end of an element. Reimplemented from ACEXML_DefaultHandler. Definition at line 42 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00047 {
00048
00049
00050 ACE_DEBUG ((LM_DEBUG,
00051 ACE_TEXT ("* Event endElement (%s, %s, %s) ***************\n"),
00052 uri, name, qName));
00053 }
|
|
|
End the scope of a prefix-URI mapping. Reimplemented from ACEXML_DefaultHandler. Definition at line 56 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00059 {
00060
00061
00062 ACE_DEBUG ((LM_DEBUG,
00063 ACE_TEXT ("* Event endPrefixMapping (%s) ***************\n"),
00064 prefix));
00065 }
|
|
|
Receive notification of a recoverable error. Reimplemented from ACEXML_DefaultHandler. |
|
|
Receive notification of a non-recoverable error. Reimplemented from ACEXML_DefaultHandler. |
|
||||||||||||||||
|
Receive notification of ignorable whitespace in element content. Reimplemented from ACEXML_DefaultHandler. |
|
||||||||||||||||
|
Receive notification of a notation declaration event. Reimplemented from ACEXML_DefaultHandler. |
|
||||||||||||
|
Receive notification of a processing instruction. Reimplemented from ACEXML_DefaultHandler. Definition at line 79 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00083 {
00084
00085
00086 ACE_DEBUG ((LM_DEBUG,
00087 ACE_TEXT ("* Event processingInstruction (%s, %s) ***************\n"),
00088 target, data));
00089 }
|
|
||||||||||||
|
Allow the application to resolve external entities. Reimplemented from ACEXML_DefaultHandler. |
|
|
Receive an object for locating the origin of SAX document events. Reimplemented from ACEXML_DefaultHandler. Definition at line 92 of file Print_Handler.cpp.
00093 {
00094
00095 this->locator_ = locator;
00096 // ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("* Event setDocumentLocator () ***************\n")));
00097 }
|
|
|
Receive notification of a skipped entity. Reimplemented from ACEXML_DefaultHandler. Definition at line 100 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00103 {
00104
00105
00106 ACE_DEBUG ((LM_DEBUG,
00107 ACE_TEXT ("* Event skippedEntity (%s) ***************\n"),
00108 name));
00109 }
|
|
|
Receive notification of the beginning of a document. Reimplemented from ACEXML_DefaultHandler. Definition at line 112 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, and LM_DEBUG.
00114 {
00115
00116
00117 ACE_DEBUG ((LM_DEBUG,
00118 ACE_TEXT ("* Event startDocument () ***************\n")));
00119 }
|
|
||||||||||||||||||||
|
Receive notification of the beginning of an element. Reimplemented from ACEXML_DefaultHandler. |
|
||||||||||||
|
Begin the scope of a prefix-URI Namespace mapping. Reimplemented from ACEXML_DefaultHandler. Definition at line 145 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
|
|
||||||||||||||||||||
|
Receive notification of an unparsed entity declaration event. Reimplemented from ACEXML_DefaultHandler. Definition at line 182 of file Print_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00187 {
00188 ACE_DEBUG ((LM_DEBUG,
00189 ACE_TEXT ("* Unparsed Entity: %s"),
00190 name));
00191
00192 if (publicID == 0)
00193 ACE_DEBUG ((LM_DEBUG,
00194 ACE_TEXT (" SYSTEM %s"),
00195 systemID));
00196 else
00197 ACE_DEBUG ((LM_DEBUG,
00198 ACE_TEXT (" PUBLIC %s %s"),
00199 publicID, systemID));
00200
00201 ACE_DEBUG ((LM_DEBUG,
00202 ACE_TEXT (" NDATA %s\n"),
00203 notationName));
00204 }
|
|
|
Receive notification of a warning. Reimplemented from ACEXML_DefaultHandler. |
|
|
Definition at line 182 of file Print_Handler.h. Referenced by ~ACEXML_Print_Handler(). |
|
|
Definition at line 183 of file Print_Handler.h. |
1.3.6