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

rst7plugin.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "molfile_plugin.h"
#include "vmdconio.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_register (void *v, vmdplugin_register_cb cb)
VMDPLUGIN_API int VMDPLUGIN_fini ()

Variables

molfile_plugin_t plugin


Function Documentation

void close_rst_read void *    mydata [static]
 

Definition at line 229 of file rst7plugin.c.

References rstdata::file.

Referenced by VMDPLUGIN_init.

void close_rst_write void *    v [static]
 

Definition at line 295 of file rst7plugin.c.

References rstdata::file.

Referenced by VMDPLUGIN_init.

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

Definition at line 36 of file rst7plugin.c.

References rstdata::count, rstdata::file, rstdata::has_box, rstdata::has_vels, rstdata::numatoms, rstdata::rstfile, and VMDCON_INFO.

Referenced by VMDPLUGIN_init.

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

Definition at line 235 of file rst7plugin.c.

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

Referenced by VMDPLUGIN_init.

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

Definition at line 162 of file rst7plugin.c.

References molfile_timestep_t::A, molfile_timestep_t::alpha, molfile_timestep_t::B, molfile_timestep_t::beta, molfile_timestep_t::C, molfile_timestep_t::coords, rstdata::count, rstdata::file, molfile_timestep_t::gamma, rstdata::has_box, rstdata::has_vels, MOLFILE_ERROR, rstdata::numatoms, rstdata::rstfile, and molfile_timestep_t::velocities.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 332 of file rst7plugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 304 of file rst7plugin.c.

References molfile_plugin_t::close_file_read, molfile_plugin_t::close_file_write, close_rst_read, close_rst_write, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, molfile_plugin_t::open_file_write, open_rst_read, open_rst_write, molfile_plugin_t::read_next_timestep, read_rst_timestep, molfile_plugin_t::read_timestep_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, VMDPLUGIN_THREADUNSAFE, write_rst_timestep, and molfile_plugin_t::write_timestep.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 327 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 261 of file rst7plugin.c.

References molfile_timestep_t::A, molfile_timestep_t::alpha, molfile_timestep_t::B, molfile_timestep_t::beta, molfile_timestep_t::C, molfile_timestep_t::coords, rstdata::file, molfile_timestep_t::gamma, rstdata::numatoms, molfile_timestep_t::physical_time, and molfile_timestep_t::velocities.

Referenced by VMDPLUGIN_init.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 302 of file rst7plugin.c.


Generated on Thu Apr 25 03:07:53 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002