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

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

PASN_ObjectId Class Reference

#include <asner.h>

Inheritance diagram for PASN_ObjectId:
Inheritance graph
Collaboration diagram for PASN_ObjectId:
Collaboration graph

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,
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

PString AsString () const
virtual PObjectClone () const
BOOL CommonDecode (PASN_Stream &strm, unsigned dataLen)
void CommonEncode (PBYTEArray &eObjId) const
virtual Comparison Compare (const PObject &obj) const
virtual BOOL Decode (PASN_Stream &)
virtual void Encode (PASN_Stream &) const
virtual PINDEX GetDataLength () const
PINDEX GetObjectLength () const
PINDEX GetSize () const
unsigned GetTag () const
TagClass GetTagClass () const
virtual PString GetTypeAsString () const
const PUnsignedArray & GetValue () const
BOOL IsExtendable () const
virtual BOOL IsPrimitive () const
bool operator!= (const char *dotstr) const
bool operator!= (const PString &dotstr) const
PASN_ObjectIdoperator= (const char *dotstr)
PASN_ObjectIdoperator= (const PString &dotstr)
PASN_ObjectIdoperator= (const PUnsignedArray &numbers)
PASN_ObjectIdoperator= (const PASN_ObjectId &other)
bool operator== (const char *dotstr) const
bool operator== (const PString &dotstr) const
bool operator== (const PASN_ObjectId &id) const
unsigned operator[] (PINDEX idx) const
 PASN_ObjectId (unsigned tag, TagClass tagClass)
 PASN_ObjectId (const char *dotstr=NULL)
 PASN_ObjectId (const PASN_ObjectId &other)
virtual void PrintOn (ostream &strm) const
virtual void SetCharacterSet (ConstraintType ctype, const char *charSet)
virtual void SetCharacterSet (ConstraintType ctype, unsigned firstChar, unsigned lastChar)
virtual void SetConstraintBounds (ConstraintType type, int lower, unsigned upper)
void SetConstraints (ConstraintType, MinimumValueTag lower, MaximumValueTag upper)
void SetConstraints (ConstraintType, int lower, MaximumValueTag)
void SetConstraints (ConstraintType type, int value)
void SetConstraints (ConstraintType type, int lower, unsigned upper)
void SetConstraints (ConstraintType, MinimumValueTag lower, unsigned upper)
void SetExtendable (BOOL ext=TRUE)
virtual void SetTag (unsigned newTag, TagClass tagClass=DefaultTagClass)
void SetValue (const unsigned *numbers, PINDEX size)
void SetValue (const PUnsignedArray &numbers)
void SetValue (const PString &dotstr)
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 Attributes

BOOL extendable
 PER extension capability.
unsigned tag
 ASN object tag.
TagClass tagClass
 BER tag class.
PUnsignedArray value

Private Member Functions


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 Object Identifier type.

Definition at line 511 of file asner.h.

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

Generated by  Doxygen 1.6.0   Back to index