An Information Portal to Biological Macromolecular Structures
|PDB Home | Contact Us||Software Tools Home | Dictionary Home | PDBML Home|
int ndb_cif_read_dic(CifHandle *cf,
ndb_cif_read_dic reads a dictionary/cif file into the CifHandle data structure specified by cf from a file pointed to by file descriptor fp. Function first reads ddl/dictionary into the CifHandle data structure specified by ddl, from a file pointed to by file descriptor fp_ddl than reads dictionary/cif file from a file pointed to by file descriptor fp and checks correctness of dictionary/cif file. All interaction with the data file takes place inside this function. Subsequent access to ddl data is managed by a set of methods that access memory resident data.
|cf||pointer to the CifHandle data structure where the dictionary/cif file is loaded|
|fp||pointer to the file descriptor for the dictionary/cif input file|
|ddl||pointer to the CifHandle data structure where the ddl file is loaded|
|fp_ddl||pointer to the file descriptor for the ddl input file|
Returns the number of data blocks in the input file or 0 for failure.
Function does provide new value to the cf and ddl.