InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDFactory Class Reference

#include <IDFactory.h>

Public Member Functions

 IDFactory (const int32 &space, const char *name, const int32 &id)
 

Static Public Member Functions

static void InstallIDs (PluginID ownerComponent)
 

Detailed Description

This is similar to an InterfaceFactory, but relates an ID to a name. This is used for debugging purposes, and works only in the Debug build. You should not need to access IDFactory directly, just declare your IDs with DECLARE_PMIID.

Constructor & Destructor Documentation

IDFactory::IDFactory (const int32 & space,
const char * name,
const int32 & id 
)

Construct a new IDFactory, relating a given ID to a C++ string.

Parameters
spaceThe ID space for the ID (e.g., kClassIDSpace, kImplemetationIDSpace, etc.)
nameThe C++ name of the ID
idThe prefix + n of the ID, where n MUST NOT be greater than 255! or you'll overflow your prefix

Member Function Documentation

static void IDFactory::InstallIDs (PluginID ownerComponent)
static

For internal use only