nn::nex::DuplicatedObject::Create Member Function

Syntax

static DuplicatedObject * Create(
     DOClassID idDOClass,
     DOID idUserDefinedID
);

Parameters

Name Description
in idDOClass Specifies a duplicated object class ID of the type to create.
in idUserDefinedID Specifies the instance ID of the duplicated object instance to create.

Return Values

Returns a pointer to the created local instance of the duplicated object.

Description

Creates a local instance of a duplicated object.

Creates a local instance of a duplicated object having the specified duplicated object class ID (DOClassID) type. Duplicated object class IDs are automatically generated by the Data Definition Language (DDL) file.
Note: These values may change if you rewrite the DDL file and rebuild the program.

In this overloaded function, you can explicitly specify the DOID of the duplicated object to create. This value is generated by calling the IDGenerator::GenerateID function. The duplicated object handles of the ID generators for each duplicated object class can be obtained with a function called GetIDGenerator that is implemented in the source code automatically created by the DDL compiler.

See Also

Publish, CreateWellKnown

Revision History

2012/01/27
Initial version.

CONFIDENTIAL