Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IModule::getComponentFactory ( const P6R::P6CID cid,
const P6R::P6IID iid,
P6VOID **  ppIface 
)
pure virtual

Used to retrieve and instance of the modules component p6IFactory interface.

This interface is used to create instances of the module's components. If you need to create many instances, then this interface would be more efficient than using p6CreateInstance().

Parameters
cid[ in ] A reference to the component ID of the component.
iid[ in ] The interface ID if the factory being requested.
ppIface[ out ] A pointer to the interface pointer specified by iid.
Returns
SuccessP6R::eOk 
FailureP6R::eAccessFaultppIface is NULL
P6R::eNoInterfaceThe requested factory interface was not found.
P6R::eNoMemoryThere was not enough memory to satisfy the request.
P6R::eComponentNotFoundThe component ID secified in cid was not found in this module.