#include <btsdp.h>
struct TAttrRange |
Public Attributes | |
---|---|
TSdpAttributeID | iEnd |
TSdpAttributeID | iStart |
Public Member Functions | |
---|---|
TAttrRange() | |
TAttrRange(TSdpAttributeID) | |
TAttrRange(TSdpAttributeID, TSdpAttributeID) | |
IMPORT_C TBool | IsContiguousWith(TSdpAttributeID) |
IMPORT_C TBool | IsContiguousWith(TAttrRange) |
IMPORT_C TBool | IsInRange(TSdpAttributeID) |
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
IMPORT_C | TAttrRange | ( | TSdpAttributeID | aAttrId | ) |
Constructor with single ID.
Parameters | |
---|---|
aAttrId | The start and the end of the range are both set to aAttrId |
IMPORT_C | TAttrRange | ( | TSdpAttributeID | aStart, |
TSdpAttributeID | aEnd | |||
) |
Constructor with start and end IDs.
Parameters | |
---|---|
aStart | ID for the start of the range |
aEnd | ID for the end of the range |
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 | |
---|---|
aAttrId | ID to test |
IMPORT_C TBool | IsContiguousWith | ( | TAttrRange | aRange | ) | const |
Tests if the specified range is contiguous with the range.
Parameters | |
---|---|
aRange | Range to test |
IMPORT_C TBool | IsInRange | ( | TSdpAttributeID | aAttrId | ) | const |
Tests if the specified ID is either within the range.
Parameters | |
---|---|
aAttrId | ID to test |