#include <nwnet.h> or #include <nwdsbuft.h>NWDSCCODE N_API NWDSPutClassItem (NWDSContextHandle context, pBuf_T buf, pnstr8 itemName);
Class items are added to one of five class-definition item lists. The first two lists contain the names of classes; the remaining lists contain the names of attributes.
These class-definition item lists must be stored in the request buffer in the following order
NWDSPutClassItem is used in conjunction with NWDSBeginClassItem to add items into the list. NWDSBeginClassItem is called to move to the next class-definition item list.
The first time NWDSBeginClassItem is called, items added with NWDSPutClassItem will be placed in the Super Class Names list.
The second time NWDSBeginClassItem is called, items added with NWDSPutClassItem will be placed in the Containment Class Names list.
Items are added to the other lists with subsequent calls to NWDSBeginClassItem and NWDSPutClassItem.
NWDSPutClassItem adds one item each time it is called. To store multiple items in a list, call NWDSPutClassItem for each item.
See NWDSDefineClass(3nw) for the complete steps to fill out a buffer to be used for defining a new class.
Directory