|Non-Confidential||PDF version||ARM 100963_0200_00_en|
|Home > Target Connection Mechanism > Requirements for the target connection mechanism > ObtainInterface()|
This section describes the
ObtainInterface() must be implemented for
all of the CADI classes used in the target connection mechanism.
ObtainInterface() identifies the availability of a specific interface and the
version of the interface. It performs a compatibility check for the caller:
The implementation first compares the interface name and revision number with those forwarded through the method call.
If no compatible interface is found, the same checks are performed for base classes if they are available.
CAInterfacepointer is returned. The pointer type must be converted to the interface class that was actually requested.
NULLpointer is returned.