IPluginFactory

Class factory that any Plug-in defines for creating class instances. \ingroup pluginBase - [plug imp]

From the host's point of view a Plug-in module is a factory which can create a certain kind of object(s). The interface IPluginFactory provides methods to get information about the classes exported by the Plug-in and a mechanism to create instances of these classes (that usually define the IPluginBase interface).

<b> An implementation is provided in public.sdk/source/common/pluginfactory.cpp </b> \see GetPluginFactory

Members

Functions

countClasses
int32 countClasses()

Returns the number of exported classes by this factory. If you are using the CPluginFactory implementation provided by the SDK, it returns the number of classes you registered with CPluginFactory::registerClass.

createInstance
tresult createInstance(FIDString cid, FIDString _iid, void** obj)

Create a new class instance.

getClassInfo
tresult getClassInfo(int32 index, PClassInfo* info)

Fill a PClassInfo structure with information about the class at the specified index.

getFactoryInfo
tresult getFactoryInfo(PFactoryInfo* info)

Fill a PFactoryInfo structure with information about the Plug-in vendor.

Static variables

iid
TUID iid;
Undocumented in source.

Inherited Members

From IUnknown

queryInterface
tresult queryInterface(const(TUID) _iid, void** obj)
Undocumented in source.
addRef
uint addRef()
Undocumented in source.
release
uint release()
Undocumented in source.

Meta