Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

cmap_open.c File Reference

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)


Detailed Description

Opening CCP4-format map files.

Author:
Charles Ballard

Function Documentation

void* ccp4_cmap_open const char *    filename,
int    mode
 

The file is opened.

Parameters:
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
Returns:
(void *) CMMFile structure

CMMFile* init_cmap_read void   
 

Internal: malloc CMMFile struct for reading into

Returns:
CMMFile

CMMFile* init_cmap_write void   
 

Internal: malloc CMMFile struct for writing

Returns:
CMMFile

int is_cmap CCP4File   file
 

Internal: Identify file as a ccp4 format map

Parameters:
file  The (CCP4File *) struct representing the file.
Returns:
non-zero on true, 0 on false