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

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

PASNIPAddress Class Reference

#include <pasn.h>

Inheritance diagram for PASNIPAddress:
Inheritance graph
Collaboration diagram for PASNIPAddress:
Collaboration graph

List of all members.

Public Types

enum  ASNType {
  Integer, String, ObjectID, Sequence,
  Choice, IPAddress, Counter, Gauge,
  TimeTicks, Opaque, NsapAddress, Counter64,
  UInteger32, Null, Unknown, ASNTypeMax

Public Member Functions

PObjectClone () const
void Encode (PBYTEArray &buffer)
int GetChoice () const
WORD GetEncodedLength ()
virtual PASNInt GetInteger () const
PIPSocket::Address GetIPAddress () const
virtual const PASNSequenceGetSequence () const
PString GetString () const
PASNObject::ASNType GetType () const
PString GetTypeAsString () const
virtual PASNUnsigned GetUnsigned () const
 PASNIPAddress (const PIPSocket::Address &addr)
 PASNIPAddress (const PBYTEArray &buffer, PINDEX &ptr)
 PASNIPAddress (const PBYTEArray &buffer)
 PASNIPAddress (const PString &str)
void PrintOn (ostream &strm) const
Miscellaneous functions
virtual PINDEX HashFunction () const

Static Public Member Functions

static BOOL DecodeASNInteger (const PBYTEArray &buffer, PINDEX &ptr, PASNInt &value, ASNType type=Integer)
static BOOL DecodeASNLength (const PBYTEArray &buffer, PINDEX &ptr, WORD &len)
static BOOL DecodeASNUnsigned (const PBYTEArray &buffer, PINDEX &ptr, PASNUnsigned &value, ASNType type=TimeTicks)
static void EncodeASNHeader (PBYTEArray &buffer, PASNObject::ASNType type, WORD length)
static void EncodeASNInteger (PBYTEArray &buffer, PASNInt data, PASNObject::ASNType type)
static void EncodeASNLength (PBYTEArray &buffer, WORD length)
static void EncodeASNSequenceStart (PBYTEArray &buffer, BYTE type, WORD length)
static void EncodeASNUnsigned (PBYTEArray &buffer, PASNUnsigned data, PASNObject::ASNType type)
static WORD GetASNHeaderLength (WORD length)
static WORD GetASNIntegerLength (PASNInt data)
static WORD GetASNLengthLength (WORD length)
static WORD GetASNSequenceStartLength (WORD length)
static WORD GetASNUnsignedLength (PASNUnsigned data)

Protected Member Functions

BOOL Decode (const PBYTEArray &buffer, PINDEX &i, PASNObject::ASNType type)
void Encode (PBYTEArray &buffer, PASNObject::ASNType type)

Protected Attributes

PString value
WORD valueLen

Static Protected Attributes

static BYTE ASNTypeToType [ASNTypeMax]

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 Compare (const PObject &obj) const
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

A descendant of PASNObject which is an IP address type

Definition at line 359 of file pasn.h.

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

Generated by  Doxygen 1.6.0   Back to index