Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Open Source
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

Asn1Choice Class Reference

Inheritance diagram for Asn1Choice:

Asn1Type Asn1TypeIF List of all members.

Detailed Description

This class represents the ASN.1 CHOICE built-in type.


Public Member Functions

 Asn1Choice ()
override bool Equals (System.Object value)
virtual Asn1Type GetElement ()
override int GetHashCode ()
virtual void SetElement (int choiceID, Asn1Type element)

Protected Attributes

internal int choiceID
internal Asn1Type element

Properties

virtual int ChoiceID
abstract System.String ElemName


Constructor & Destructor Documentation

Asn1Choice  ) 
 

The default constructor initializes the choiceID and value.


Member Function Documentation

override bool Equals System.Object  value  ) 
 

This method compares this type element with the passed type element.

Parameters:
value The Object to compare with the current Object. Object should be instance of Asn1Choice.
Returns:
true if the specified Object is equal to the current Object; otherwise, false.

virtual Asn1Type GetElement  )  [virtual]
 

This method returns the element object.

Returns:
element data member.

override int GetHashCode  ) 
 

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns:
A hash code for the current Object.

virtual void SetElement int  choiceID,
Asn1Type  element
[virtual]
 

This protected method sets the choice ID and value to the given values. Refer the Set_<element>() methods in compiler generated inherited classes.

Parameters:
choiceID The identifier for element value. The identifier value can be defined by compiler-generated derived class.
element The element value. The possible value types can be defined by compiler-generated derived class.


Member Data Documentation

internal int choiceID [protected]
 

This member variable is where the selected choice option identifier is stored. This selects the choice option to be used. It is populated with one of the generated choice ID constants in a compiler-generated derived class.

internal Asn1Type element [protected]
 

This member variable is where the selected choice option value is stored. It can be accessed via the get and set methods in this class and in compiler-generated derived classes.


Property Documentation

virtual int ChoiceID [get]
 

Gets the choice identifier.

Value: choice option identifier

abstract System.String ElemName [get]
 

Gets the name of the selected element. A concrete version is generated by the compiler-generated derived class.

Value: choice option name


Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 18 Nov 2005.
ASN1C C# Runtime Library, 5.8