2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
5 * Copyright (c) 2001-2004, The GROMACS development team.
6 * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
7 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
8 * and including many others, as listed in the AUTHORS file in the
9 * top-level source directory and at http://www.gromacs.org.
11 * GROMACS is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public License
13 * as published by the Free Software Foundation; either version 2.1
14 * of the License, or (at your option) any later version.
16 * GROMACS is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with GROMACS; if not, see
23 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
24 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 * If you want to redistribute modifications to GROMACS, please
27 * consider that scientific software is very special. Version
28 * control is crucial - bugs must be traceable. We will be happy to
29 * consider code for inclusion in the official distribution, but
30 * derived work must not be called official GROMACS. Details are found
31 * in the README & COPYING files - if they are missing, get the
32 * official version at http://www.gromacs.org.
34 * To help us fund GROMACS development, we humbly ask that you cite
35 * the research papers on the package. Check out http://www.gromacs.org.
42 /* For both bromacs() and cool_quote() you have to provide a pointer to
43 * a string of reasonable length (say 256) and the string length. This
44 * is necessary to make the routines threadsafe and avoid allocating
45 * a new string each time. The retstring pointer will be the return value.
48 bromacs(char *retstring
, int retsize
);
50 /* For cool_quote, the number of the quote used will be returned in cqnum
54 cool_quote(char *retstring
, int retsize
, int *cqnum
);
57 please_cite(FILE *fp
, const char *key
);
58 /* Print a message asking to cite something... */
63 class IProgramContext
;
66 * Settings for printBinaryInformation().
68 * This class is used to specify what printBinaryInformation() prints.
70 class BinaryInformationSettings
73 BinaryInformationSettings();
75 //! Print information about build settings.
76 BinaryInformationSettings
&extendedInfo(bool bEnabled
)
78 bExtendedInfo_
= bEnabled
;
81 //! Print copyright and license information.
82 BinaryInformationSettings
©right(bool bEnabled
)
84 bCopyright_
= bEnabled
;
87 //! Print a header line with "Generated by" text (for output files).
88 BinaryInformationSettings
&generatedByHeader(bool bEnabled
)
90 bGeneratedByHeader_
= bEnabled
;
93 //! Prefix each line with this string.
94 BinaryInformationSettings
&linePrefix(const char *prefix
)
99 //! Suffix each line with this string.
100 BinaryInformationSettings
&lineSuffix(const char *suffix
)
109 bool bGeneratedByHeader_
;
113 //! Needed to read the members without otherwise unnecessary accessors.
114 friend void printBinaryInformation(
115 FILE *fp
, const IProgramContext
&programContext
,
116 const BinaryInformationSettings
&settings
);
120 * Print basic information about the executable.
122 * \param fp Where to print the information to.
123 * \param[in] programContext Program information object to use.
125 void printBinaryInformation(FILE *fp
,
126 const IProgramContext
&programContext
);
128 * Print basic information about the executable with custom settings.
130 * \param fp Where to print the information to.
131 * \param[in] programContext Program information object to use.
132 * \param[in] settings Specifies what to print.
134 * \see BinaryInformationSettings
136 void printBinaryInformation(FILE *fp
,
137 const IProgramContext
&programContext
,
138 const BinaryInformationSettings
&settings
);