next up previous contents
Next: cifConstructSchema Up: C Language Interface Description Previous: cifWriteDataBlock

CIFLIB Schema Construction Functions

This section includes the set of functions that build and destroy CifSchema structures. This structure contains the tabular representation of the data structure within a data block. It contains the names of the categories declared within each data block and the items declared within each category. This structure defines the indices used to identify data blocks, categories, and items in all CIFLIB functions.

The CifSchema structure has the following form:

#define "ciflib.h"

typedef struct _CifSchema {
  int numCategory;
  CategorySchema *categories;
  char dataBlockName[CIF_MAXSTRLEN];
} CifSchema;

typedef struct _CategorySchema {
  char *category;
  int  numItem;
  ItemSchema *items;
} CategorySchema;


typedef struct _ItemSchema{
  char *item;
  int presentationOrder;
} ItemSchema;



 

Olivera Tosic
6/17/2002