Asn1X694OrderElement Class Reference

Inheritance diagram for Asn1X694OrderElement:
Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1X694OrderElement (int value_)
 Asn1X694OrderElement ()
virtual void Decode (Asn1PerDecodeBuffer buffer, int lower, int upper)
override void Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
override void Encode (Asn1PerOutputStream outs)
override void Encode (Asn1BerOutputStream outs, bool explicitTagging)
virtual void Encode (Asn1PerEncodeBuffer buffer, long lower, long upper)
override int Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging)
override bool Equals (System.Object o)
override void Print (System.IO.TextWriter outs, System.String varName, int level)

Public Attributes

int mValue

Static Public Attributes

static new readonly Asn1Tag _TAG

Detailed Description

This is a helper class for X.694 order element.


Constructor & Destructor Documentation

The default constructor sets the _order value to zero.

Asn1X694OrderElement ( int  value_  ) 

This constructor creates an Asn1X694OrderElement object from given integer array.

Parameters:
value_ Integer containing element order value

Member Function Documentation

virtual void Decode ( Asn1PerDecodeBuffer  buffer,
int  lower,
int  upper 
) [virtual]

This method decodes an unconstrained X.694 order element value using the Packed Encoding Rules (PER). The length and contents components of the message are decoded. The decoded result is stored in the public member 'value' in this object.

Parameters:
buffer PER Decode message buffer object
Returns:
void. Decoded result is stored in the 'value' member variable and can be accessed using '<object>.value'.
override void Decode ( Asn1BerDecodeBuffer  buffer,
bool  explicitTagging,
int  implicitLength 
) [virtual]

This method decodes an X.694 order element value including the tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

Parameters:
buffer Decode message buffer object
explicit Flag indicating element is explicitly tagged
implicitLength Length of contents if implicit

Reimplemented from Asn1Type.

override void Encode ( Asn1PerOutputStream  outs  )  [virtual]

This method encodes an unconstrained X.694 order element value using the Packed Encoding Rules (PER). The length and contents components of the message are encoded.

Parameters:
out PER Encode message buffer object

<throws> IOException Any exception thrown by the Asn1PerOutputStream. </throws> <throws> Asn1Exception Thrown, if operation is failed. </throws>

Reimplemented from Asn1Type.

override void Encode ( Asn1BerOutputStream  outs,
bool  explicitTagging 
) [virtual]

This method encodes and writes to the stream an X.694 order element value including the tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

Parameters:
out BER Output Stream object
explicit Flag indicating explicit tagging should be done

Reimplemented from Asn1Type.

virtual void Encode ( Asn1PerEncodeBuffer  buffer,
long  lower,
long  upper 
) [virtual]

This method encodes an unconstrained X.694 order element value using the Packed Encoding Rules (PER). The length and contents components of the message are encoded.

Parameters:
buffer PER Encode message buffer object
Returns:
Length of component or negative status value
override int Encode ( Asn1BerEncodeBuffer  buffer,
bool  explicitTagging 
) [virtual]

This method encodes an X.694 order element value including the tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

Parameters:
buffer Encode message buffer object
explicit Flag indicating explicit tagging should be done
Returns:
Length of component or negative status value

Reimplemented from Asn1Type.

override bool Equals ( System.Object  o  ) 

This method compares this X.694 order value to the given value for equality.

Parameters:
o Asn1X694OrderElement object containing value to compare
override void Print ( System.IO.TextWriter  outs,
System.String  varName,
int  level 
) [virtual]

This method will format and output a primitive value to the given print stream.

Parameters:
outs Print output stream
varName Name of variable
level Indentation level

Reimplemented from Asn1Type.


Member Data Documentation

new readonly Asn1Tag _TAG [static]

The _TAG constant describes the universal tag for this data type (UNIVERSAL 10).

Reimplemented from Asn1Type.

int mValue

This public member variable is where the _order element value is stored. This is the value that is encoded when one of the encode methods is called. It is also where the decoded result is stored when a decode method is called.