Asn1PerBitFieldPrinter Class Reference

List of all members.

Public Member Functions

 Asn1PerBitFieldPrinter (Asn1PerMessageBuffer perMessageBuffer, System.IO.Stream encodedMessage)
virtual void Print (System.IO.StreamWriter outs, System.String varName)

Protected Attributes

internal int mBitMask
internal int mByteIndex
internal int mCurrOctet
internal System.IO.Stream mEncodedMessage
internal int mFmtBitCharIdx
internal System.Text.StringBuilder mFormatBuffer
internal Asn1PerMessageBuffer mPerMessageBuffer

Detailed Description

This class is used to obtain a formatted printout of the bit fields that make up a PER encoded message.


Constructor & Destructor Documentation

Asn1PerBitFieldPrinter ( Asn1PerMessageBuffer  perMessageBuffer,
System.IO.Stream  encodedMessage 
)

Constructor

Parameters:
perMessageBuffer PER encode or decode message buffer
encodedMessage Input stream of encoded message

Member Function Documentation

virtual void Print ( System.IO.StreamWriter  outs,
System.String  varName 
) [virtual]

This method iterates through and prints all of the bit fields in a PER encoded message. Bit tracing needs to have been enabled in the buffer via the 'perTraceEnable' method prior to encoding or decoding the message.

Parameters:
outs Print stream
varName Variable name. This will be printed before all fields (for example, <varName> .field1, etc.)

Member Data Documentation

internal int mBitMask [protected]

This variable holds the mask for current bit

internal int mByteIndex [protected]

This variable holds the byte index

internal int mCurrOctet [protected]

This variable holds the current byte

internal System.IO.Stream mEncodedMessage [protected]

This variable holds the input stream

internal int mFmtBitCharIdx [protected]

This variable holds the index for formated information

internal System.Text.StringBuilder mFormatBuffer [protected]
Initial value:
         new System.Text.StringBuilder()

This variable holds the formated information of current byte

This variable holds the PER encode or decode message buffer