FDO API Reference Feature Data Objects

ComputedIdentifier Class Reference

List of all members.

Detailed Description

The FdoComputedIdentifier class derives from FdoIdentifier and represents an expression with alias. The name or alias must be a simple name and should not be scoped or contain the the schema name. The FdoComputedIdentifier can be used to provide an alias to an expression. For example the expression Length*NumLanes can be refered to as MaxTraficCapacity. In this case, a computed identifier can be created as:.

///    FdoComputedIdentifier::Create(L"MaxTraficCapacity", 
///        FdoBinaryExpression::Create( FdoIdentifier(L"Length"),
///                                     FdoBinaryOperations_Multiply,
///                                     FdoIdentifier(L"NumLanes")
///         );
/// );
/// 
Note:
For clarity, the example omits the release code needed to free the various created objects.


Public Member Functions

 ComputedIdentifier (System::IntPtr unmanaged, System::Boolean autoDelete)
 ComputedIdentifier (System::String *name, NAMESPACE_OSGEO_FDO_EXPRESSION::Expression *expression)
 Constructs an instance of an identifier using the specified arguments.
 ComputedIdentifier ()
 Constructs a default instance of an identifier.
__property NAMESPACE_OSGEO_FDO_EXPRESSION::Expression * get_Expression ()
 Gets the full text of the identifier.
System::Void Process (NAMESPACE_OSGEO_FDO_EXPRESSION::IExpressionProcessor *processor)
 Overrides FdoExpression.Process to pass the FdoComputedIdentifier to the appropriate expression processor operation.
System::Void set_Expression (NAMESPACE_OSGEO_FDO_EXPRESSION::Expression *value)
 Sets the full text of the identifier.
System::String * ToString ()
 Returns the well defined text representation of this expression.

Comments or suggestions? Send us feedback.