Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

corplugin.c File Reference

#include "molfile_plugin.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Compounds

struct  cordata

Defines

#define COR_RECORD_LENGTH   141

Functions

void strip_whitespace (char *str, int n)
char * corgets (char *s, int n, FILE *stream)
FILE * open_cor_file (const char *fname, int *natom, int *iofoext)
int get_cor_atom (FILE *f, char *atomName, char *atomType, char *resName, char *segName, int *resId, int ioext)
void * open_cor_read (const char *path, const char *filetype, int *natoms)
int read_cor_structure (void *v, int *optflags, molfile_atom_t *atoms)
int read_cor_timestep (void *v, int natoms, molfile_timestep_t *ts)
void close_cor_read (void *mydata)
VMDPLUGIN_API int VMDPLUGIN_init ()
VMDPLUGIN_API int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)
VMDPLUGIN_API int VMDPLUGIN_fini ()

Variables

molfile_plugin_t plugin


Define Documentation

#define COR_RECORD_LENGTH   141
 

Definition at line 46 of file corplugin.c.

Referenced by get_cor_atom, open_cor_file, and read_cor_timestep.


Function Documentation

void close_cor_read void *    mydata [static]
 

Definition at line 352 of file corplugin.c.

References cordata::file.

Referenced by VMDPLUGIN_init.

char* corgets char *    s,
int    n,
FILE *    stream
[static]
 

Definition at line 77 of file corplugin.c.

Referenced by get_cor_atom, and read_cor_timestep.

int get_cor_atom FILE *    f,
char *    atomName,
char *    atomType,
char *    resName,
char *    segName,
int *    resId,
int    ioext
[static]
 

Definition at line 153 of file corplugin.c.

References COR_RECORD_LENGTH, corgets, and strip_whitespace.

Referenced by read_cor_structure.

FILE* open_cor_file const char *    fname,
int *    natom,
int *    iofoext
[static]
 

Definition at line 101 of file corplugin.c.

References COR_RECORD_LENGTH, and MOLFILE_NUMATOMS_NONE.

Referenced by open_cor_read.

void* open_cor_read const char *    path,
const char *    filetype,
int *    natoms
[static]
 

Definition at line 250 of file corplugin.c.

References cordata::file, cordata::iofoext, cordata::numatoms, and open_cor_file.

Referenced by VMDPLUGIN_init.

int read_cor_structure void *    v,
int *    optflags,
molfile_atom_t   atoms
[static]
 

Definition at line 267 of file corplugin.c.

References molfile_atom_t::chain, cordata::file, get_cor_atom, cordata::iofoext, MOLFILE_ERROR, MOLFILE_NOOPTIONS, molfile_atom_t::name, cordata::numatoms, molfile_atom_t::resid, molfile_atom_t::resname, molfile_atom_t::segid, and molfile_atom_t::type.

Referenced by VMDPLUGIN_init.

int read_cor_timestep void *    v,
int    natoms,
molfile_timestep_t   ts
[static]
 

Definition at line 290 of file corplugin.c.

References molfile_timestep_t::coords, COR_RECORD_LENGTH, corgets, cordata::file, cordata::iofoext, and MOLFILE_ERROR.

Referenced by VMDPLUGIN_init.

void strip_whitespace char *    str,
int    n
[static]
 

Definition at line 49 of file corplugin.c.

Referenced by get_cor_atom.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 389 of file corplugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 366 of file corplugin.c.

References close_cor_read, molfile_plugin_t::close_file_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_cor_read, molfile_plugin_t::open_file_read, read_cor_structure, read_cor_timestep, molfile_plugin_t::read_next_timestep, molfile_plugin_t::read_structure, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 384 of file corplugin.c.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 364 of file corplugin.c.


Generated on Fri Mar 29 03:10:22 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002