Asn1PerTraceHandler Class Reference

Inheritance diagram for Asn1PerTraceHandler:
Asn1PerDecodeTraceHandler Asn1PerEncodeTraceHandler Asn1PerOutputStreamTraceHandler

List of all members.

Public Member Functions

virtual void AddElemName (System.String name, int arrayx)
abstract void Enable ()
virtual void NewBitField (System.String name, int bitCount)
abstract void Print (System.IO.StreamWriter outs, System.String varName)
virtual void RemoveLastElemName ()
abstract void Reset ()
virtual void SetBitCount ()
virtual void SetBitOffset ()

Protected Member Functions

internal Asn1PerTraceHandler (Asn1PerMessageBuffer messageBuffer)

Protected Attributes

internal Asn1PerBitFieldList mBitFieldList

Properties

virtual Asn1PerBitFieldList BitFieldList [get]

Detailed Description

This is the abstract base class for the PER encode and decode trace handler derived classes.


Constructor & Destructor Documentation

internal Asn1PerTraceHandler ( Asn1PerMessageBuffer  messageBuffer  )  [protected]

This constructor initializes internal trace handler member variables.

Parameters:
messageBuffer PER message buffer object reference

Member Function Documentation

virtual void AddElemName ( System.String  name,
int  arrayx 
) [virtual]

This method adds an element name to the current fully qualified name. The fully qualified name is a string of name components separated by dots (ex. a.b.c).

Parameters:
name Name component to append to string
arrayx Array index if named item is an element in an array (set to -1 otherwise)
abstract void Enable (  )  [pure virtual]

This method is used to turn PER bit tracing on or off

Implemented in Asn1PerDecodeTraceHandler, Asn1PerEncodeTraceHandler, and Asn1PerOutputStreamTraceHandler.

virtual void NewBitField ( System.String  name,
int  bitCount 
) [virtual]

This method creates a new bit field and appends it to the bit field list.

Parameters:
name Name suffix to append to the current fully qualified name.
bitCount Number of bits in the bit field.
abstract void Print ( System.IO.StreamWriter  outs,
System.String  varName 
) [pure virtual]

This method prints the trace to the given output stream in a default format.

Parameters:
outs Print stream to which output is to be written.
varName Name of the object variable being printed.

Implemented in Asn1PerDecodeTraceHandler, Asn1PerEncodeTraceHandler, and Asn1PerOutputStreamTraceHandler.

virtual void RemoveLastElemName (  )  [virtual]

This method removes the last element name int the current fully qualified name string. For example, if the current string is 'a.b.c', it will be 'a.b' after calling this method.

abstract void Reset (  )  [pure virtual]

This method resets the trace bit field list.

Implemented in Asn1PerDecodeTraceHandler, Asn1PerEncodeTraceHandler, and Asn1PerOutputStreamTraceHandler.

virtual void SetBitCount (  )  [virtual]

This method sets the bit count within the current bit field to the difference between the current bit offset and the starting bit offset currently stored in the field object.

virtual void SetBitOffset (  )  [virtual]

This method sets the bit offset within the current bit field to the current offset within the PER message buffer.


Member Data Documentation

internal Asn1PerBitFieldList mBitFieldList [protected]

Variable holds the bit field list


Property Documentation

virtual Asn1PerBitFieldList BitFieldList [get]

Gets a reference to the bit field list

Value: bit field list