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_CTAttrRange()

Default constructor.

TAttrRange(TSdpAttributeID)

IMPORT_CTAttrRange(TSdpAttributeIDaAttrId)

Constructor with single ID.

Parameters

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

TAttrRange(TSdpAttributeID, TSdpAttributeID)

IMPORT_CTAttrRange(TSdpAttributeIDaStart,
TSdpAttributeIDaEnd
)

Constructor with start and end IDs.

Parameters

TSdpAttributeID aStartID for the start of the range
TSdpAttributeID aEndID for the end of the range

Member Functions Documentation

IsContiguousWith(TSdpAttributeID)

IMPORT_C TBoolIsContiguousWith(TSdpAttributeIDaAttrId)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.

True if contiguous, else false

Parameters

TSdpAttributeID aAttrIdID to test

IsContiguousWith(TAttrRange)

IMPORT_C TBoolIsContiguousWith(TAttrRangeaRange)const

Tests if the specified range is contiguous with the range.

True if contiguous, else false

Parameters

TAttrRange aRangeRange to test

IsInRange(TSdpAttributeID)

IMPORT_C TBoolIsInRange(TSdpAttributeIDaAttrId)const

Tests if the specified ID is either within the range.

True if in range, else false

Parameters

TSdpAttributeID aAttrIdID 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