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

rst7plugin.c File Reference

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

Go to the source code of this file.

Compounds

struct  rstdata

Functions

void * open_rst_read (const char *filename, const char *filetype, int *natoms)
int read_rst_timestep (void *mydata, int natoms, molfile_timestep_t *ts)
void close_rst_read (void *mydata)
void * open_rst_write (const char *path, const char *filetype, int natoms)
int write_rst_timestep (void *v, const molfile_timestep_t *ts)
void close_rst_write (void *v)
VMDPLUGIN_API int VMDPLUGIN_init ()
VMDPLUGIN_API int VMDPLUGIN_fini ()
VMDPLUGIN_API int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)

Variables

molfile_plugin_t rst7plugin


Function Documentation

void close_rst_read void *    mydata [static]
 

Definition at line 143 of file rst7plugin.c.

References rstdata::file.

void close_rst_write void *    v [static]
 

Definition at line 183 of file rst7plugin.c.

References rstdata::file.

void* open_rst_read const char *    filename,
const char *    filetype,
int *    natoms
[static]
 

Definition at line 31 of file rst7plugin.c.

References rstdata::file, rstdata::has_box, rstdata::numatoms, and rstdata::rstfile.

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

Definition at line 149 of file rst7plugin.c.

References rstdata::file, rstdata::has_box, and rstdata::numatoms.

int read_rst_timestep void *    mydata,
int    natoms,
molfile_timestep_t   ts
[static]
 

Definition at line 110 of file rst7plugin.c.

References molfile_timestep_t::coords, rstdata::count, rstdata::file, MOLFILE_ERROR, MOLFILE_SUCCESS, rstdata::numatoms, and rstdata::rstfile.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 214 of file rst7plugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 211 of file rst7plugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 217 of file rst7plugin.c.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.

int write_rst_timestep void *    v,
const molfile_timestep_t   ts
[static]
 

Definition at line 168 of file rst7plugin.c.

References molfile_timestep_t::coords, rstdata::file, rstdata::has_box, MOLFILE_SUCCESS, and rstdata::numatoms.


Variable Documentation

molfile_plugin_t rst7plugin [static]
 

Initial value:

 {
    vmdplugin_ABIVERSION,   
    MOLFILE_PLUGIN_TYPE,    
    "rst7",                 
    "AMBER7 Restart",       
    "Brian Bennion",        
    0,                      
    2,                      
    VMDPLUGIN_THREADUNSAFE, 
    "rst7",                 
    open_rst_read,
    0,
    0,
    read_rst_timestep,
    close_rst_read,
    open_rst_write,
    0,
    write_rst_timestep,
    close_rst_write
}

Definition at line 190 of file rst7plugin.c.


Generated on Wed Mar 22 13:15:34 2006 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002