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 */
ccp4_utils.h
Utility functions.
ccp4ProgramName
char * ccp4ProgramName(const char *progname)
Definition: ccp4_program.c:65
ccp4_general.h
Header file for CCP4 library clones.
ccp4ProgramName
char * ccp4ProgramName(const char *progname)
Definition: ccp4_program.c:65
html_log_output
int html_log_output(int ihtml_in)
Definition: ccp4_program.c:261
ccp4SetCallback
int ccp4SetCallback(CCP4INTFUNCPTR mycallback)
Definition: ccp4_program.c:214
summary_output
int summary_output(int isumm_in)
Definition: ccp4_program.c:275
ccp4_utils_etime
float ccp4_utils_etime(float tarray[2])
Definition: library_utils.c:643
summary_output
int summary_output(int isumm_in)
Definition: ccp4_program.c:275
ccp4ProgramTime
void ccp4ProgramTime(int init)
Definition: ccp4_program.c:149
ccp4_prog_vers
char * ccp4_prog_vers(const char *progvers)
Definition: ccp4_program.c:42
ccp4_program.h
Header file for utilies to set and fetch program information.
html_log_output
int html_log_output(int ihtml_in)
Definition: ccp4_program.c:261
ccp4RCSDate
char * ccp4RCSDate(const char *rcs_string)
Definition: ccp4_program.c:99
ccp4InvokeCallback
int ccp4InvokeCallback(int ierr, char *message)
Definition: ccp4_program.c:225
CCP4INTFUNCPTR
int(* CCP4INTFUNCPTR)(int, char *)
Definition: ccp4_program.h:61
ccp4VerbosityLevel
int ccp4VerbosityLevel(int level)
Definition: ccp4_program.c:176
ccp4InvokeCallback
int ccp4InvokeCallback(int ierr, char *message)
Definition: ccp4_program.c:225
MAXLEN_RCSDATE
#define MAXLEN_RCSDATE
Definition: ccp4_program.h:51
ccp4_parser.h
Functions to read in and "parse" CCP4-style keyworded input.
ccp4VerbosityLevel
int ccp4VerbosityLevel(int level)
Definition: ccp4_program.c:176
ccp4ProgramTime
void ccp4ProgramTime(int init)
Definition: ccp4_program.c:149
ccp4NullCallback
int ccp4NullCallback(int level, char *message)
Definition: ccp4_program.c:236
ccp4NullCallback
int ccp4NullCallback(int level, char *message)
Definition: ccp4_program.c:236
ccp4Callback
int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message)
Definition: ccp4_program.c:191
ccp4_licence_exists
int ccp4_licence_exists(const char *name)
Definition: ccp4_program.c:249
MAXLEN_PROGVERSION
#define MAXLEN_PROGVERSION
Definition: ccp4_program.h:50
ccp4Callback
int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message)
Definition: ccp4_program.c:191
ccp4_prog_vers
char * ccp4_prog_vers(const char *progvers)
Definition: ccp4_program.c:42
ccp4SetCallback
int ccp4SetCallback(CCP4INTFUNCPTR mycallback)
Definition: ccp4_program.c:214
ccp4_licence_exists
int ccp4_licence_exists(const char *name)
Definition: ccp4_program.c:249
ccp4RCSDate
char * ccp4RCSDate(const char *rcs_string)
Definition: ccp4_program.c:99
MAXLEN_PROGNAME
#define MAXLEN_PROGNAME
Definition: ccp4_program.h:49