TAttrRange Struct Reference

#include <btsdp.h>

struct TAttrRange

Detailed Description

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.

See also: CSdpAttrIdMatchList

Member Attribute Documentation

iEnd

ID of the end of the range

iStart

ID of the start of the range

Constructor & Destructor Documentation

TAttrRange ( )

IMPORT_CTAttrRange()

Default constructor.

TAttrRange ( TSdpAttributeID )

IMPORT_CTAttrRange(TSdpAttributeIDaAttrId)

Constructor with single ID.

ParameterDescription
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.

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

Member Function 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.

ParameterDescription
aAttrIdID to test

Returns: True if contiguous, else false

IsContiguousWith ( TAttrRange )

IMPORT_C TBoolIsContiguousWith(TAttrRangeaRange)const

Tests if the specified range is contiguous with the range.

ParameterDescription
aRangeRange to test

Returns: True if contiguous, else false

IsInRange ( TSdpAttributeID )

IMPORT_C TBoolIsInRange(TSdpAttributeIDaAttrId)const

Tests if the specified ID is either within the range.

ParameterDescription
aAttrIdID to test

Returns: True if in range, else false