Asn1MessageBuffer Class Reference

Inheritance diagram for Asn1MessageBuffer:
Asn1MessageBufferBase Asn1DecodeBuffer Asn1EncodeBuffer Asn1BerDecodeBuffer Asn1DecodeBitBuffer Asn1MderDecodeBuffer Asn1BerInputStream Asn1DerDecodeBuffer Asn1OerDecodeBuffer Asn1PerDecodeBuffer Asn1CerInputStream Asn1DerInputStream Asn1PerInputStream

List of all members.

Public Member Functions

virtual void AddNamedEventHandler (Asn1NamedEventHandler handler)
abstract System.IO.Stream GetInputStream ()
virtual void InvokeCharacters (System.String svalue)
virtual void InvokeEndElement (System.String name, int index)
virtual void InvokeStartElement (System.String name, int index)

Properties

virtual Asn1MessageBuffer EventHandlerList [set]

Detailed Description

This is the base class for all of the different message buffer types. This includes the BER and PER encode and decode message buffer classes.


Member Function Documentation

virtual void AddNamedEventHandler ( Asn1NamedEventHandler  handler  )  [virtual]

This method adds a named event handler to the named event handler list for this buffer.

Parameters:
handler Asn1NamedEventHandler object to be added
abstract System.IO.Stream GetInputStream (  )  [pure virtual]

This abstract method must be implemented by all of the derived classes. It returns an input stream object reference to the message buffer contents (i.e. the encoded data).

Returns:
Input stream object reference

Implemented in Asn1DecodeBuffer, and Asn1EncodeBuffer.

virtual void InvokeCharacters ( System.String  svalue  )  [virtual]

This method is used by the event handling logic to invoke the 'characters' event handling method when message contents are parsed. The TypeCode property is used for the event's type code.

Parameters:
svalue Stringified representation of a parsed value field
virtual void InvokeEndElement ( System.String  name,
int  index 
) [virtual]

This method is used by the event handling logic to invoke the 'endElement' event handling method when parsing of an element within a message is completed.

Parameters:
name Name of the element
index Index of element if SEQUENCE OF or SET OF element
virtual void InvokeStartElement ( System.String  name,
int  index 
) [virtual]

This method is used by the event handling logic to invoke the 'StartElement' event handling method when parsing of an element within a message is started.

Parameters:
name Name of the element
index Index of element if SEQUENCE OF or SET OF element

Property Documentation

virtual Asn1MessageBuffer EventHandlerList [set]

Sets the event dispatcher in this object to be equal to that in the given message buffer object. The two buffers will share the event dispatcher.

Value: Message buffer object