99695da2741f9785540ba0facb84dee520cbfb24
[alexxy/gromacs.git] / include / types / filenm.h
1 /*
2  * $Id$
3  * 
4  *       This source code is part of
5  * 
6  *        G   R   O   M   A   C   S
7  * 
8  * GROningen MAchine for Chemical Simulations
9  * 
10  *               VERSION 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
17  * GROMACS: A message-passing parallel molecular dynamics implementation
18  * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19  * Comp. Phys. Comm. 91, 43-56 (1995)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Green Red Orange Magenta Azure Cyan Skyblue
28  */
29
30 #ifdef HAVE_CONFIG_H
31 #include <config.h>
32 #endif
33  
34 /* this enum should correspond to the array deffile in gmxlib/filenm.c */
35 enum {
36   efMDP, efGCT,
37   efTRX, efTRN, efTRR, efTRJ, efXTC, efG87, 
38   efENX, efEDR, efENE,
39   efSTX, efSTO, efGRO, efG96, efPDB, efBRK, efENT,
40   efLOG, efXVG, efOUT,
41   efNDX, 
42   efTOP, efITP,
43   efTPX, efTPS, efTPR, efTPA, efTPB,
44   efTEX, efRTP, efATP, efHDB,
45   efDAT, efDLG, 
46   efMAP, efEPS, efMAT, efM2P,
47   efMTX,
48   efEDI, efEDO, 
49   efPPA, efPDO,
50   efHAT,
51   efXPM,
52   efNR
53 };
54
55 typedef struct {
56   int  ftp;             /* File type (see enum above)           */
57   char *opt;            /* Command line option                  */
58   char *fn;             /* File name                            */
59   unsigned long flag;           /* Flag for all kinds of info (see defs)*/
60 } t_filenm;
61
62 #define ffSET    1<<0
63 #define ffREAD   1<<1
64 #define ffWRITE  1<<2
65 #define ffOPT    1<<3
66 #define ffLIB    1<<4
67 #define ffRW     (ffREAD  | ffWRITE)
68 #define ffOPTRD  (ffREAD  | ffOPT)
69 #define ffOPTWR  (ffWRITE | ffOPT)
70 #define ffOPTRW  (ffRW    | ffOPT)
71 #define ffLIBRD  (ffREAD  | ffLIB)
72 #define ffLIBOPTRD (ffOPTRD | ffLIB)