Default Class Factory implementation.
More...
#include <pluginfactory.h>
|
| CPluginFactory (const PFactoryInfo &info) |
|
virtual | ~CPluginFactory () |
|
bool | registerClass (const PClassInfo *info, FUnknown *(*createFunc)(void *), void *context=nullptr) |
| Registers a plug-in class with classInfo version 1, returns true for success. More...
|
|
bool | registerClass (const PClassInfo2 *info, FUnknown *(*createFunc)(void *), void *context=nullptr) |
| Registers a plug-in class with classInfo version 2, returns true for success. More...
|
|
bool | registerClass (const PClassInfoW *info, FUnknown *(*createFunc)(void *), void *context=nullptr) |
| Registers a plug-in class with classInfo Unicode version, returns true for success. More...
|
|
bool | isClassRegistered (const FUID &cid) |
| Check if a class for a given classId is already registered. More...
|
|
void | removeAllClasses () |
| Remove all classes (no class exported) More...
|
|
DECLARE_FUNKNOWN_METHODS tresult | getFactoryInfo (PFactoryInfo *info) SMTG_OVERRIDE |
|
int32 | countClasses () SMTG_OVERRIDE |
|
tresult | getClassInfo (int32 index, PClassInfo *info) SMTG_OVERRIDE |
|
tresult | createInstance (FIDString cid, FIDString _iid, void **obj) SMTG_OVERRIDE |
|
tresult | getClassInfo2 (int32 index, PClassInfo2 *info) SMTG_OVERRIDE |
|
tresult | getClassInfoUnicode (int32 index, PClassInfoW *info) SMTG_OVERRIDE |
|
tresult | setHostContext (FUnknown *context) SMTG_OVERRIDE |
|
virtual tresult | getClassInfoUnicode (int32 index, PClassInfoW *info)=0 |
|
virtual tresult | setHostContext (FUnknown *context)=0 |
|
virtual tresult | getClassInfo2 (int32 index, PClassInfo2 *info)=0 |
|
virtual tresult | getFactoryInfo (PFactoryInfo *info)=0 |
|
virtual int32 | countClasses ()=0 |
|
virtual tresult | getClassInfo (int32 index, PClassInfo *info)=0 |
|
virtual tresult | createInstance (FIDString cid, FIDString _iid, void **obj)=0 |
|
virtual tresult | queryInterface (const TUID _iid, void **obj)=0 |
|
virtual uint32 | addRef ()=0 |
|
virtual uint32 | release ()=0 |
|
Default Class Factory implementation.
- See also
- Macros for defining the class factory
◆ CPluginFactory()
◆ ~CPluginFactory()
◆ registerClass() [1/3]
bool registerClass |
( |
const PClassInfo * |
info, |
|
|
FUnknown *(*)(void *) |
createFunc, |
|
|
void * |
context = nullptr |
|
) |
| |
Registers a plug-in class with classInfo version 1, returns true for success.
◆ registerClass() [2/3]
bool registerClass |
( |
const PClassInfo2 * |
info, |
|
|
FUnknown *(*)(void *) |
createFunc, |
|
|
void * |
context = nullptr |
|
) |
| |
Registers a plug-in class with classInfo version 2, returns true for success.
◆ registerClass() [3/3]
bool registerClass |
( |
const PClassInfoW * |
info, |
|
|
FUnknown *(*)(void *) |
createFunc, |
|
|
void * |
context = nullptr |
|
) |
| |
Registers a plug-in class with classInfo Unicode version, returns true for success.
◆ isClassRegistered()
bool isClassRegistered |
( |
const FUID & |
cid | ) |
|
Check if a class for a given classId is already registered.
◆ removeAllClasses()
void removeAllClasses |
( |
| ) |
|
Remove all classes (no class exported)
◆ getFactoryInfo()
◆ countClasses()
◆ getClassInfo()
◆ createInstance()
◆ getClassInfo2()
◆ getClassInfoUnicode()
◆ setHostContext()
◆ growClasses()
◆ factoryInfo
◆ classes
◆ classCount
◆ maxClassCount