ASN1C C/C++ Common Runtime
ASN1C v7.6.x
|
#include <asn1CppEvtHndlr64.h>
Public Member Functions | |
virtual void | startElement (const char *name, OSSIZE index)=0 |
virtual void | endElement (const char *name, OSSIZE index)=0 |
virtual void | bitStrValue (OSSIZE numbits, const OSOCTET *data) |
virtual void | octStrValue (OSSIZE numocts, const OSOCTET *data) |
virtual void | charStrValue (OSSIZE nchars, const OSUTF8CHAR *value) |
virtual void | charStrValue (OSSIZE nchars, OSUNICHAR *data) |
virtual void | charStrValue (OSSIZE nchars, OS32BITCHAR *data) |
virtual void | openTypeValue (OSSIZE numocts, const OSOCTET *data) |
Public Member Functions inherited from Asn1NullEventHandler | |
virtual void | startElement (const char *, int) |
virtual void | endElement (const char *, int) |
Public Member Functions inherited from Asn1NamedEventHandler | |
virtual void | boolValue (OSBOOL value) |
virtual void | intValue (OSINT32 value) |
virtual void | uIntValue (OSUINT32 value) |
virtual void | int64Value (OSINT64 value) |
virtual void | uInt64Value (OSUINT64 value) |
virtual void | bitStrValue (OSUINT32 numbits, const OSOCTET *data) |
virtual void | octStrValue (OSUINT32 numocts, const OSOCTET *data) |
virtual void | charStrValue (const char *value) |
virtual void | charStrValue (OSUINT32 nchars, const OSUTF8CHAR *value) |
virtual void | charStrValue (OSUINT32 nchars, OSUNICHAR *data) |
virtual void | charStrValue (OSUINT32 nchars, OS32BITCHAR *data) |
virtual void | nullValue () |
virtual void | oidValue (OSUINT32 numSubIds, OSUINT32 *pSubIds) |
virtual void | realValue (double value) |
virtual void | enumValue (OSUINT32 value, const OSUTF8CHAR *text) |
virtual void | openTypeValue (OSUINT32 numocts, const OSOCTET *data) |
Static Public Member Functions | |
static EXTRTMETHOD void | invokeStartElement (OSCTXT *pCtxt, const char *name, OSSIZE index) |
static EXTRTMETHOD void | invokeEndElement (OSCTXT *pCtxt, const char *name, OSSIZE index) |
static EXTRTMETHOD void | invokeBitStrValue (OSCTXT *pCtxt, OSSIZE numbits, const OSOCTET *data) |
static EXTRTMETHOD void | invokeOctStrValue (OSCTXT *pCtxt, OSSIZE numocts, const OSOCTET *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSSIZE nchars, OSUNICHAR *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSSIZE nchars, OS32BITCHAR *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSSIZE nchars, const OSUTF8CHAR *data) |
static EXTRTMETHOD void | invokeOpenTypeValue (OSCTXT *pCtxt, OSSIZE numocts, const OSOCTET *data) |
Static Public Member Functions inherited from Asn1NamedEventHandler | |
static EXTRTMETHOD void | addEventHandler (OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler) |
static EXTRTMETHOD void | removeEventHandler (OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler) |
static EXTRTMETHOD void | invokeStartElement (OSCTXT *pCtxt, const char *name, int index) |
static EXTRTMETHOD void | invokeEndElement (OSCTXT *pCtxt, const char *name, int index) |
static EXTRTMETHOD void | invokeBoolValue (OSCTXT *pCtxt, OSBOOL value) |
static EXTRTMETHOD void | invokeIntValue (OSCTXT *pCtxt, OSINT32 value) |
static EXTRTMETHOD void | invokeUIntValue (OSCTXT *pCtxt, OSUINT32 value) |
static EXTRTMETHOD void | invokeInt64Value (OSCTXT *pCtxt, OSINT64 value) |
static EXTRTMETHOD void | invokeUInt64Value (OSCTXT *pCtxt, OSUINT64 value) |
static EXTRTMETHOD void | invokeBitStrValue (OSCTXT *pCtxt, OSUINT32 numbits, const OSOCTET *data) |
static EXTRTMETHOD void | invokeOctStrValue (OSCTXT *pCtxt, OSUINT32 numocts, const OSOCTET *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, const char *value) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSUINT32 nchars, OSUNICHAR *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSUINT32 nchars, OS32BITCHAR *data) |
static EXTRTMETHOD void | invokeCharStrValue (OSCTXT *pCtxt, OSUINT32 nchars, const OSUTF8CHAR *data) |
static EXTRTMETHOD void | invokeNullValue (OSCTXT *pCtxt) |
static EXTRTMETHOD void | invokeOidValue (OSCTXT *pCtxt, OSUINT32 numSubIds, OSUINT32 *pSubIds) |
static EXTRTMETHOD void | invokeRealValue (OSCTXT *pCtxt, double value) |
static EXTRTMETHOD void | invokeEnumValue (OSCTXT *pCtxt, OSUINT32 value, const OSUTF8CHAR *text) |
static EXTRTMETHOD void | invokeOpenTypeValue (OSCTXT *pCtxt, OSUINT32 numocts, const OSOCTET *data) |
Named event handler base class. This is the base class from which user-defined event handler classes are derived. These classes can be used to handle events during the parsing of an ASN.1 message. The event callback methods that can be implemented are startElement, endElement, and contents methods.
|
inlinevirtual |
This method is invoked from within a decode function when a value of the BIT STRING ASN.1 type is parsed.
numbits | - Number of bits in the parsed value. |
data | - Pointer to a byte array that contains the bit string data. |
References Asn1NamedEventHandler::bitStrValue(), and OS_UNUSED_ARG.
|
inlinevirtual |
This method is invoked from within a decode function when a value of a UTF-8 character string type is parsed.
nchars | Number of characters in the parsed value. |
value | A UTF-8 character string. |
References Asn1NamedEventHandler::charStrValue(), and OS_UNUSED_ARG.
|
inlinevirtual |
This method is invoked from within a decode function when a value of one of the 16-bit ASN.1 character string types is parsed.
This is used for the ASN.1 BmpString type.
nchars | Number of characters in the parsed value. |
data | Pointer to an array containing 16-bit values. These are represented using unsigned short integer values. |
References OS_UNUSED_ARG.
|
inlinevirtual |
This method is invoked from within a decode function when a value of one of the 32-bit ASN.1 characer string types is parsed.
This is used for the ASN.1 UniversalString type.
nchars | Number of characters in the parsed value. |
data | Pointer to an array containing 32-bit values. Each 32-bit integer value is a universal character. |
References OS_UNUSED_ARG.
|
pure virtual |
This method is invoked from within a decode function when parsing is complete on an element of a SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE construct.
name | For SEQUENCE, SET, or CHOICE, this is the name of the element as defined in the ASN.1 defination. For SEQUENCE OF or SET OF, this is set to the name "element". |
index | For SEQUENCE, SET, or CHOICE, this is not used and is set to the value OSNULLINDEX. For SEQUENCE OF or SET OF, this contains the zero-based index of the element in the conceptual array associated with the construct. |
Implemented in Asn1NullEventHandler64.
|
static |
This method is called by generated code to invoke the event handlers' bit string method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
numbits | The number of bits in the decoded bit string. |
data | The decoded bit string data. |
|
static |
This method is called by generated code to invoke the event handlers' 16-bit character string method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
nchars | The number of characters in the string. |
value | The decoded 16-bit character string. |
|
static |
This method is called by generated code to invoke the event handlers' 32-bit character string method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
nchars | The number of characters in the string. |
value | The decoded character string. |
|
static |
This method is called by generated code to invoke the event handlers' UTF-8 character string method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
nchars | The number of characters in the string. |
value | The decoded character string. |
|
static |
This method is called by generated code to invoke the event handlers' end element methods. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
name | The name of the element. |
index | The index of the element, if it is in a SEQUENCE or SET OF type. |
|
static |
This method is called by generated code to invoke the event handlers' octet string method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
numocts | The number of octets in the decoded octet string. |
data | The decoded octet string data. |
|
static |
This method is called by generated code to invoke the event handlers' open type method. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
numocts | The number of octets in the open type. |
data | The data octets that comprise the open type value. |
|
static |
This method is called by generated code to invoke the event handlers' start element methods. It is static.
pCtxt | A pointer to an OSCTXT data structure. |
name | The name of the element. |
index | The index of the element, if it is in a SEQUENCE or SET OF type. |
|
inlinevirtual |
This method is invoked from within a decode function when a value of one of the OCTET STRING ASN.1 type is parsed.
numocts | Number of octets in the parsed value. |
data | Pointer to byte array containing the octet string data. |
References Asn1NamedEventHandler::octStrValue(), and OS_UNUSED_ARG.
|
inlinevirtual |
This value is invoked from within a decode function when an ASN.1 open type is parsed.
numocts | Number of octets in the parsed value. |
data | Pointer to byet array contain in tencoded ASN.1 value. |
References Asn1NamedEventHandler::invokeBitStrValue(), Asn1NamedEventHandler::invokeCharStrValue(), Asn1NamedEventHandler::invokeEndElement(), Asn1NamedEventHandler::invokeOctStrValue(), Asn1NamedEventHandler::invokeOpenTypeValue(), Asn1NamedEventHandler::invokeStartElement(), Asn1NamedEventHandler::openTypeValue(), and OS_UNUSED_ARG.
|
pure virtual |
This method is invoked from within a decode function when an element of a SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE construct is parsed.
name | For SEQUENCE, SET, or CHOICE, this is the name of the element as defined in the ASN.1 defination. For SEQUENCE OF or SET OF, this is set to the name "element". |
index | For SEQUENCE, SET, or CHOICE, this is not used and is set to the value OSNULLINDEX. For SEQUENCE OF or SET OF, this contains the zero-based index of the element in the conceptual array associated with the construct. |
Implemented in Asn1NullEventHandler64.