Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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.

Referenced by VMDPLUGIN_init.

void close_file_write void *    v [static]
 

Definition at line 210 of file binposplugin.c.

References binposhandle::fd.

Referenced by VMDPLUGIN_init.

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.

Referenced by VMDPLUGIN_init.

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.

Referenced by VMDPLUGIN_init.

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, binposhandle::numatoms, binposhandle::wrongendian, and binposhandle::xyz.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 248 of file binposplugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 223 of file binposplugin.c.

References close_file_read, molfile_plugin_t::close_file_read, close_file_write, molfile_plugin_t::close_file_write, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_binpos_read, open_binpos_write, molfile_plugin_t::open_file_read, molfile_plugin_t::open_file_write, read_next_timestep, molfile_plugin_t::read_next_timestep, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, VMDPLUGIN_THREADSAFE, write_timestep, and molfile_plugin_t::write_timestep.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 243 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, and binposhandle::numatoms.

Referenced by VMDPLUGIN_init.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 221 of file binposplugin.c.


Generated on Tue Aug 11 03:06:45 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002