gpp4  1.3.1
ccp4_program.h
Go to the documentation of this file.
1 /*
2  ccp4_program.h: Headers to utilies to set and fetch program information.
3  Copyright (C) 2001 CCLRC, Peter Briggs
4  Copyright (C) 2007, 2010 Morten Kjeldgaard
5 
6  This library is free software: you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation, either
9  version 3 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with This library. If not, see
18  <http://www.gnu.org/licenses/>.
19 
20 */
21 
29 /* Macro definitions */
30 
31 #ifndef __CCP4Program__
32 #define __CCP4Program__
33 
34 
35 #ifdef __cplusplus
36 namespace CCP4 {
37 extern "C" {
38 #endif
39 
41 #define CCP4_VERSION_NO "6.1"
42 
43 #define CCP4_PATCH_LEVEL "6.1.24"
44 
46 #define GPP4_VERSION_NO "1.3.1"
47 
48 /* Maximum lengths of strings holding program names and versions */
49 #define MAXLEN_PROGNAME 80
50 #define MAXLEN_PROGVERSION 80
51 #define MAXLEN_RCSDATE 80
53 /*------------------------------------------------------------------*/
54 
55 /* Type Definitions */
56 
57 /*------------------------------------------------------------------*/
58 
61 typedef int (*CCP4INTFUNCPTR)(int, char *);
62 
63 /*------------------------------------------------------------------*/
64 
65 /* Function Prototypes */
66 
67 /*------------------------------------------------------------------*/
68 
73 char *ccp4_prog_vers(const char *progvers);
74 
79 char *ccp4ProgramName(const char *progname);
80 
85 char *ccp4RCSDate(const char *rcs_string);
86 
90 void ccp4ProgramTime(int init);
91 
99 int ccp4VerbosityLevel(int level);
100 
113 int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message);
114 
122 int ccp4SetCallback(CCP4INTFUNCPTR mycallback);
123 
131 int ccp4InvokeCallback(int ierr, char *message);
132 
139 int ccp4NullCallback(int level, char *message);
140 
145 int ccp4_licence_exists(const char *name);
146 
151 int html_log_output(int ihtml_in);
152 
157 int summary_output(int isumm_in);
158 
159 #ifdef __cplusplus
160 }
161 }
162 #endif
163 
164 #endif /* __CCP4Program__ */
165 
166 /*
167  Local variables:
168  mode: font-lock
169  End:
170 */