xflminterface IF_OperandComparer : public XF_RefCount
This class represents an operand comparer. XFLAIM does not provide an implementation of this interface. It is up to the application to provide an implementation. It is a way for an application to plug in a callback mechanism that allows it to provide specialized operators in query expressions. It is passed into a query via the IF_Query::addOperator method.
Method Summary |
|
RCODE | compare - Compare data from two input streams - which are a left operand and a right operand. |
Method Detail |
RCODE compare(
IF_PosIStream * pLeftOperandStream,
IF_PosIStream * pRightOperandStream,
FLMINT * piCompare);
This method compares data from the two input streams.
Parameters In:
IF_PosIStream * pLeftOperandStream Input stream that contains the data in the left operand. Operand data is accessed by calling the appropriate methods on the stream object. IF_PosIStream * pRightOperandStream Input stream that contains the data in the right operand. Operand data is accessed by calling the appropriate methods on the stream object.
Parameters Out:
FLMINT * piCompare Application should return results of comparison here, as follows:
- -1 - pLeftOperandStream < pRightOperandStream
- 0 - pLeftOperandStream = pRightOperandStream
- 1 - pLeftOperandStream > pRightOperandStream