|
gpp4 1.3.1
|
Opening CCP4-format map files. More...
#include <string.h>#include <math.h>#include <stdarg.h>#include <fcntl.h>#include "cmaplib.h"#include "cmap_header.h"#include "cmap_labels.h"#include "cmap_errno.h"Functions | |
| CMMFile * | init_cmap_read (void) |
| CMMFile * | init_cmap_write (void) |
| int | is_cmap (CCP4File *file) |
| void * | ccp4_cmap_open (const char *filename, int mode) |
Opening CCP4-format map files.
| void* ccp4_cmap_open | ( | const char * | filename, |
| int | mode | ||
| ) |
The file is opened for reading/writing.
| filename | (char *) the filename |
| mode | (int) the i/o mode , possible values are O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_TMP, O_CREAT, O_TRUNC - see ccp4_sysdep.h |
References ccp4_file_close(), ccp4_file_open(), ccp4_file_rarch(), ccp4_file_raw_setstamp(), ccp4_signal(), _CMMFile::file_name, init_cmap_read(), init_cmap_write(), is_cmap(), and _CMMFile::stream.
Referenced by FORTRAN_SUBR().
| CMMFile* init_cmap_read | ( | void | ) |
| CMMFile* init_cmap_write | ( | void | ) |
Internal: malloc CMMFile struct for writing
References _CMMFile::data, _CMMFile::data_mode, _CMMFile_Symop::offset, and _CMMFile::symop.
Referenced by ccp4_cmap_open().
| int is_cmap | ( | CCP4File * | file | ) |
Internal: Identify file as a ccp4 format map
| file | The (CCP4File *) struct representing the file. |
References ccp4_file_raw_seek(), ccp4_file_readchar(), and ccp4_file_rewind().
Referenced by ccp4_cmap_open().
1.7.4