CSdpAttrValueUint Class Reference

class CSdpAttrValueUint : public CSdpAttrValue

A unsigned integer value of an attribute.

The value can be up to 128 bits in size. You need to choose to use either Uint() for up to 32 bit size, Uint64() for up to 64 bit size or Uint128() for up to 128 bit size. The size can be found using DataSize() . If the incorrect function is used the code will panic.

Inherits from

Constructor & Destructor Documentation

CSdpAttrValueUint(const TDesC8 &)

CSdpAttrValueUint ( const TDesC8 & aUint ) [private]

Parameters

const TDesC8 & aUint

~CSdpAttrValueUint()

~CSdpAttrValueUint ( ) [virtual]

Destructor.

Member Functions Documentation

DataSize()

TUint DataSize ( ) const [virtual]

Gets the size of the attribute.

Des()

const TPtrC8 Des ( ) const [virtual]

Gets the value as a data buffer.

DoesIntFit()

TBool DoesIntFit ( ) const [virtual]

Tests if the attribute can be stored in an integer value.

Extension_(TUint, TAny *&, TAny *)

TInt Extension_ ( TUint aExtensionId,
TAny *& a0,
TAny * a1
) [private, virtual]

The extension method provides a polymorphic behaviour to allow interface extension.

Implements the functions for the Uint64 and Uint128 without breaking binary compatibility

Parameters

TUint aExtensionId
TAny *& a0
TAny * a1

NewUintL(const TDesC8 &)

IMPORT_C CSdpAttrValueUint * NewUintL ( const TDesC8 & aUint ) [static]

Allocates and constructs a new CSdpAttrValueUint object.

Parameters

const TDesC8 & aUint Buffer containing an unsigned integer value for the attribute

SetUintValue(const TDesC8 &)

IMPORT_C void SetUintValue ( const TDesC8 & aValue )

Replaces the current value.

panic
USER 23 if the supplied value is too long.

Parameters

const TDesC8 & aValue The new value. The provided value must not exceed KSdpMaxUintSize.

Type()

TSdpElementType Type ( ) const [virtual]

Gets the attribute type.

Uint()

TUint Uint ( ) const [virtual]

Gets the value as an unsigned integer type.

The size of the unsigned integer should be checked with DataSize() before calling.

Member Data Documentation

TBuf8< KSdpMaxUintSize > iUint

TBuf8 < KSdpMaxUintSize > iUint [private]