TAttrRange Struct Reference

struct TAttrRange

A range of attribute ID values.

This class is used in an attribute list, CSdpAttrIdMatchList , so that all attributes with IDs in the specified range are considered.

CSdpAttrIdMatchList

Constructor & Destructor Documentation

TAttrRange()

IMPORT_C TAttrRange ( )

Default constructor.

TAttrRange(TSdpAttributeID)

IMPORT_C TAttrRange ( TSdpAttributeID aAttrId )

Constructor with single ID.

Parameters

TSdpAttributeID aAttrId The start and the end of the range are both set to aAttrId

TAttrRange(TSdpAttributeID, TSdpAttributeID)

IMPORT_C TAttrRange ( TSdpAttributeID aStart,
TSdpAttributeID aEnd
)

Constructor with start and end IDs.

Parameters

TSdpAttributeID aStart ID for the start of the range
TSdpAttributeID aEnd ID for the end of the range

Member Functions Documentation

IsContiguousWith(TSdpAttributeID)

IMPORT_C TBool IsContiguousWith ( TSdpAttributeID aAttrId ) const

Tests if the specified ID is either within the range, is one less than the lower bound, or one more than the upper bound.

Parameters

TSdpAttributeID aAttrId ID to test

IsContiguousWith(TAttrRange)

IMPORT_C TBool IsContiguousWith ( TAttrRange aRange ) const

Tests if the specified range is contiguous with the range.

Parameters

TAttrRange aRange Range to test

IsInRange(TSdpAttributeID)

IMPORT_C TBool IsInRange ( TSdpAttributeID aAttrId ) const

Tests if the specified ID is either within the range.

Parameters

TSdpAttributeID aAttrId ID to test

Member Data Documentation

TSdpAttributeID iEnd

TSdpAttributeID iEnd

ID of the end of the range

TUint32 iPadding1

TUint32 iPadding1 [private]

TUint32 iPadding2

TUint32 iPadding2 [private]

TSdpAttributeID iStart

TSdpAttributeID iStart

ID of the start of the range