#include <btsdp.h>
Link against:
sdpdatabase.lib
struct TAttrRange;
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.
Members
Defined in TAttrRange
:
See also:
Construction and destruction
IMPORT_C TAttrRange();
Description
Default constructor.
TAttrRange(TSdpAttributeID)
IMPORT_C TAttrRange(TSdpAttributeID aAttrId);
Description
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);
Description
Constructor with start and end IDs.
Parameters
IsInRange(TSdpAttributeID)const
IMPORT_C TBool IsInRange(TSdpAttributeID aAttrId) const;
Description
Tests if the specified ID is either within the range.
Parameters
Return value
TBool
|
True if in range, else false
|
|
IsContiguousWith(TSdpAttributeID)const
IMPORT_C TBool IsContiguousWith(TSdpAttributeID aAttrId) const;
Description
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
Return value
TBool
|
True if contiguous, else false
|
|
IsContiguousWith(TAttrRange)const
IMPORT_C TBool IsContiguousWith(TAttrRange aRange) const;
Description
Tests if the specified range is contiguous with the range.
Parameters
Return value
TBool
|
True if contiguous, else false
|
|
TSdpAttributeID iStart;
Description
ID of the start of the range
TSdpAttributeID iEnd;
Description
ID of the end of the range