Bsoft 2.1.4
Bernard's software package
rwmodel_cif.h File Reference

Read and write molecules in CIF format. More...

#include "rwmodel.h"

Functions

Bmodelread_model_cif (Bstring &filename, Bstring &paramfile)
 Reads a molecule group from a CIF format file. More...
 
long write_model_cif (Bstring &filename, Bmodel *model)
 Writes a molecule group to a CIF format file. More...
 

Detailed Description

Read and write molecules in CIF format.

Author
Bernard Heymann
Date
Created: 19991113
Modified: 20220103

Function Documentation

◆ read_model_cif()

Bmodel * read_model_cif ( Bstring filename,
Bstring paramfile 
)

Reads a molecule group from a CIF format file.

Parameters
&filenamethe file name.
&paramfileparameter file.
Returns
long number of molecules read (<0 if reading failed).

◆ write_model_cif()

long write_model_cif ( Bstring filename,
Bmodel model 
)

Writes a molecule group to a CIF format file.

Parameters
&filenamethe file name.
*modelthe model.
Returns
long number of molecules written (<0 if writing failed).