Changes between Version 1 and Version 2 of FdoExpressionType
- Timestamp:
- 10/18/07 08:00:57 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FdoExpressionType
v1 v2 10 10 There are also instances where developers need to make a distinction between !FdoComputedIdentifier, !FdoIdentifier, !FdoFunction and !FdoDataValue objects. 11 11 12 There are a few classes which will benefit of this change. For example, the filter processor classes. With the proposed change, developers wil be able to remove calls to dynamic_cast and replace them with a simple call to a GetType function.12 There are a few classes which will benefit of this change. For example, the filter processor classes. With the proposed change, developers wil be able to remove calls to dynamic_cast and replace them with a simple call to a !GetType function. 13 13 14 14 === API Changes === … … 18 18 To support such a change, the FDO API will need to define two enumerations which will contain all types of expression and filters. 19 19 20 The name of the filter enumeration will be !FdoFilterClassType. 20 The name of the filter enumeration will be !FdoFilterClassType.[[br]] 21 21 The name of the expression enumeration will be !FdoExpressionClassType. 22 22 23 ==== Function Definitions ==== 24 25 The following functions will be added: 26 23 ==== !GetExpressionClassType ==== 27 24 28 25 {{{ … … 53 50 !FdoExpressionClassType – type of the FDO Expression 54 51 55 56 52 {{{ 57 53 enum FdoExpressionClassType{ … … 77 73 }; 78 74 }}} 75 76 ==== !FdoFilterClassType ==== 77 78 {{{ 79 FDO_API virtual FdoFilterClassType FdoFilter::GetFilterType() = 0; 80 FDO_API virtual FdoFilterClassType FdoBinaryLogicalOperator::GetExpressionType(); 81 FDO_API virtual FdoFilterClassType FdoUnaryLogicalOperator::GetExpressionType(); 82 FDO_API virtual FdoFilterClassType FdoComparisonCondition::GetExpressionType(); 83 FDO_API virtual FdoFilterClassType FdoInCondition::GetExpressionType(); 84 FDO_API virtual FdoFilterClassType FdoNullCondition::GetExpressionType(); 85 FDO_API virtual FdoFilterClassType FdoDistanceCondition::GetExpressionType(); 86 FDO_API virtual FdoFilterClassType FdoSpatialCondition::GetExpressionType(); 87 }}} 88 89 where: 90 91 !FdoFilterClassType – type of the FDO Filter 92 93 {{{ 94 enum FdoFilterClassType{ 95 FdoFilterClassType_BinaryLogicalOperator, 96 FdoFilterClassType_UnaryLogicalOperator, 97 FdoFilterClassType_ComparisonCondition, 98 FdoFilterClassType_InCondition, 99 FdoFilterClassType_NullCondition, 100 FdoFilterClassType_DistanceCondition, 101 FdoFilterClassType_SpatialCondition 102 }; 103 }}} 104 105