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

namdbinplugin.c File Reference

#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  namdbinhandle

Defines

#define BLOCK   500

Functions

void * open_namdbin_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_namdbin_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


Define Documentation

#define BLOCK   500
 

Definition at line 33 of file namdbinplugin.c.

Referenced by read_next_timestep, and write_timestep.


Function Documentation

void close_file_read void *    v [static]
 

Definition at line 149 of file namdbinplugin.c.

References namdbinhandle::fd.

Referenced by VMDPLUGIN_init.

void close_file_write void *    v [static]
 

Definition at line 216 of file namdbinplugin.c.

References namdbinhandle::fd.

Referenced by VMDPLUGIN_init.

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

Definition at line 42 of file namdbinplugin.c.

References namdbinhandle::fd, namdbinhandle::numatoms, and namdbinhandle::wrongendian.

Referenced by VMDPLUGIN_init.

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

Definition at line 156 of file namdbinplugin.c.

References namdbinhandle::fd, and namdbinhandle::numatoms.

Referenced by VMDPLUGIN_init.

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

Definition at line 96 of file namdbinplugin.c.

References BLOCK, molfile_timestep_t::coords, namdbinhandle::fd, MOLFILE_ERROR, namdbinhandle::numatoms, namdbinhandle::wrongendian, and namdbinhandle::xyz.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 254 of file namdbinplugin.c.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 229 of file namdbinplugin.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, molfile_plugin_t::open_file_read, molfile_plugin_t::open_file_write, open_namdbin_read, open_namdbin_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 249 of file namdbinplugin.c.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.

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

Definition at line 179 of file namdbinplugin.c.

References BLOCK, molfile_timestep_t::coords, namdbinhandle::fd, MOLFILE_ERROR, namdbinhandle::numatoms, and namdbinhandle::xyz.

Referenced by VMDPLUGIN_init.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 227 of file namdbinplugin.c.


Generated on Sun Oct 6 03:07:27 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002