TIBCO Adapter SDK C++ Reference
|
This method is never called for an instance of MComponent. It is called for instances of its subclasses. It is documented here because it applies to all components.
NULL is returned if the safe cast operation is not successful.
Parameters | Description |
MComponent* pMComponent | An object for which you know the superclass but don’t know the direct superclass. For example, if a method returns an MComponent and you expect it is an MSubscriber, you use the returned MComponent as an argument to this method. |
MSubscriber * pSubscriber; pSubscriber = MSubscriber::downCast (pMComponent); if (pSubscriber)...
static MComponent* downCast(MComponent* pMComponent);