next up previous contents
Next: GetItemSubcategories Up: Item Access Methods Previous: GetItemRelated

GetItemRelatedFunctionCode

NAME GetItemRelatedFunctionCode

PROTOTYPE

#include "CifBuilder.h"

char ** CifBuilder::GetItemRelatedFunctionCode(const char *
                                               itemName,
                                               uWord & n);

EXAMPLE

#include "CifBuilder.h"

CifBuilder cb("mmCif96.psf");

cb.BuildDictionaryList();
cb.SetContext("cifdic.m96");

uWord numRelated = 0;
char ** relatedFCode =
 cb.GetItemRelatedFunctionCode("_atom_site.cartn_x", numRelated);
PURPOSE

GetItemRelatedFunctionCode returns an array containing the function codes for the items related to the item itemName.

RECEIVES

itemName the name of the item
n a reference to a uWord to hold the number of related items

RETURN VALUE

Returns the related item function codes as a char ** or NULL. The number of related items will be passed back via the second argument.

REMARKS

See also: GetItemRelated



Olivera Tosic
6/13/2002