2.2.6.1.2.5 PropertyRestriction Structure

The PropertyRestriction structure is used to compare the value of a property with a constant.

The PropertyRestriction structure has the following format.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

RestrictionType

RelOp

PropertyType

PropertyID

Reserved

PropValueNum

PropValue (variable)

RestrictionType (4 bytes):  This field specifies the type of restriction and MUST be set to RES_PROPERTY (0x00000004) for the PropertyRestriction structure.

RelOp (4 bytes):  This field specifies the relational operator to be used in the comparison. The value MUST be one of the following.

Relational operator name

Value

Meaning

RELOP_LT

0x00000000

The condition evaluates to TRUE if the value of the property is less than the constant value.

RELOP_LE

0x00000001

The condition evaluates to TRUE if the value of the property is less than or equal to the constant value.

RELOP_GT

0x00000002

The condition evaluates to TRUE if the value of the property is greater than the constant value.

RELOP_GE

0x00000003

The condition evaluates to TRUE if the value of the property is greater than or equal to the constant value.

RELOP_EQ

0x00000004

The condition evaluates to TRUE if the value of the property is equal to the constant value.

RELOP_NE

0x00000005

The condition evaluates to TRUE if the value of the property is not equal to the constant value.

PropertyType (2 bytes):  This field specifies the type of the property. Valid types are specified in section 2.2.6.1.3.

PropertyID (2 bytes):  This field specifies the property ID of the property.

Reserved (4 bytes):  The application can fill this field with any value when writing the stream. The application MUST ignore the value of this field when reading the stream.

PropValueNum (4 bytes):  This field MUST be set to 0x00000001.

PropValue (variable):  A PropertyValue structure, as specified in section 2.2.6.1.4, that specifies the value to be compared.