#include <SAXPrint_Handler.h>
Inheritance diagram for ACEXML_SAXPrint_Handler:
Public Member Functions | |
ACEXML_SAXPrint_Handler (const ACEXML_Char *name) | |
virtual | ~ACEXML_SAXPrint_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)) |
void | inc_indent () |
void | dec_indent () |
void | print_indent () |
Private Attributes | |
size_t | indent_ |
ACEXML_Char * | fileName_ |
ACEXML_Locator * | locator_ |
This SAX event handler try to regenerate the XML document it reads with correct indentation.
Definition at line 26 of file SAXPrint_Handler.h.
|
Definition at line 11 of file SAXPrint_Handler.cpp. References ACEXML_Char.
|
|
Definition at line 17 of file SAXPrint_Handler.cpp.
00018 { 00019 delete [] this->fileName_; 00020 } |
|
Receive notification of character data. Reimplemented from ACEXML_DefaultHandler. Definition at line 23 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00027 { 00028 00029 ACE_UNUSED_ARG (start); 00030 ACE_UNUSED_ARG (length); 00031 ACE_DEBUG ((LM_DEBUG, 00032 ACE_TEXT ("%s"), 00033 cdata)); 00034 } |
|
Definition at line 10 of file SAXPrint_Handler.i. References indent_.
00011 { 00012 this->indent_ -= 1; 00013 } |
|
Receive notification of the end of a document. Reimplemented from ACEXML_DefaultHandler. Definition at line 37 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, and LM_DEBUG.
00039 { 00040 00041 00042 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n"))); 00043 } |
|
Receive notification of the end of an element. Reimplemented from ACEXML_DefaultHandler. Definition at line 46 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00051 { 00052 00053 00054 this->dec_indent (); 00055 this->print_indent (); 00056 ACE_DEBUG ((LM_DEBUG, 00057 ACE_TEXT ("</%s>"), 00058 qName)); 00059 } |
|
End the scope of a prefix-URI mapping. Reimplemented from ACEXML_DefaultHandler. |
|
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. |
|
Definition at line 4 of file SAXPrint_Handler.i. References indent_.
00005 { 00006 this->indent_ += 1; 00007 } |
|
Receive notification of a notation declaration event. Reimplemented from ACEXML_DefaultHandler. |
|
Definition at line 239 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, indent_, and LM_DEBUG.
|
|
Receive notification of a processing instruction. Reimplemented from ACEXML_DefaultHandler. Definition at line 85 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00089 { 00090 00091 00092 this->print_indent (); 00093 ACE_DEBUG ((LM_DEBUG, 00094 ACE_TEXT ("<?%s %s>\n"), 00095 target, data)); 00096 } |
|
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 99 of file SAXPrint_Handler.cpp.
00100 { 00101 00102 this->locator_ = locator; 00103 //ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("* Event setDocumentLocator () ***************\n"))); 00104 } |
|
Receive notification of a skipped entity. Reimplemented from ACEXML_DefaultHandler. Definition at line 107 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, ACEXML_Char, and LM_DEBUG.
00110 { 00111 00112 00113 ACE_DEBUG ((LM_DEBUG, 00114 ACE_TEXT ("* Event skippedEntity (%s) ***************\n"), 00115 name)); 00116 } |
|
Receive notification of the beginning of a document. Reimplemented from ACEXML_DefaultHandler. Definition at line 119 of file SAXPrint_Handler.cpp. References ACE_DEBUG, ACE_TEXT, and LM_DEBUG.
00121 { 00122 00123 00124 ACE_DEBUG ((LM_DEBUG, 00125 ACE_TEXT ("* Event startDocument () ***************\n"))); 00126 } |
|
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. |
|
Receive notification of an unparsed entity declaration event. Reimplemented from ACEXML_DefaultHandler. |
|
Receive notification of a warning. Reimplemented from ACEXML_DefaultHandler. |
|
Definition at line 188 of file SAXPrint_Handler.h. |
|
Definition at line 187 of file SAXPrint_Handler.h. Referenced by dec_indent(), inc_indent(), and print_indent(). |
|
Definition at line 189 of file SAXPrint_Handler.h. |