class TXIMPGetInterface |
Interface query and type cast helper.
Templated interface query and type cast helper. Capable to retrieve const interface from const source object and non-const interface from non-const source object.
const MXIMPBase* obj = GetObjectImplementingTheInterfaceLC(); const MXimpFwTheInterface* theInterface = TXIMPGetInterface< const MXimpFwTheInterface >::From( *obj, MXIMPBase::EPanicIfUnknown ); theInterface->DoSomething();
MXIMPBase* obj = GetObjectImplementingTheInterfaceLC(); MXimpFwTheInterface* theInterface = TXIMPGetInterface< MXimpFwTheInterface >::From( *obj, MXIMPBase::EPanicIfUnknown ); theInterface->DoSomething();
Public Member Functions | |
---|---|
T * | From(const MXIMPBase &, MXIMPBase::TIfGetOps) |
T * | From(MXIMPBase &, MXIMPBase::TIfGetOps) |
Private Member Functions | |
---|---|
TXIMPGetInterface() |
T * | From | ( | const MXIMPBase & | aObj, |
MXIMPBase::TIfGetOps | aOps | |||
) | [static, inline] |
Interface query and type cast.
Encapsulates query of const interface from given const source object. The retrieved interface type is defined with template parameter. KInterfaceId identifier from template parameter, is used to identify the retrieved interface.
const MXIMPBase & aObj | Source object from where to retrieve interface. |
MXIMPBase::TIfGetOps aOps | Options for interface resolving. Given options are delivered directly to MXIMPBase::GetInterface(). |
T * | From | ( | MXIMPBase & | aObj, |
MXIMPBase::TIfGetOps | aOps | |||
) | [static, inline] |
Interface query and type cast.
Encapsulates query of interface from given source object. The retrieved interface type is defined with template parameter. KInterfaceId identifier from template parameter, is used to identify the retrieved interface.
MXIMPBase & aObj | Source object from where to retrieve interface. |
MXIMPBase::TIfGetOps aOps | Options for interface resolving. Given options are delivered directly to MXIMPBase::GetInterface(). |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.