Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Open Source
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

Asn1NamedEventHandler Interface Reference

Inheritance diagram for Asn1NamedEventHandler:

Asn1TraceHandler List of all members.

Detailed Description

This interface defines the methods that must be implemented to define a SAX-like event handler. These methods are invoked from within the generated C# decode logic when significant events occur during the parsing of an ASN.1 message.


Public Member Functions

void Characters (System.String svalue, short typeCode)
void EndElement (System.String name, int index)
void StartElement (System.String name, int index)


Member Function Documentation

void Characters System.String  svalue,
short  typeCode
 

The Characters callback method is invoked when content (primitive data) is encountered. A stringified representation of the parsed value is returned.

Parameters:
svalue Stringified representation of the parsed value. The representation will be in ASN.1 value format.
typeCode Identifier specifying the type of the parsed data variable. The enumerated list of values that might appear here is provided in the the Asn1Type class (see the documentation on this class for a full list of the names).
See also:
<seealso cref=Asn1Type The type codes are member of Asn1Type class

Implemented in Asn1TraceHandler.

void EndElement System.String  name,
int  index
 

The EndElement callback method is invoked when the end of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is detected.

Parameters:
name Name of the parsed element.
index Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.

Implemented in Asn1TraceHandler.

void StartElement System.String  name,
int  index
 

The StartElement callback method is invoked when the start of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is encountered.

Parameters:
name Name of the parsed element.
index Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.

Implemented in Asn1TraceHandler.


Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.
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 18 Nov 2005.
ASN1C C# Runtime Library, 5.8