|
#define P6_IMPLEMENT_ICOM12 |
( |
classname, |
|
|
interface1, |
|
|
interface2, |
|
|
interface3, |
|
|
interface4, |
|
|
interface5, |
|
|
interface6, |
|
|
interface7, |
|
|
interface8, |
|
|
interface9, |
|
|
interface10, |
|
|
interface11, |
|
|
interface12 |
|
) |
|
Value:P6ERR classname::queryInterface(const P6R::IID &iid, P6R::P6VOID** ppv) { \
if(!ppv) \
return P6R::eAccessFault; \
*ppv = NULL; \
if(iid == IID_p6ICom) *ppv = static_cast<interface1*>(this); \
else if(iid == IID_##interface1) *ppv = static_cast<interface1*>(this); \
else if(iid == IID_##interface2) *ppv = static_cast<interface2*>(this); \
else if(iid == IID_##interface3) *ppv = static_cast<interface3*>(this); \
else if(iid == IID_##interface4) *ppv = static_cast<interface4*>(this); \
else if(iid == IID_##interface5) *ppv = static_cast<interface5*>(this); \
else if(iid == IID_##interface6) *ppv = static_cast<interface6*>(this); \
else if(iid == IID_##interface7) *ppv = static_cast<interface7*>(this); \
else if(iid == IID_##interface8) *ppv = static_cast<interface8*>(this); \
else if(iid == IID_##interface9) *ppv = static_cast<interface9*>(this); \
else if(iid == IID_##interface10) *ppv = static_cast<interface10*>(this); \
else if(iid == IID_##interface11) *ppv = static_cast<interface11*>(this); \
else if(iid == IID_##interface12) *ppv = static_cast<interface12*>(this); \
else return P6R::eNoInterface; \
reinterpret_cast<p6ICom*>(*ppv)->addref(); \
return P6R::eOk; \
} \
P6_IMPLEMENT_THREADSAFE_ADDREF(classname) \
P6_IMPLEMENT_THREADSAFE_RELEASE(classname) \
P6_IMPLEMENT_CREATEINSTANCE_NO_AGG(classname)
Definition at line 303 of file p6comhlpr.h.
|