ACEXML
6.1.0
|
ACEXML_Svcconf_Handler is an example SAX event handler. More...
#include <Svcconf_Handler.h>
Public Member Functions | |
ACEXML_Svcconf_Handler (void) | |
virtual | ~ACEXML_Svcconf_Handler (void) |
virtual void | characters (const ACEXML_Char *ch, int start, int length) |
virtual void | endDocument (void) |
virtual void | endElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName) |
virtual void | endPrefixMapping (const ACEXML_Char *prefix) |
virtual void | ignorableWhitespace (const ACEXML_Char *ch, int start, int length) |
virtual void | processingInstruction (const ACEXML_Char *target, const ACEXML_Char *data) |
virtual void | setDocumentLocator (ACEXML_Locator *locator) |
virtual void | skippedEntity (const ACEXML_Char *name) |
virtual void | startDocument (void) |
virtual void | startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *atts) |
virtual void | startPrefixMapping (const ACEXML_Char *prefix, const ACEXML_Char *uri) |
virtual void | notationDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId) |
virtual void | unparsedEntityDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId, const ACEXML_Char *notationName) |
virtual ACEXML_InputSource * | resolveEntity (const ACEXML_Char *publicId, const ACEXML_Char *systemId) |
virtual void | error (ACEXML_SAXParseException &exception) |
virtual void | fatalError (ACEXML_SAXParseException &exception) |
virtual void | warning (ACEXML_SAXParseException &exception) |
Protected Member Functions | |
int | get_stream_id (ACEXML_Attributes *alist) |
int | get_id (ACEXML_Attributes *alist) |
int | get_dynamic_attrs (ACEXML_Attributes *alist) |
int | get_initializer_attrs (ACEXML_Attributes *alist) |
int | get_static_attrs (ACEXML_Attributes *alist) |
Private Attributes | |
int | in_stream_def_ |
We are parsing a stream definition. | |
int | in_module_ |
We are defining a steam module. | |
ACE_Service_Type * | stream_svc_type_ |
stream_ holds the actually Stream_Type object managed by stream_svc_type_. | |
ACE_Stream_Type * | stream_ |
ACE_Parsed_Info | parsed_info_ |
ACE_Parsed_Info | stream_info_ |
ACEXML_Locator * | locator_ |
ACEXML_Svcconf_Handler is an example SAX event handler.
This SAX event handler try to regenerate the XML document it reads with correct indentation.
ACEXML_Svcconf_Handler::ACEXML_Svcconf_Handler | ( | void | ) |
ACEXML_Svcconf_Handler::~ACEXML_Svcconf_Handler | ( | void | ) | [virtual] |
void ACEXML_Svcconf_Handler::characters | ( | const ACEXML_Char * | ch, |
int | start, | ||
int | length | ||
) | [virtual] |
void ACEXML_Svcconf_Handler::endDocument | ( | void | ) | [virtual] |
Receive notification of the end of a document.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::endElement | ( | const ACEXML_Char * | namespaceURI, |
const ACEXML_Char * | localName, | ||
const ACEXML_Char * | qName | ||
) | [virtual] |
Receive notification of the end of an element.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::endPrefixMapping | ( | const ACEXML_Char * | prefix | ) | [virtual] |
End the scope of a prefix-URI mapping.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::error | ( | ACEXML_SAXParseException & | exception | ) | [virtual] |
Receive notification of a recoverable error.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::fatalError | ( | ACEXML_SAXParseException & | exception | ) | [virtual] |
Receive notification of a non-recoverable error.
Reimplemented from ACEXML_DefaultHandler.
int ACEXML_Svcconf_Handler::get_dynamic_attrs | ( | ACEXML_Attributes * | alist | ) | [protected] |
Get the dynamic tag attributes.
int ACEXML_Svcconf_Handler::get_id | ( | ACEXML_Attributes * | alist | ) | [protected] |
Get the only attribute in <resume>, <suspend>, <remove>
int ACEXML_Svcconf_Handler::get_initializer_attrs | ( | ACEXML_Attributes * | alist | ) | [protected] |
Get the initializer tag attributes.
int ACEXML_Svcconf_Handler::get_static_attrs | ( | ACEXML_Attributes * | alist | ) | [protected] |
Get the static tag attributes.
int ACEXML_Svcconf_Handler::get_stream_id | ( | ACEXML_Attributes * | alist | ) | [protected] |
Get the only attribute in <stream> or <streamdef>.
void ACEXML_Svcconf_Handler::ignorableWhitespace | ( | const ACEXML_Char * | ch, |
int | start, | ||
int | length | ||
) | [virtual] |
Receive notification of ignorable whitespace in element content.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::notationDecl | ( | const ACEXML_Char * | name, |
const ACEXML_Char * | publicId, | ||
const ACEXML_Char * | systemId | ||
) | [virtual] |
Receive notification of a notation declaration event.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::processingInstruction | ( | const ACEXML_Char * | target, |
const ACEXML_Char * | data | ||
) | [virtual] |
Receive notification of a processing instruction.
Reimplemented from ACEXML_DefaultHandler.
ACEXML_InputSource * ACEXML_Svcconf_Handler::resolveEntity | ( | const ACEXML_Char * | publicId, |
const ACEXML_Char * | systemId | ||
) | [virtual] |
Allow the application to resolve external entities.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::setDocumentLocator | ( | ACEXML_Locator * | locator | ) | [virtual] |
Receive an object for locating the origin of SAX document events.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::skippedEntity | ( | const ACEXML_Char * | name | ) | [virtual] |
Receive notification of a skipped entity.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::startDocument | ( | void | ) | [virtual] |
Receive notification of the beginning of a document.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::startElement | ( | const ACEXML_Char * | namespaceURI, |
const ACEXML_Char * | localName, | ||
const ACEXML_Char * | qName, | ||
ACEXML_Attributes * | atts | ||
) | [virtual] |
Receive notification of the beginning of an element.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::startPrefixMapping | ( | const ACEXML_Char * | prefix, |
const ACEXML_Char * | uri | ||
) | [virtual] |
Begin the scope of a prefix-URI Namespace mapping.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::unparsedEntityDecl | ( | const ACEXML_Char * | name, |
const ACEXML_Char * | publicId, | ||
const ACEXML_Char * | systemId, | ||
const ACEXML_Char * | notationName | ||
) | [virtual] |
Receive notification of an unparsed entity declaration event.
Reimplemented from ACEXML_DefaultHandler.
void ACEXML_Svcconf_Handler::warning | ( | ACEXML_SAXParseException & | exception | ) | [virtual] |
Receive notification of a warning.
Reimplemented from ACEXML_DefaultHandler.
int ACEXML_Svcconf_Handler::in_module_ [private] |
We are defining a steam module.
int ACEXML_Svcconf_Handler::in_stream_def_ [private] |
We are parsing a stream definition.
ACEXML_Locator* ACEXML_Svcconf_Handler::locator_ [private] |
ACE_Stream_Type* ACEXML_Svcconf_Handler::stream_ [private] |
stream_ holds the actually Stream_Type object managed by stream_svc_type_.