#include "ndb_cifparse.h"
int ndb_cif_read_dic_with_format(CifHandle *cf,
FILE *fp,
CifHandle *ddl,
FILE *fp_ddl,
CifHandle *format);
ndb_cif_read_dic_with_format reads a dictionary/cif file into the CifHandle data structure specified by ddl from a file pointed to by file descriptor fp. Checks corectness of dictionary/cif file like the ndb_cif_read_dic. Additionaly, saves the format of save frames of dictionary/cif file into the CifHandle dat structure format. 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 data 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 |
format | pointer to the CifHandle structur where the format is loaded |
Returns the number of data blocks in the input file or 0 for failure.
Function does provide new value to the cf, ddl and format.
See also: | ndb_cif_read_dic |
---|---|
ndb_cif_write_dic_by_format |