| 33 | === API Changes === |
| 34 | |
| 35 | The following function will be added: |
| 36 | |
| 37 | |
| 38 | {{{ |
| 39 | FDO_API FdoCompareType FdoDataValue::Compare( FdoDataValue* other ); |
| 40 | }}} |
| 41 | |
| 42 | where the input parameter ''other'' is the other value to compare against the current value. |
| 43 | |
| 44 | The return values can be one of the following: |
| 45 | |
| 46 | ''!FdoCompareType_Equal'': this and the other value are equal or both null[[br]] |
| 47 | ''!FdoCompareType_Greater'': this value is greater than the other value[[br]] |
| 48 | ''!FdoCompareType_Less'': this value is less than the other value[[br]] |
| 49 | ''!FdoCompareType_Undefined'': these two values are different but cannot be compared. |
| 50 | |
| 51 | Cases where !FdoCompareType_Undefined happens are: |
| 52 | |
| 53 | • their types are incompatible[[br]] |
| 54 | • one value is null and the other value is not[[br]] |
| 55 | • both values are Boolean and one is true and the other is false[[br]] |
| 56 | |
| 57 | The following enumeration will be added: |
| 58 | |
| 59 | |
| 60 | {{{ |
| 61 | enum FdoCompareType |
| 62 | { |
| 63 | FdoCompareType_Undefined, |
| 64 | FdoCompareType_Less, |
| 65 | FdoCompareType_Greater, |
| 66 | FdoCompareType_Equal |
| 67 | }; |
| 68 | }}} |