![]() | InDesign SDK 20.5 |
#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) |
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.
| IDFactory::IDFactory | ( | const int32 & | space, |
| const char * | name, | ||
| const int32 & | id | ||
| ) |
Construct a new IDFactory, relating a given ID to a C++ string.
| space | The ID space for the ID (e.g., kClassIDSpace, kImplemetationIDSpace, etc.) |
| name | The C++ name of the ID |
| id | The prefix + n of the ID, where n MUST NOT be greater than 255! or you'll overflow your prefix |
| static |
For internal use only