Changes between Version 1 and Version 2 of FdoExpressionType


Ignore:
Timestamp:
10/18/07 08:00:57 (17 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoExpressionType

    v1 v2  
    1010There are also instances where developers need to make a distinction between !FdoComputedIdentifier, !FdoIdentifier, !FdoFunction and !FdoDataValue objects.
    1111
    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.
     12There 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.
    1313
    1414=== API Changes ===
     
    1818To support such a change, the FDO API will need to define two enumerations which will contain all types of expression and filters.
    1919
    20 The name of the filter enumeration will be !FdoFilterClassType.
     20The name of the filter enumeration will be !FdoFilterClassType.[[br]]
    2121The name of the expression enumeration will be !FdoExpressionClassType.
    2222
    23 ==== Function Definitions ====
    24 
    25 The following functions will be added:
    26 
     23==== !GetExpressionClassType ====
    2724
    2825{{{
     
    5350!FdoExpressionClassType – type of the FDO Expression
    5451
    55 
    5652{{{
    5753enum FdoExpressionClassType{
     
    7773};
    7874}}}
     75
     76==== !FdoFilterClassType ====
     77
     78{{{
     79FDO_API virtual FdoFilterClassType FdoFilter::GetFilterType() = 0;
     80FDO_API virtual FdoFilterClassType FdoBinaryLogicalOperator::GetExpressionType();
     81FDO_API virtual FdoFilterClassType FdoUnaryLogicalOperator::GetExpressionType();
     82FDO_API virtual FdoFilterClassType FdoComparisonCondition::GetExpressionType();
     83FDO_API virtual FdoFilterClassType FdoInCondition::GetExpressionType();
     84FDO_API virtual FdoFilterClassType FdoNullCondition::GetExpressionType();
     85FDO_API virtual FdoFilterClassType FdoDistanceCondition::GetExpressionType();
     86FDO_API virtual FdoFilterClassType FdoSpatialCondition::GetExpressionType();
     87}}}
     88
     89where:
     90
     91!FdoFilterClassType – type of the FDO Filter
     92
     93{{{
     94enum 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