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.

Asn1CharSet Class Reference

Inheritance diagram for Asn1CharSet:

Asn1CharRange Asn1DiscreteCharSet List of all members.

Detailed Description

This is the base class for representing character sets that are defined in ASN.1 permitted alphabet constraints.


Public Member Functions

abstract int GetCharAtIndex (int index)
abstract int GetCharIndex (int charValue)
virtual int GetNumBitsPerChar (bool aligned)

Protected Member Functions

internal Asn1CharSet (int nchars)

Protected Attributes

internal int mABitsPerChar
internal int mUBitsPerChar

Properties

abstract int MaxValue


Constructor & Destructor Documentation

internal Asn1CharSet int  nchars  )  [protected]
 

This constructor sets the number of bits-per-character values based on the given number of characters in the character set.

Parameters:
nchars Number of characters in the character set


Member Function Documentation

abstract int GetCharAtIndex int  index  )  [pure virtual]
 

This method will fetch the character from the permitted alphabet at the given index.

Parameters:
index Index of character within the character set
Returns:
Character at given index
Exceptions:
Asn1ConsVioException Index not within define range

Implemented in Asn1CharRange, and Asn1DiscreteCharSet.

abstract int GetCharIndex int  charValue  )  [pure virtual]
 

This method will determine the index of the given character within the permitted alphabet character set.

Parameters:
charValue Character value to search for
Returns:
Index of character
Exceptions:
Asn1ConsVioException Character not found in set

Implemented in Asn1CharRange, and Asn1DiscreteCharSet.

virtual int GetNumBitsPerChar bool  aligned  )  [virtual]
 

This method will return the number of bits-per-character.

Parameters:
aligned Boolean value indicating whether number of aligned (true) or unaligned (false) characters should be returned.
Returns:
Number of bits-per-character


Member Data Documentation

internal int mABitsPerChar [protected]
 

This variable holds number of bits-per-character (PER aligned).

internal int mUBitsPerChar [protected]
 

This variable holds number of bits-per-character (PER unaligned).


Property Documentation

abstract int MaxValue [get]
 

Gets the maximum value of the character within the given permitted alphabet character set.

Value: Upper Bound Character or Character with max int value

Reimplemented in Asn1CharRange, and Asn1DiscreteCharSet.


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