CSdpAttrValue Class Reference

class CSdpAttrValue : public CBase

Base class for classes that encapsulate SDP attributes values.

Sub-classes of this wrap specific types of SDP service record attributes. For example, CSdpBoolean derives from CSdpAttrValue to encapsulate boolean attributes. The base class defines getters for all types: for example, it declares a function Bool() that returns the attribute value as a TBool. Note though that the function would panic unless called on actual CSdpBoolean.

A common base class allows attributes of all types to be used polymorphically. You can use CSdpAttrValue's Type() function to find the actual type being used, and upcast the pointer appropriately.

Inherits from

Constructor & Destructor Documentation

CSdpAttrValue()

CSdpAttrValue()

~CSdpAttrValue()

~CSdpAttrValue()[virtual]

Member Functions Documentation

AcceptVisitorL(MSdpAttributeValueVisitor &)

voidAcceptVisitorL(MSdpAttributeValueVisitor &aVisitor)[virtual]

Parameters

MSdpAttributeValueVisitor & aVisitor

Bool()

TInt Bool()const [virtual]

DataSize()

TUint DataSize()const [pure virtual]

Gets the size of the attribute.

Size of the attribute in bytes

Des()

const TPtrC8Des()const [virtual]

DoesIntFit()

TBool DoesIntFit()const [virtual]

Extension_(TUint, TAny *&, TAny *)

TInt Extension_(TUintaExtensionId,
TAny *&a0,
TAny *a1
)[protected, virtual]

Parameters

TUint aExtensionId
TAny *& a0
TAny * a1

Int()

TInt Int()const [virtual]

Type()

TSdpElementType Type()const [pure virtual]

Gets the attribute type.

Attribute type

UUID()

const TUUID &UUID()const [virtual]

Uint()

TUint Uint()const [virtual]

Uint128(TUint64 &, TUint64 &)

IMPORT_C voidUint128(TUint64 &aLo,
TUint64 &aHi
)const

Parameters

TUint64 & aLo
TUint64 & aHi

Uint64(TUint64 &)

IMPORT_C voidUint64(TUint64 &aValue)const

Parameters

TUint64 & aValue