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

binposplugin.c File Reference

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

Go to the source code of this file.

Compounds

struct  binposhandle

Functions

void * open_binpos_read (const char *path, const char *filetype, int *natoms)
int read_next_timestep (void *v, int natoms, molfile_timestep_t *ts)
void close_file_read (void *v)
void * open_binpos_write (const char *path, const char *filetype, int natoms)
int write_timestep (void *v, const molfile_timestep_t *ts)
void close_file_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_file_read void *    v [static]
 

Definition at line 151 of file binposplugin.c.

References binposhandle::fd, and binposhandle::xyz.

void close_file_write void *    v [static]
 

Definition at line 210 of file binposplugin.c.

References binposhandle::fd.

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

Definition at line 42 of file binposplugin.c.

References binposhandle::fd, binposhandle::numatoms, binposhandle::wrongendian, and binposhandle::xyz.

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

Definition at line 159 of file binposplugin.c.

References binposhandle::fd, and binposhandle::numatoms.

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

Definition at line 101 of file binposplugin.c.

References molfile_timestep_t::coords, binposhandle::fd, MOLFILE_ERROR, MOLFILE_SUCCESS, binposhandle::numatoms, binposhandle::wrongendian, and binposhandle::xyz.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 251 of file binposplugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 242 of file binposplugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 246 of file binposplugin.c.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.

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

Definition at line 177 of file binposplugin.c.

References molfile_timestep_t::coords, binposhandle::fd, MOLFILE_ERROR, MOLFILE_SUCCESS, and binposhandle::numatoms.


Variable Documentation

molfile_plugin_t plugin [static]
 

Initial value:

 {
  vmdplugin_ABIVERSION,         
  MOLFILE_PLUGIN_TYPE,          
  "binpos",                     
  "Scripps Binpos",             
  "Brian Bennion",              
  0,                            
  3,                            
  VMDPLUGIN_THREADSAFE,         
  "binpos",                     
  open_binpos_read,
  0,
  0,
  read_next_timestep,
  close_file_read,
  open_binpos_write,
  0,
  write_timestep,
  close_file_write
}

Definition at line 221 of file binposplugin.c.


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