FDO API Reference Feature Data Objects

FdoComputedIdentifier Class Reference

#include <ComputedIdentifier.h>

Inherits FdoIdentifier.

Inheritance diagram for FdoComputedIdentifier:

Inheritance graph
[legend]
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.

Definition at line 46 of file ComputedIdentifier.h.


Public Member Functions

FDO_API FdoExpressionGetExpression ()
 Gets the full text of the identifier.
FDO_API void Process (FdoIExpressionProcessor *p)
 Overrides FdoExpression.Process to pass the FdoComputedIdentifier to the appropriate expression processor operation.
FDO_API void SetExpression (FdoExpression *value)
 Sets the full text of the identifier.
FDO_API FdoStringToString ()
 Returns the well defined text representation of this expression.
virtual FdoStringToStringInternal (FdoIdentifierCollection *pIdCol)
 This is an internal method. It returns the well defined text representation of the expression.

Static Public Member Functions

static FDO_API FdoComputedIdentifierCreate (FdoString *name, FdoExpression *expression)
 Constructs an instance of an identifier using the specified arguments.
static FDO_API FdoComputedIdentifierCreate ()
 Constructs a default instance of an identifier.

Protected Member Functions

virtual void Dispose ()
 Dispose this object.
 FdoComputedIdentifier (FdoString *name, FdoExpression *expression)
 Constructs an instance of a computed identifier using the specified arguments.
 FdoComputedIdentifier ()
 Constructs a default instance of an identifier.
virtual ~FdoComputedIdentifier ()
 Default destructor for identifier.

The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.