Important: The information in this document is obsolete and should not be used for new development.
NewCyberItem
Creates a Cyberdog item.
CyberItem NewCyberItem (in char* classID);
classID
- A pointer to the SOM class ID of the Cyberdog item to create.
- return value
- The newly created Cyberdog item.
DISCUSSION
This method creates a Cyberdog item for the specified SOM class ID. The first time a particular class ID is passed to the method, the method callsODNewObject
to create a prototype Cyberdog item for that class ID, caches the prototype, and returns a clone of that prototype. On subsequent calls to the method with the same class ID, the method returns a clone of the prototype.This method is optimized for creating large numbers of Cyberdog items at a time, for example, when reading the log from storage.
Do not subclass this class.