|
|
 |
 |
|
#include <asn1XerCppTypes.h>
Inheritance diagram for ASN1XERSAXDecodeHandler:
List of all members.
Detailed Description
This class is derived from the SAX class DefaultHandler base class. It contains variables and methods specific to XML decoding ASN.1 messages. It is used to intercept standard SAX parser events, such as startElement, characters, endElement. This class is used as a base class for XER ASN1C generated ASN1C_* classes.
|
Public Member Functions |
| | ASN1XERSAXDecodeHandler () |
| virtual void | startElement (const XMLCHAR *const uri, const XMLCHAR *const localname, const XMLCHAR *const qname, const XMLCHAR *const *attrs) |
| virtual void | characters (const XMLCHAR *const chars, const unsigned int length) |
| virtual void | endElement (const XMLCHAR *const uri, const XMLCHAR *const localname, const XMLCHAR *const qname) |
|
virtual void | startDocument () |
|
virtual void | endDocument () |
|
virtual void | resetErrorInfo () |
|
virtual void | setErrorInfo (int status, const char *file=0, int line=0) |
|
virtual int | getErrorInfo (int *status, const char **file, int *line) |
| ASN1XERState | getState () |
|
virtual void | finalize () |
|
ASN1CTXT * | finalizeMemBuf (ASN1MessageBufferIF *msgBuf, ASN1MemBuf &memBuf) |
|
virtual void | init (int level=0) |
| ASN1BOOL | isComplete () |
|
void | setTypeName (const char *typeName) |
|
virtual void | throwSAXException (int stat, const char *file=0, int line=0) |
Protected Attributes |
|
ASN1XERState | mCurrState |
|
int | mCurrElemID |
|
int | mLevel |
|
int | mStartLevel |
|
const char * | mpTypeName |
|
ASN1XERSAXDecodeHandler::ErrorInfo | errorInfo |
Classes |
| struct | ErrorInfo |
Constructor & Destructor Documentation
| ASN1XERSAXDecodeHandler::ASN1XERSAXDecodeHandler |
( |
|
) |
[inline] |
|
|
|
Default constructor without parameters. |
Member Function Documentation
| virtual void ASN1XERSAXDecodeHandler::characters |
( |
const XMLCHAR *const |
chars, |
|
|
const unsigned int |
length |
|
) |
[virtual] |
|
|
|
Receive notification of character data.
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).
- Parameters:
-
| chars | The characters from the XML document. |
| length | The number of characters to read from the array. |
Implements OSXMLContentHandler. |
| virtual void ASN1XERSAXDecodeHandler::endElement |
( |
const XMLCHAR *const |
uri, |
|
|
const XMLCHAR *const |
localname, |
|
|
const XMLCHAR *const |
qname |
|
) |
[virtual] |
|
|
|
Receive notification of the end of an element.
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).
- Parameters:
-
| uri | The URI of the asscioated namespace for this element |
| localname | The local part of the element name |
| qname | The QName of this element |
Implements OSXMLContentHandler. |
| ASN1XERState ASN1XERSAXDecodeHandler::getState |
( |
|
) |
[inline] |
|
|
|
This method returns the current state of the decoding process.
- Returns:
- The state of the decoding process as type ASN1XERState. Can be XERINIT, XERSTART, XERDATA, or XEREND.
|
| ASN1BOOL ASN1XERSAXDecodeHandler::isComplete |
( |
|
) |
[inline] |
|
|
|
This method returns the completion status of the decoding process.
- Returns:
- The completion state of decoding process, as ASN1BOOL. Can be TRUE (completed) or FALSE (not completed).
|
| virtual void ASN1XERSAXDecodeHandler::startElement |
( |
const XMLCHAR *const |
uri, |
|
|
const XMLCHAR *const |
localname, |
|
|
const XMLCHAR *const |
qname, |
|
|
const XMLCHAR *const * |
attrs |
|
) |
[virtual] |
|
|
|
Receive notification of the beginning of an element.
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event.
Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): IMPLIED attributes will be omitted.
- Parameters:
-
| uri | The URI of the asscioated namespace for this element |
| localname | The local part of the element name |
| qname | The QName of this element |
| attrs | The attributes attached to the element, if any. |
Implements OSXMLContentHandler. |
The documentation for this class was generated from the following file:
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
8 Sep 2005. ASN1C XER Runtime, ASN1C v5.8x |
|