next up previous contents
Next: GetItemMethods Up: Item Access Methods Previous: GetItemLinkedChildren

GetItemLinkedParents

NAME GetItemLinkedParents

PROTOTYPE

#include "CifBuilder.h"

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

EXAMPLE

#include "CifBuilder.h"

CifBuilder cb("mmCif96.psf");

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

uWord numParent = 0;
char ** parents = cb.GetItemLinkedParents("_atom_site.cartn_x",
                                           numParent);
PURPOSE

GetItemLinkedParents returns an array containing the parent item names of the item itemName.

RECEIVES

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

RETURN VALUE

Returns the parent item names as a char ** or NULL. The number of parents will be passed back via the second argument.

REMARKS

See also: GetItemLinkedChildren



Olivera Tosic
6/13/2002