Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

PASN_BMPString Class Reference

#include <asner.h>

Inheritance diagram for PASN_BMPString:
Inheritance graph
[legend]
Collaboration diagram for PASN_BMPString:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ConstraintType { Unconstrained, PartiallyConstrained, FixedConstraint, ExtendableConstraint }
enum  MaximumValueTag { MaximumValue = INT_MAX }
enum  MinimumValueTag { MinimumValue = INT_MIN }
enum  TagClass {
  UniversalTagClass, ApplicationTagClass, ContextSpecificTagClass, PrivateTagClass,
  DefaultTagClass
}
enum  UniversalTags {
  InvalidUniversalTag, UniversalBoolean, UniversalInteger, UniversalBitString,
  UniversalOctetString, UniversalNull, UniversalObjectId, UniversalObjectDescriptor,
  UniversalExternalType, UniversalReal, UniversalEnumeration, UniversalEmbeddedPDV,
  UniversalSequence = 16, UniversalSet, UniversalNumericString, UniversalPrintableString,
  UniversalTeletexString, UniversalVideotexString, UniversalIA5String, UniversalUTCTime,
  UniversalGeneralisedTime, UniversalGeneralizedTime = UniversalGeneralisedTime, UniversalGraphicString, UniversalVisibleString,
  UniversalGeneralString, UniversalUniversalString, UniversalBMPString = 30
}

Public Member Functions

virtual PObjectClone () const
virtual Comparison Compare (const PObject &obj) const
BOOL ConstrainedLengthDecode (PPER_Stream &strm, unsigned &length)
void ConstrainedLengthEncode (PPER_Stream &strm, unsigned length) const
BOOL ConstraintEncode (PPER_Stream &strm, unsigned value) const
virtual BOOL Decode (PASN_Stream &)
BOOL DecodeBER (PBER_Stream &strm, unsigned len)
BOOL DecodePER (PPER_Stream &strm)
virtual void Encode (PASN_Stream &) const
void EncodeBER (PBER_Stream &strm) const
void EncodePER (PPER_Stream &strm) const
virtual PINDEX GetDataLength () const
int GetLowerLimit () const
PINDEX GetObjectLength () const
unsigned GetTag () const
TagClass GetTagClass () const
virtual PString GetTypeAsString () const
unsigned GetUpperLimit () const
PString GetValue () const
void GetValue (PWORDArray &v) const
BOOL IsConstrained () const
BOOL IsExtendable () const
virtual BOOL IsPrimitive () const
 operator PString () const
 operator PWORDArray () const
PASN_BMPStringoperator= (const PWORDArray &v)
PASN_BMPStringoperator= (const PASN_BMPString &other)
PASN_BMPStringoperator= (const char *v)
PASN_BMPStringoperator= (const PString &v)
 PASN_BMPString (const PASN_BMPString &other)
 PASN_BMPString (const char *str=NULL)
 PASN_BMPString (unsigned tag, TagClass tagClass)
 PASN_BMPString (const PWORDArray &wstr)
virtual void PrintOn (ostream &strm) const
void SetCharacterSet (ConstraintType ctype, const char *charSet)
void SetCharacterSet (ConstraintType ctype, const PWORDArray &charSet)
void SetCharacterSet (ConstraintType ctype, unsigned firstChar, unsigned lastChar)
void SetConstraints (ConstraintType type, int lower, unsigned upper)
void SetConstraints (ConstraintType type, int value)
void SetConstraints (ConstraintType, MinimumValueTag lower, unsigned upper)
void SetConstraints (ConstraintType, MinimumValueTag lower, MaximumValueTag upper)
void SetConstraints (ConstraintType, int lower, MaximumValueTag)
void SetExtendable (BOOL ext=TRUE)
virtual void SetTag (unsigned newTag, TagClass tagClass=DefaultTagClass)
void SetValue (const PWORDArray &v)
void SetValue (const char *v)
void SetValue (const PString &v)
void SetValue (const PASN_BMPString &v)
Miscellaneous functions
virtual PINDEX HashFunction () const

Static Public Member Functions

static PINDEX GetMaximumArraySize ()
static PINDEX GetMaximumStringSize ()
static void SetMaximumArraySize (PINDEX sz)
static void SetMaximumStringSize (PINDEX sz)

Protected Member Functions

void Construct ()
BOOL IsLegalCharacter (WORD ch)
virtual void SetConstraintBounds (ConstraintType type, int lower, unsigned upper)

Protected Attributes

PWORDArray characterSet
unsigned charSetAlignedBits
unsigned charSetUnalignedBits
ConstraintType constraint
BOOL extendable
 PER extension capability.
WORD firstChar
WORD lastChar
int lowerLimit
unsigned tag
 ASN object tag.
TagClass tagClass
 BER tag class.
unsigned upperLimit
PWORDArray value

Private Member Functions

 PCLASSINFO (PASN_BMPString, PASN_ConstrainedObject)

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
BOOL IsClass (const char *cls) const
virtual BOOL InternalIsDescendant (const char *clsName) const
static const char * Class ()

Comparison functions

virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

I/O functions

virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Detailed Description

Class for ASN BMP (16 bit) String type.

Definition at line 733 of file asner.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index