nn::nex::Operation::DynamicCast Member Function

Syntax

static SpecificOperation * DynamicCast(
     Operation * pOperation
);

Parameters

Name Description
in pOperation Specifies the pointer to the operation object to convert from.

Return Values

Returns the dynamically cast pointer.

Value Description
NULL Returned if the specified pOperation is NULL, or if pOperation is not a class instance of the cast target.

Description

Casts dynamically by using run-time information.

This function uses NetZ dynamic information to provide the same functionality as the C++ dynamic_cast operator. It can only be used for the Operation class and its derived classes. RTTI must be enabled to use this feature.

To call this function, call a static function of the class that you want to cast. For example, to dynamically convert the Operation type pointer pOperation into an AddToStoreOperation type pointer, use the AddToStoreOperation::DynamicCast function for the casting.

Revision History

2012/01/26
Initial version.

CONFIDENTIAL