gpp4
1.3.1
|
00001 /* 00002 ccp4_program.h: Headers to utilies to set and fetch program information. 00003 Copyright (C) 2001 CCLRC, Peter Briggs 00004 Copyright (C) 2007, 2010 Morten Kjeldgaard 00005 00006 This library is free software: you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation, either 00009 version 3 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with This library. If not, see 00018 <http://www.gnu.org/licenses/>. 00019 00020 */ 00021 00029 /* Macro definitions */ 00030 00031 #ifndef __CCP4Program__ 00032 #define __CCP4Program__ 00033 00034 00035 #ifdef __cplusplus 00036 namespace CCP4 { 00037 extern "C" { 00038 #endif 00039 00041 #define CCP4_VERSION_NO "6.1" 00042 00043 #define CCP4_PATCH_LEVEL "6.1.24" 00044 00046 #define GPP4_VERSION_NO "1.3.1" 00047 00048 /* Maximum lengths of strings holding program names and versions */ 00049 #define MAXLEN_PROGNAME 80 00050 #define MAXLEN_PROGVERSION 80 00051 #define MAXLEN_RCSDATE 80 00053 /*------------------------------------------------------------------*/ 00054 00055 /* Type Definitions */ 00056 00057 /*------------------------------------------------------------------*/ 00058 00061 typedef int (*CCP4INTFUNCPTR)(int, char *); 00062 00063 /*------------------------------------------------------------------*/ 00064 00065 /* Function Prototypes */ 00066 00067 /*------------------------------------------------------------------*/ 00068 00073 char *ccp4_prog_vers(const char *progvers); 00074 00079 char *ccp4ProgramName(const char *progname); 00080 00085 char *ccp4RCSDate(const char *rcs_string); 00086 00090 void ccp4ProgramTime(int init); 00091 00099 int ccp4VerbosityLevel(int level); 00100 00113 int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message); 00114 00122 int ccp4SetCallback(CCP4INTFUNCPTR mycallback); 00123 00131 int ccp4InvokeCallback(int ierr, char *message); 00132 00139 int ccp4NullCallback(int level, char *message); 00140 00145 int ccp4_licence_exists(const char *name); 00146 00151 int html_log_output(int ihtml_in); 00152 00157 int summary_output(int isumm_in); 00158 00159 #ifdef __cplusplus 00160 } 00161 } 00162 #endif 00163 00164 #endif /* __CCP4Program__ */ 00165 00166 /* 00167 Local variables: 00168 mode: font-lock 00169 End: 00170 */