gpp4  1.3.1
Functions
cmap_labels.h File Reference

Declaration of routines to parse and output map labels. More...

Go to the source code of this file.

Functions

int parse_maplabels (CMMFile *mfile)
int write_maplabels (const CMMFile *mfile)

Detailed Description

Declaration of routines to parse and output map labels.

Author:
Charles Ballard.

Function Documentation

int parse_maplabels ( CMMFile mfile)

Internal: read the labels from file header and copy into char * array Called when the file is opened in read mode.

Parameters:
mfile(CMMFile *)
Returns:
1 on succes

References ccp4_file_raw_seek(), ccp4_file_readchar(), float_uint_uchar::i, _CMMFile::labels, and _CMMFile::stream.

int write_maplabels ( const CMMFile mfile)

Internal: dump the labels char * array to file, offset at 224 bytes. Called when the file is opened or closed in write mode, immediately after the header is written.

Parameters:
mfile(const CMMFile *)
Returns:
1 on success, 0 on failure

References ccp4_file_writechar(), float_uint_uchar::i, _CMMFile::labels, and _CMMFile::stream.