16394e4b5f5b497baef80ccf072c194a4b9852e0
[alexxy/gromacs.git] / include / txtdump.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 #ifndef _txtdump_h
31 #define _txtdump_h
32
33 static char *SRCID_txtdump_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #ifdef HAVE_IDENT
40 #ident  "@(#) txtdump.h 1.20 12/16/92"
41 #endif /* HAVE_IDENT */
42
43 #include <stdio.h>
44 #include "typedefs.h"
45 #include "tpxio.h"
46
47 #define LINE_WIDTH      80
48 #define RMARGIN         10
49 #define USE_WIDTH       ((LINE_WIDTH)-(RMARGIN))
50 #define INDENT          3
51
52 extern char *atomname(t_atoms *a,int i);
53 /* Return pointer to a buffer which holds the atomname in the
54  * form resname resnr atomname. Pointer can be freed afterwards.
55  */
56 extern void pr_shownumbers(bool bShow);
57 extern int available(FILE *fp,void *p,char *title);
58 extern int pr_indent(FILE *fp,int n);
59 extern int pr_title(FILE *fp,int indent,char *title);
60 extern int pr_title_n(FILE *fp,int indent,char *title,int n);
61 extern int pr_title_nxn(FILE *fp,int indent,char *title,int n1,int n2);
62 extern void pr_ivec(FILE *fp,int indent,char *title,int vec[],int n);
63 extern void pr_ivecs(FILE *fp,int indent,char *title,ivec vec[],int n);
64 extern void pr_rvec(FILE *fp,int indent,char *title,real vec[],int n);
65 extern void pr_rvecs(FILE *fp,int indent,char *title,rvec vec[],int n);
66 extern void pr_rvecs_len(FILE *fp,int indent,char *title,rvec vec[],int n);
67 extern void pr_block(FILE *fp,int indent,char *title,t_block *block);
68 extern void pr_iparams(FILE *fp,t_functype ftype,t_iparams *iparams);
69 extern void pr_idef(FILE *fp,int indent,char *title,t_idef *idef);
70 extern void pr_inputrec(FILE *fp,int indent,char *title,t_inputrec *ir);
71 extern void pr_top(FILE *fp,int indent,char *title,t_topology *top);
72 /*
73  * This routine prints out a (human) readable representation of 
74  * the topology to the file fp. Ident specifies the number of 
75  * spaces the text should be indented. Title is used to print a 
76  * header text.
77  */
78 extern void pr_header(FILE *fp,int indent,char *title,t_tpxheader *sh);
79      /*
80       * This routine prints out a (human) readable representation of
81       * a header to the file fp. Ident specifies the number of spaces
82       * the text should be indented. Title is used to print a header text.
83       */
84
85
86
87 #endif  /* _txtdump_h */