Asn1Real10 Class Reference

Inheritance diagram for Asn1Real10:
Asn1UTF8String Asn1CharString Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1Real10 (System.String data)
 Asn1Real10 ()
void ConvertToDecimal ()
void ConvertToNR3Form (bool cxerForm)
override void Decode (Asn1OerDecodeBuffer buffer)
override void Decode (Asn1PerDecodeBuffer buffer)
override void Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
override void Encode (Asn1PerOutputStream outs)
override void Encode (Asn1CerOutputStream outs, bool explicitTagging)
override void Encode (Asn1BerOutputStream outs, bool explicitTagging)
override void Encode (Asn1XmlEncoder buffer, System.String elemName, System.String nsPrefix)
override void Encode (Asn1XerEncoder buffer, System.String elemName)
override void Encode (Asn1OerEncodeBuffer buffer)
override void Encode (Asn1PerEncodeBuffer buffer)
virtual int Encode (Asn1DerEncodeBuffer buffer, bool explicitTagging)
override int Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging)
override void EncodeAttribute (Asn1XmlEncoder buffer, System.String attrName)
byte GetNumberForm ()

Static Public Member Functions

static byte GetNumberForm (System.String value)

Static Public Attributes

static new readonly Asn1Tag _TAG

Detailed Description

This class represents the ASN.1 REAL BASE 10 built-in type.


Constructor & Destructor Documentation

Asn1Real10 (  ) 

The default constructor sets the real10 value to zero.

Asn1Real10 ( System.String  data  ) 

This constructor creates an real10 object from a string value.

Parameters:
data String value

Member Function Documentation

void ConvertToDecimal (  ) 

This method convert the contained real10 value to XML decimal. Result number placed in mStringBuffer field.

void ConvertToNR3Form ( bool  cxerForm  ) 

This method convert the contained real10 value to NR3 form. NR3 form number placed in mStringBuffer field.

override void Decode ( Asn1OerDecodeBuffer  buffer  )  [virtual]

This method decodes an ASN.1 REAL value, having base 10, that was encoded according to OER.

Parameters:
buffer Decode message buffer object

Reimplemented from Asn1UTF8String.

override void Decode ( Asn1PerDecodeBuffer  buffer  )  [virtual]

This method decodes an real10 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'.

Reimplemented from Asn1UTF8String.

override void Decode ( Asn1BerDecodeBuffer  buffer,
bool  explicitTagging,
int  implicitLength 
) [virtual]

This method decodes an ASN.1 real10 value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

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

Reimplemented from Asn1UTF8String.

override void Encode ( Asn1PerOutputStream  outs  )  [virtual]

This method encodes an ASN.1 real10 value using the Packed Encoding Rules (PER). The length and contents components of the message are encoded.

Parameters:
outs PER Encode message buffer object

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

Reimplemented from Asn1UTF8String.

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

This method encodes and writes to the stream an ASN.1 real10 value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Canonical Encoding Rules (CER).

Parameters:
outs CER Output Stream object
explicitTagging Flag indicating explicit tagging should be done

<throws> IOException Any exception thrown by the underlying OutputStream. </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 ASN.1 real10 value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

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

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

Reimplemented from Asn1UTF8String.

override void Encode ( Asn1XmlEncoder  buffer,
System.String  elemName,
System.String  nsPrefix 
) [virtual]

This method encodes an ASN.1 real10 value using the XML Encoding as specified in the XML schema standard(asn2xsd).

Parameters:
buffer Encode message buffer object
elemName Element name
nsPrefix Element namespace value

Reimplemented from Asn1CharString.

override void Encode ( Asn1XerEncoder  buffer,
System.String  elemName 
) [virtual]

This method encodes an ASN.1 real10 value using the XML encoding rules (XER).

Parameters:
buffer Encode message buffer object
elemName Element name

Reimplemented from Asn1CharString.

override void Encode ( Asn1OerEncodeBuffer  buffer  )  [virtual]

This method encodes an ASN.1 REAL value, whose base is 10, according to OER.

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

Reimplemented from Asn1UTF8String.

override void Encode ( Asn1PerEncodeBuffer  buffer  )  [virtual]

This method encodes an real10 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

Reimplemented from Asn1UTF8String.

virtual int Encode ( Asn1DerEncodeBuffer  buffer,
bool  explicitTagging 
) [virtual]

This method encodes an ASN.1 real10 value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Distinguished Encoding Rules (DER).

Parameters:
buffer Encode message buffer object
explicitTagging Flag indicating explicit tagging should be done
Returns:
Length of component or negative status value
override int Encode ( Asn1BerEncodeBuffer  buffer,
bool  explicitTagging 
) [virtual]

This method encodes an ASN.1 real10 value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

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

Reimplemented from Asn1UTF8String.

override void EncodeAttribute ( Asn1XmlEncoder  buffer,
System.String  attrName 
) [virtual]

This method encodes an ASN.1 real10 value using the XML Encoding as specified in the XML schema standard(asn2xsd).

Parameters:
buffer Encode message buffer object
elemName Element name
attribute Element attribute value

Reimplemented from Asn1Type.

byte GetNumberForm (  ) 

This method calculates the number form of the contained real10 value.

Parameters:
value Real10 value in which to count bits.
Returns:
Number form.
static byte GetNumberForm ( System.String  value  )  [static]

This method calculates the number form of an real10 value.

Parameters:
value Real10 value in which to count bits.
Returns:
Number form.

Member Data Documentation

new readonly Asn1Tag _TAG [static]

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

Reimplemented from Asn1UTF8String.