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

PASNGauge Class Reference

#include <pasn.h>

Inheritance diagram for PASNGauge:

PASNUnsignedInteger PASNObject PObject

List of all members.


Detailed Description

A descendant of PASNObject which is an unsigned ASN guage type.

Definition at line 479 of file pasn.h.


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 }

Run Time Type functions

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

I/O functions

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

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
BOOL Decode (const PBYTEArray &buffer, PINDEX &i)
void Encode (PBYTEArray &buffer)
int GetChoice () const
WORD GetEncodedLength ()
virtual PASNInt GetInteger () const
virtual PIPSocket::Address GetIPAddress () const
virtual const PASNSequenceGetSequence () const
PString GetString () const
PASNObject::ASNType GetType () const
PString GetTypeAsString () const
PASNUnsigned GetUnsigned () const
 PASNGauge (const PBYTEArray &buffer, PINDEX &ptr)
 PASNGauge (PASNUnsigned val)
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 theType)
void Encode (PBYTEArray &buffer, PASNObject::ASNType theType)

Static Protected Attributes

static BYTE ASNTypeToType [ASNTypeMax]

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

Generated by  Doxygen 1.6.0   Back to index