Example - How to use the class factory macros:
More...
|
#define | BEGIN_FACTORY(vendor, url, email, flags) |
|
#define | DEF_CLASS(cid, cardinality, category, name, createMethod) |
|
#define | DEF_CLASS1(cid, cardinality, category, name, createMethod) |
|
#define | DEF_CLASS2(cid, cardinality, category, name, classFlags, subCategories, version, sdkVersion, createMethod) |
|
#define | DEF_CLASS_W(cid, cardinality, category, name, classFlags, subCategories, version, sdkVersion, createMethod) |
|
#define | END_FACTORY |
|
Example - How to use the class factory macros:
"http://www.steinberg.de",
"mailto:info@steinberg.de",
PFactoryInfo::kNoFlags)
DEF_CLASS (INLINE_UID (0x00000000, 0x00000000, 0x00000000, 0x00000000),
PClassInfo::kManyInstances,
"Service",
"Test Service",
TestService::newInstance)
#define BEGIN_FACTORY |
( |
|
vendor, |
|
|
|
url, |
|
|
|
email, |
|
|
|
flags |
|
) |
| |
Value:using namespace Steinberg;
\
if (!gPluginFactory) \
{
static PFactoryInfo factoryInfo (vendor,url,email,flags); \
Default Class Factory implementation.
Definition: pluginfactoryvst3.h:48
#define EXPORT_FACTORY
Definition: pluginfactoryvst3.h:124
Steinberg::IPluginFactory * GetPluginFactory()
#define DEF_CLASS |
( |
|
cid, |
|
|
|
cardinality, |
|
|
|
category, |
|
|
|
name, |
|
|
|
createMethod |
|
) |
| |
Value:{
TUID lcid = cid;
static PClassInfo componentClass (lcid,cardinality,category,name); \
gPluginFactory->registerClass (&componentClass,createMethod); }
#define DEF_CLASS1 |
( |
|
cid, |
|
|
|
cardinality, |
|
|
|
category, |
|
|
|
name, |
|
|
|
createMethod |
|
) |
| |
Value:{
static PClassInfo componentClass (cid,cardinality,category,name); \
gPluginFactory->registerClass (&componentClass,createMethod); }
#define DEF_CLASS2 |
( |
|
cid, |
|
|
|
cardinality, |
|
|
|
category, |
|
|
|
name, |
|
|
|
classFlags, |
|
|
|
subCategories, |
|
|
|
version, |
|
|
|
sdkVersion, |
|
|
|
createMethod |
|
) |
| |
Value:{
TUID lcid = cid;
static PClassInfo2 componentClass (lcid,cardinality,category,name,classFlags,subCategories, 0 ,version,sdkVersion);\
gPluginFactory->registerClass (&componentClass,createMethod); }
#define DEF_CLASS_W |
( |
|
cid, |
|
|
|
cardinality, |
|
|
|
category, |
|
|
|
name, |
|
|
|
classFlags, |
|
|
|
subCategories, |
|
|
|
version, |
|
|
|
sdkVersion, |
|
|
|
createMethod |
|
) |
| |
Value:{
TUID lcid = cid;
static PClassInfoUnicode componentClass (lcid,cardinality,category,name,classFlags,subCategories, 0,version,sdkVersion);\
gPluginFactory->registerClass (&componentClass,createMethod); }
Value:}
else gPluginFactory->
addRef (); \
return gPluginFactory; }
virtual uint32 addRef()=0