static SpecificOperation * DynamicCast( Operation * pOperation );
Name | Description | |
---|---|---|
in | pOperation | Specifies the pointer to the operation object to convert from. |
Value | Description |
---|---|
NULL | Returned if the specified pOperation is NULL , or if pOperation is not a class instance of the cast target. |
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.
CONFIDENTIAL