PWLib
1.10.10
|
#include <asner.h>
Base class for ASN encoding/decoding.
PASN_Object::PASN_Object | ( | unsigned | tag, |
TagClass | tagClass, | ||
BOOL | extend = FALSE |
||
) | [protected] |
virtual BOOL PASN_Object::Decode | ( | PASN_Stream & | ) | [pure virtual] |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PASN_Integer, PASN_Boolean, and PASN_Null.
virtual void PASN_Object::Encode | ( | PASN_Stream & | ) | const [pure virtual] |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PASN_Integer, PASN_Boolean, and PASN_Null.
virtual PINDEX PASN_Object::GetDataLength | ( | ) | const [pure virtual] |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PASN_Integer, PASN_Boolean, and PASN_Null.
static PINDEX PASN_Object::GetMaximumArraySize | ( | ) | [static] |
static PINDEX PASN_Object::GetMaximumStringSize | ( | ) | [static] |
PINDEX PASN_Object::GetObjectLength | ( | ) | const |
unsigned PASN_Object::GetTag | ( | ) | const [inline] |
References tag.
TagClass PASN_Object::GetTagClass | ( | ) | const [inline] |
References tagClass.
virtual PString PASN_Object::GetTypeAsString | ( | ) | const [pure virtual] |
Return a string giving the type of the object
Implemented in PASN_Array, PASN_Set, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PASN_Integer, PASN_Boolean, and PASN_Null.
BOOL PASN_Object::IsExtendable | ( | ) | const [inline] |
References extendable.
virtual BOOL PASN_Object::IsPrimitive | ( | ) | const [inline, virtual] |
Reimplemented in PASN_Array, PASN_Sequence, and PASN_Choice.
virtual void PASN_Object::SetCharacterSet | ( | ConstraintType | ctype, |
const char * | charSet | ||
) | [virtual] |
Reimplemented in PASN_BMPString, and PASN_ConstrainedString.
virtual void PASN_Object::SetCharacterSet | ( | ConstraintType | ctype, |
unsigned | firstChar, | ||
unsigned | lastChar | ||
) | [virtual] |
Reimplemented in PASN_BMPString, and PASN_ConstrainedString.
virtual void PASN_Object::SetConstraintBounds | ( | ConstraintType | type, |
int | lower, | ||
unsigned | upper | ||
) | [virtual] |
Reimplemented in PASN_Array, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_Integer, and PASN_ConstrainedObject.
Referenced by SetConstraints().
void PASN_Object::SetConstraints | ( | ConstraintType | type, |
int | value | ||
) | [inline] |
References SetConstraintBounds().
void PASN_Object::SetConstraints | ( | ConstraintType | , |
int | lower, | ||
MaximumValueTag | |||
) | [inline] |
References PartiallyConstrained, and SetConstraintBounds().
void PASN_Object::SetConstraints | ( | ConstraintType | , |
MinimumValueTag | lower, | ||
unsigned | upper | ||
) | [inline] |
References PartiallyConstrained, and SetConstraintBounds().
void PASN_Object::SetConstraints | ( | ConstraintType | , |
MinimumValueTag | lower, | ||
MaximumValueTag | upper | ||
) | [inline] |
References PartiallyConstrained, and SetConstraintBounds().
void PASN_Object::SetConstraints | ( | ConstraintType | type, |
int | lower, | ||
unsigned | upper | ||
) | [inline] |
References SetConstraintBounds().
void PASN_Object::SetExtendable | ( | BOOL | ext = TRUE | ) | [inline] |
References extendable.
static void PASN_Object::SetMaximumArraySize | ( | PINDEX | sz | ) | [static] |
static void PASN_Object::SetMaximumStringSize | ( | PINDEX | sz | ) | [static] |
virtual void PASN_Object::SetTag | ( | unsigned | newTag, |
TagClass | tagClass = DefaultTagClass |
||
) | [virtual] |
Reimplemented in PASN_Choice.
BOOL PASN_Object::extendable [protected] |
PER extension capability.
Referenced by IsExtendable(), and SetExtendable().
unsigned PASN_Object::tag [protected] |
ASN object tag.
Referenced by GetTag().
TagClass PASN_Object::tagClass [protected] |
BER tag class.
Referenced by GetTagClass().