|
PTLib
Version 2.10.11
|
Base class for ASN encoding/decoding. More...
#include <asner.h>
Public Member Functions | |
| virtual PString | GetTypeAsString () const =0 |
| Return a string giving the type of the object. More... | |
| PINDEX | GetObjectLength () const |
| virtual PINDEX | GetDataLength () const =0 |
| virtual PBoolean | IsPrimitive () const |
| virtual PBoolean | Decode (PASN_Stream &)=0 |
| virtual void | Encode (PASN_Stream &) const =0 |
| PBoolean | IsExtendable () const |
| void | SetExtendable (PBoolean ext=true) |
| TagClass | GetTagClass () const |
| unsigned | GetTag () const |
| virtual void | SetTag (unsigned newTag, TagClass tagClass=DefaultTagClass) |
| void | SetConstraints (ConstraintType type, int value) |
| void | SetConstraints (ConstraintType, int lower, MaximumValueTag) |
| void | SetConstraints (ConstraintType, MinimumValueTag lower, unsigned upper) |
| void | SetConstraints (ConstraintType, MinimumValueTag lower, MaximumValueTag upper) |
| void | SetConstraints (ConstraintType type, int lower, unsigned upper) |
| virtual void | SetConstraintBounds (ConstraintType type, int lower, unsigned upper) |
| virtual void | SetCharacterSet (ConstraintType ctype, const char *charSet) |
| virtual void | SetCharacterSet (ConstraintType ctype, unsigned firstChar, unsigned lastChar) |
Public Member Functions inherited from PObject | |
| virtual | ~PObject () |
| virtual PObject * | Clone () const |
| Create a copy of the class on the heap. More... | |
| virtual PINDEX | HashFunction () const |
This function yields a hash value required by the PDictionary class. More... | |
| virtual Comparison | Compare (const PObject &obj) const |
| Compare the two objects and return their relative rank. More... | |
| virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| Determine the byte wise comparison of two objects. More... | |
| bool | operator== (const PObject &obj) const |
| Compare the two objects. More... | |
| bool | operator!= (const PObject &obj) const |
| Compare the two objects. More... | |
| bool | operator< (const PObject &obj) const |
| Compare the two objects. More... | |
| bool | operator> (const PObject &obj) const |
| Compare the two objects. More... | |
| bool | operator<= (const PObject &obj) const |
| Compare the two objects. More... | |
| bool | operator>= (const PObject &obj) const |
| Compare the two objects. More... | |
| virtual const char * | GetClass (unsigned ancestor=0) const |
| Get the current dynamic type of the object instance. More... | |
| PBoolean | IsClass (const char *cls) const |
| virtual PBoolean | InternalIsDescendant (const char *clsName) const |
| Determine if the dynamic type of the current instance is a descendent of the specified class. More... | |
| virtual void | PrintOn (ostream &strm) const |
| Output the contents of the object to the stream. More... | |
| virtual void | ReadFrom (istream &strm) |
| Input the contents of the object from the stream. More... | |
Static Public Member Functions | |
| static PINDEX | GetMaximumArraySize () |
| static void | SetMaximumArraySize (PINDEX sz) |
| static PINDEX | GetMaximumStringSize () |
| static void | SetMaximumStringSize (PINDEX sz) |
Static Public Member Functions inherited from PObject | |
| static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
| Internal function caled from CompareObjectMemoryDirect() More... | |
| static const char * | Class () |
| Get the name of the class as a C string. More... | |
Protected Member Functions | |
| PASN_Object (unsigned tag, TagClass tagClass, PBoolean extend=false) | |
Protected Member Functions inherited from PObject | |
| PObject () | |
| Constructor for PObject, made protected so cannot ever create one on its own. More... | |
Protected Attributes | |
| PBoolean | extendable |
| PER extension capability. More... | |
| TagClass | tagClass |
| BER tag class. More... | |
| unsigned | tag |
| ASN object tag. More... | |
Base class for ASN encoding/decoding.
Referenced by SetConstraints().
|
pure virtual |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PSNMP_Message, PASN_Integer, PASN_Boolean, PASN_Null, PSNMP_Trap_PDU, PSNMP_PDU, PSNMP_VarBind, and PSNMP_PDUs.
Referenced by PASN_Enumeration::GetMaximum(), PASN_BitString::GetSize(), PASN_OctetString::GetSize(), PASN_ObjectId::GetValue(), IsPrimitive(), PASN_Choice::IsValid(), PASN_ConstrainedString::operator[](), PASN_Sequence::operator[](), PASN_Array::RemoveAll(), PASN_Boolean::SetValue(), PASN_Integer::SetValue(), PASN_Real::SetValue(), and PASN_BMPString::SetValueRaw().
|
pure virtual |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PSNMP_Message, PASN_Integer, PASN_Boolean, PASN_Null, PSNMP_Trap_PDU, PSNMP_PDU, PSNMP_VarBind, and PSNMP_PDUs.
Referenced by PASN_Enumeration::GetMaximum(), PASN_BitString::GetSize(), PASN_OctetString::GetSize(), PASN_ObjectId::GetValue(), IsPrimitive(), PASN_Choice::IsValid(), PASN_ConstrainedString::operator[](), PASN_Sequence::operator[](), PASN_Array::RemoveAll(), PASN_Boolean::SetValue(), PASN_Integer::SetValue(), PASN_Real::SetValue(), and PASN_BMPString::SetValueRaw().
|
pure virtual |
Implemented in PASN_Array, PASN_Sequence, PASN_Choice, PASN_BMPString, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_ObjectId, PASN_Real, PASN_Enumeration, PSNMP_Message, PASN_Integer, PASN_Boolean, PASN_Null, PSNMP_Trap_PDU, PSNMP_PDU, and PSNMP_VarBind.
Referenced by PASN_Enumeration::GetMaximum(), PASN_BitString::GetSize(), PASN_OctetString::GetSize(), PASN_ObjectId::GetValue(), PASN_Choice::IsValid(), PASN_ConstrainedString::operator[](), PASN_Sequence::operator[](), PASN_Array::RemoveAll(), PASN_Boolean::SetValue(), PASN_Integer::SetValue(), PASN_Real::SetValue(), and PASN_BMPString::SetValueRaw().
|
static |
Referenced by SetConstraints().
|
static |
Referenced by SetConstraints().
| PINDEX PASN_Object::GetObjectLength | ( | ) | const |
|
inline |
References DefaultTagClass, SetTag(), tag, and tagClass.
|
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.
Referenced by PASN_Enumeration::GetMaximum(), PASN_BitString::GetSize(), PASN_OctetString::GetSize(), PASN_ObjectId::GetValue(), PASN_Choice::IsValid(), PASN_Sequence::operator[](), PASN_Array::RemoveAll(), PASN_Boolean::SetValue(), PASN_Integer::SetValue(), PASN_Real::SetValue(), and PASN_BMPString::SetValueRaw().
|
inline |
References extendable.
|
inlinevirtual |
Reimplemented in PASN_Array, PASN_Sequence, and PASN_Choice.
References Decode(), and Encode().
Referenced by PASN_Choice::IsValid(), PASN_Sequence::operator[](), and PASN_Array::RemoveAll().
|
virtual |
Reimplemented in PASN_BMPString, and PASN_ConstrainedString.
Referenced by PASN_ConstrainedString::operator[](), SetConstraints(), and PASN_BMPString::SetValueRaw().
|
virtual |
Reimplemented in PASN_BMPString, and PASN_ConstrainedString.
|
virtual |
Reimplemented in PASN_Array, PASN_ConstrainedString, PASN_OctetString, PASN_BitString, PASN_Integer, and PASN_ConstrainedObject.
Referenced by PASN_BitString::GetSize(), PASN_OctetString::GetSize(), PASN_ConstrainedObject::GetUpperLimit(), PASN_ConstrainedString::operator[](), PASN_Array::RemoveAll(), SetConstraints(), and PASN_Integer::SetValue().
|
inline |
References SetConstraintBounds().
|
inline |
References PartiallyConstrained, and SetConstraintBounds().
|
inline |
References PartiallyConstrained, and SetConstraintBounds().
|
inline |
References PartiallyConstrained, and SetConstraintBounds().
|
inline |
|
inline |
References extendable.
|
static |
Referenced by SetConstraints().
|
static |
Referenced by SetConstraints().
|
virtual |
Reimplemented in PASN_Choice.
Referenced by GetTag().
|
protected |
PER extension capability.
Referenced by IsExtendable(), and SetExtendable().
|
protected |
ASN object tag.
Referenced by GetTag(), PASN_ConstrainedObject::GetUpperLimit(), PASN_Choice::IsValid(), PASN_ConstrainedString::operator[](), PASN_Array::RemoveAll(), and SetConstraints().
|
protected |
BER tag class.
Referenced by GetTag(), GetTagClass(), PASN_ConstrainedObject::GetUpperLimit(), PASN_Choice::IsValid(), PASN_ConstrainedString::operator[](), PASN_Array::RemoveAll(), and SetConstraints().