#include <molfile_plugin.h>#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <ctype.h>#include <string.h>Go to the source code of this file.
Compounds | |
| struct | vtf_data |
Defines | |
| #define | VTFFILE FILE* |
| #define | VERSION_MAJOR 2 |
| #define | VERSION_MINOR 4 |
| #define | VTF_MOLFILE 0 |
| #define | VTF_USERDATA 1 |
| #define | TIMESTEP_INDEXED 0 |
| #define | TIMESTEP_ORDERED 1 |
| #define | TIMESTEP_VCFSTART 2 |
| #define | AIDLOOP(assignment) |
Functions | |
| void | vtf_error (const char *msg, const char *line) |
| void | sfree (void *ptr) |
| char * | vtf_getline (VTFFILE file) |
| void | vtf_create_atoms_as_needed (int max_aid, vtf_data *d) |
| int * | vtf_parse_aid_specifier (char *s, vtf_data *d) |
| int | vtf_parse_atom (char *line, vtf_data *d) |
| int | vtf_parse_bond (char *line, vtf_data *d) |
| int | vtf_parse_pbc (char *line, vtf_data *d) |
| int | vtf_parse_timestep (char *line, vtf_data *d) |
| void | vtf_parse_structure (vtf_data *d) |
| vtf_data * | _vtf_open_file_read (const char *filepath, const char *filetype, int *natoms, int read_mode) |
| void * | vtf_open_file_read (const char *filepath, const char *filetype, int *natoms) |
| void | vtf_close_file_read (void *data) |
| int | vtf_read_next_timestep (void *data, int natoms, molfile_timestep_t *ts) |
| int | vtf_read_structure (void *data, int *optflags, molfile_atom_t *atoms) |
| int | vtf_read_bonds (void *data, int *nbonds, int **from, int **to, float **bondorder, int **bondtype, int *nbondtypes, char ***bondtypename) |
| VMDPLUGIN_API int | VMDPLUGIN_init () |
| VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
| VMDPLUGIN_API int | VMDPLUGIN_fini () |
Variables | |
| molfile_atom_t | default_atom |
| char * | default_userdata |
| const char * | molid |
| const char * | userdata_varname |
| int | vtf_lineno = 0 |
| molfile_plugin_t | vsfplugin |
| molfile_plugin_t | vtfplugin |
| molfile_plugin_t | vcfplugin |
|
|
Value: { \
int *aid_ptr; \
for (aid_ptr = aid_list; *aid_ptr != -1; aid_ptr++) { \
int aid = *aid_ptr; \
molfile_atom_t *cur_atom = &d->atoms[aid]; \
assignment; \
} \
} |
|
|
Definition at line 101 of file vtfplugin.c. Referenced by vtf_parse_timestep, and vtf_read_next_timestep. |
|
|
Definition at line 102 of file vtfplugin.c. Referenced by _vtf_open_file_read, vtf_parse_timestep, and vtf_read_next_timestep. |
|
|
Definition at line 103 of file vtfplugin.c. Referenced by _vtf_open_file_read, and vtf_read_next_timestep. |
|
|
Definition at line 47 of file vtfplugin.c. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 48 of file vtfplugin.c. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 68 of file vtfplugin.c. Referenced by vtf_create_atoms_as_needed, vtf_open_file_read, vtf_parse_atom, and vtf_parse_structure. |
|
|
Definition at line 69 of file vtfplugin.c. Referenced by vtf_read_next_timestep. |
|
|
Definition at line 40 of file vtfplugin.c. Referenced by vtf_getline. |
|
||||||||||||||||||||
|
Definition at line 886 of file vtfplugin.c. References vtf_data::A, vtf_data::alpha, vtf_data::atoms, vtf_data::B, vtf_data::beta, vtf_data::C, vtf_data::coords, vtf_data::file, vtf_data::from, vtf_data::gamma, MOLFILE_NOOPTIONS, MOLFILE_NOSTRUCTUREDATA, MOLFILE_NUMATOMS_UNKNOWN, vtf_data::natoms, vtf_data::nbonds, vtf_data::optflags, vtf_data::read_mode, vtf_data::return_code, sfree, vtf_data::timestep, vtf_data::timestep_mode, TIMESTEP_ORDERED, TIMESTEP_VCFSTART, vtf_data::to, and vtf_parse_structure. Referenced by vtf_open_file_read. |
|
|
Definition at line 157 of file vtfplugin.c. Referenced by _vtf_open_file_read, vtf_close_file_read, vtf_getline, vtf_parse_aid_specifier, vtf_parse_atom, vtf_parse_structure, and vtf_read_structure. |
|
|
Definition at line 1287 of file vtfplugin.c. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
||||||||||||
|
Definition at line 1280 of file vtfplugin.c. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 969 of file vtfplugin.c. References vtf_data::coords, vtf_data::file, vtf_data::from, sfree, and vtf_data::to. Referenced by VMDPLUGIN_init. |
|
||||||||||||
|
Definition at line 266 of file vtfplugin.c. References vtf_data::atoms, default_userdata, vtf_data::natoms, vtf_data::read_mode, and VTF_MOLFILE. Referenced by vtf_parse_aid_specifier. |
|
||||||||||||
|
Definition at line 140 of file vtfplugin.c. References vtf_lineno. Referenced by vtf_parse_aid_specifier, vtf_parse_atom, vtf_parse_bond, vtf_parse_pbc, vtf_parse_structure, vtf_parse_timestep, vtf_read_bonds, and vtf_read_next_timestep. |
|
|
Definition at line 172 of file vtfplugin.c. References sfree, vtf_lineno, and VTFFILE. Referenced by vtf_parse_structure, and vtf_read_next_timestep. |
|
||||||||||||||||
|
Definition at line 962 of file vtfplugin.c. References _vtf_open_file_read, and VTF_MOLFILE. Referenced by VMDPLUGIN_init. |
|
||||||||||||
|
Definition at line 291 of file vtfplugin.c. References vtf_data::natoms, sfree, vtf_create_atoms_as_needed, and vtf_error. Referenced by vtf_parse_atom. |
|
||||||||||||
|
||||||||||||
|
Definition at line 657 of file vtfplugin.c. References vtf_data::from, MOLFILE_ERROR, vtf_data::nbonds, vtf_data::to, and vtf_error. Referenced by vtf_parse_structure. |
|
||||||||||||
|
Definition at line 719 of file vtfplugin.c. References vtf_data::A, vtf_data::alpha, vtf_data::B, vtf_data::beta, vtf_data::C, vtf_data::gamma, MOLFILE_ERROR, and vtf_error. Referenced by vtf_parse_structure, and vtf_read_next_timestep. |
|
|
||||||||||||
|
Definition at line 741 of file vtfplugin.c. References MOLFILE_ERROR, TIMESTEP_INDEXED, vtf_data::timestep_mode, TIMESTEP_ORDERED, and vtf_error. Referenced by vtf_parse_structure, and vtf_read_next_timestep. |
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 1188 of file vtfplugin.c. References vtf_data::from, MOLFILE_ERROR, vtf_data::nbonds, vtf_data::to, and vtf_error. Referenced by VMDPLUGIN_init. |
|
||||||||||||||||
|
||||||||||||||||
|
Definition at line 1166 of file vtfplugin.c. References vtf_data::atoms, vtf_data::natoms, vtf_data::optflags, vtf_data::return_code, and sfree. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 60 of file vtfplugin.c. |
|
|
Definition at line 61 of file vtfplugin.c. Referenced by vtf_create_atoms_as_needed, vtf_parse_atom, and vtf_parse_structure. |
|
|
Definition at line 62 of file vtfplugin.c. |
|
|
Definition at line 63 of file vtfplugin.c. |
|
|
Definition at line 1220 of file vtfplugin.c. |
|
|
Definition at line 1218 of file vtfplugin.c. |
|
|
Definition at line 106 of file vtfplugin.c. Referenced by vtf_error, vtf_getline, and vtf_parse_structure. |
|
|
Definition at line 1219 of file vtfplugin.c. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002