next up previous contents
Next: GetSubcategoryExamplesDetail Up: Subcategory Access Methods Previous: GetSubcategoryDescription

GetSubcategoryExamplesCase

NAME GetSubcategoryExamplesCase

PROTOTYPE

#include "CifBuilder.h"

char ** CifBuilder::GetSubcategoryExamplesCase(const char *
                                               subcategoryId,
                                               uWord & n);

EXAMPLE

#include "CifBuilder.h"

CifBuilder cb("mmCif96.psf");

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

uWord numExamples = 0;
char ** examples = cb.GetSubcategoryExamplesCase("matrix",
                                                   numExamples);
PURPOSE

GetSubcategoryExamplesCase returns an array of examples for the subcategory subcategoryId.

RECEIVES

subcategoryId the name of the subcategory
n a reference to a uWord to hold the number of examples

RETURN VALUE

Returns the examples as a char ** or NULL. The number of examples will be passed back via the second argument.

REMARKS

See also: GetSubcategoryExamplesDetail



Olivera Tosic
6/13/2002