1 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 University of Illinois Open Source License
3 Copyright 2003 Theoretical and Computational Biophysics Group,
4 All rights reserved.
5 
6 Developed by:		Theoretical and Computational Biophysics Group
7 			University of Illinois at Urbana-Champaign
8 			http://www.ks.uiuc.edu/
9 
10 Permission is hereby granted, free of charge, to any person obtaining a copy of
11 this software and associated documentation files (the Software), to deal with
12 the Software without restriction, including without limitation the rights to
13 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 of the Software, and to permit persons to whom the Software is furnished to
15 do so, subject to the following conditions:
16 
17 Redistributions of source code must retain the above copyright notice,
18 this list of conditions and the following disclaimers.
19 
20 Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimers in the documentation
22 and/or other materials provided with the distribution.
23 
24 Neither the names of Theoretical and Computational Biophysics Group,
25 University of Illinois at Urbana-Champaign, nor the names of its contributors
26 may be used to endorse or promote products derived from this Software without
27 specific prior written permission.
28 
29 THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
32 THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 OTHER DEALINGS WITH THE SOFTWARE.
36 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
37 #ifndef __PLUMED_molfile_libmolfile_plugin_h
38 #define __PLUMED_molfile_libmolfile_plugin_h
39 #include "vmdplugin.h"
40 namespace PLMD{
41 namespace molfile{
42 
43 
44  int molfile_dcdplugin_init(void);
45  int molfile_dcdplugin_register(void *, vmdplugin_register_cb);
46  int molfile_dcdplugin_fini(void);
47  int molfile_crdplugin_init(void);
48  int molfile_crdplugin_register(void *, vmdplugin_register_cb);
49  int molfile_crdplugin_fini(void);
50  int molfile_gromacsplugin_init(void);
51  int molfile_gromacsplugin_register(void *, vmdplugin_register_cb);
52  int molfile_gromacsplugin_fini(void);
53  int molfile_pdbplugin_init(void);
54  int molfile_pdbplugin_register(void *, vmdplugin_register_cb);
55  int molfile_pdbplugin_fini(void);
56 
57 #define MOLFILE_INIT_ALL \
58     molfile_dcdplugin_init(); \
59     molfile_crdplugin_init(); \
60     molfile_gromacsplugin_init(); \
61     molfile_pdbplugin_init(); \
62 
63 #define MOLFILE_REGISTER_ALL(v, cb) \
64     molfile_dcdplugin_register(v, cb); \
65     molfile_crdplugin_register(v, cb); \
66     molfile_gromacsplugin_register(v, cb); \
67     molfile_pdbplugin_register(v, cb); \
68 
69 #define MOLFILE_FINI_ALL \
70     molfile_dcdplugin_fini(); \
71     molfile_crdplugin_fini(); \
72     molfile_gromacsplugin_fini(); \
73     molfile_pdbplugin_fini(); \
74 
75 }
76 }
77 #endif
78