Steinberg::IPluginFactory Class Reference

#include <ipluginbase.h>

Inheritance diagram for Steinberg::IPluginFactory:

Steinberg::FUnknown Steinberg::IPluginFactory2 List of all members.

Public Member Functions

virtual tresult PLUGIN_API getFactoryInfo (PFactoryInfo *info)=0
virtual int32 PLUGIN_API countClasses ()=0
virtual tresult PLUGIN_API getClassInfo (int32 index, PClassInfo *info)=0
virtual tresult PLUGIN_API createInstance (const char *cid, const char *iid, void **obj)=0

Static Public Attributes

static const FUID iid

Detailed Description

Class factory that any plugin defines for creating class instances. [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).

An implementation is provided in public.sdk/source/common/pluginfactory.cpp

See also:
GetPluginFactory

Definition at line 186 of file ipluginbase.h.


Member Function Documentation

virtual int32 PLUGIN_API Steinberg::IPluginFactory::countClasses (  )  [pure virtual]

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.

virtual tresult PLUGIN_API Steinberg::IPluginFactory::createInstance ( const char *  cid,
const char *  iid,
void **  obj 
) [pure virtual]

Create a new class instance.

virtual tresult PLUGIN_API Steinberg::IPluginFactory::getClassInfo ( int32  index,
PClassInfo info 
) [pure virtual]

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

virtual tresult PLUGIN_API Steinberg::IPluginFactory::getFactoryInfo ( PFactoryInfo info  )  [pure virtual]

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


Member Data Documentation

const FUID Steinberg::IPluginFactory::iid [static]

Reimplemented from Steinberg::FUnknown.

Reimplemented in Steinberg::IPluginFactory2.

Definition at line 204 of file ipluginbase.h.


The documentation for this class was generated from the following file: Empty

Copyright ©2008 Steinberg Media Technologies. All Rights Reserved.