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.
Public Member Functions | |
---|---|
CSdpAttrValue() | |
~CSdpAttrValue() | |
void | AcceptVisitorL(MSdpAttributeValueVisitor &) |
TInt | Bool() |
TUint | DataSize() |
const TPtrC8 | Des() |
TBool | DoesIntFit() |
TInt | Int() |
TSdpElementType | Type() |
const TUUID & | UUID() |
TUint | Uint() |
IMPORT_C void | Uint128(TUint64 &, TUint64 &) |
IMPORT_C void | Uint64(TUint64 &) |
Protected Member Functions | |
---|---|
TInt | Extension_(TUint, TAny *&, TAny *) |
void | AcceptVisitorL | ( | MSdpAttributeValueVisitor & | aVisitor | ) | [virtual] |
MSdpAttributeValueVisitor & aVisitor |
TUint | DataSize | ( | ) | const [pure virtual] |
Gets the size of the attribute.
Size of the attribute in bytes
TInt | Extension_ | ( | TUint | aExtensionId, |
TAny *& | a0, | |||
TAny * | a1 | |||
) | [protected, virtual] |