• Main Page
  • Related Pages
  • Classes
  • Files
  • File List
  • File Members

src/ccp4_program.h

Go to the documentation of this file.
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 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 2.1 of the License, or (at your option) any later
00010      version.
00011 
00012      This library is distributed in the hope that it will be useful,
00013      but WITHOUT ANY WARRANTY; without even the implied warranty of
00014      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015      Lesser General Public License for more details.
00016 
00017      You should have received a copy of the GNU Lesser General Public
00018      License along with this library; if not, write to the Free
00019      Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020      Boston, MA 02110-1301 USA
00021 
00022 */
00023 
00031 /* Macro definitions */
00032 
00033 #ifndef __CCP4Program__
00034 #define __CCP4Program__
00035 
00036 
00037 #ifdef  __cplusplus
00038 namespace CCP4 {
00039 extern "C" {
00040 #endif
00041 
00043 #define CCP4_VERSION_NO "6.1"
00044 
00045 #define CCP4_PATCH_LEVEL "6.1.3"
00046 
00048 #define GPP4_VERSION_NO VERSION   
00049 
00050 /* Maximum lengths of strings holding program names and versions */
00051 #define MAXLEN_PROGNAME    80  
00052 #define MAXLEN_PROGVERSION 80  
00053 #define MAXLEN_RCSDATE     80  
00055 /*------------------------------------------------------------------*/
00056 
00057 /* Type Definitions */
00058 
00059 /*------------------------------------------------------------------*/
00060 
00063 typedef int (*CCP4INTFUNCPTR)(int, char *);
00064 
00065 /*------------------------------------------------------------------*/
00066 
00067 /* Function Prototypes */
00068 
00069 /*------------------------------------------------------------------*/
00070 
00075 char *ccp4_prog_vers(const char *progvers);
00076 
00081 char *ccp4ProgramName(const char *progname);
00082 
00087 char *ccp4RCSDate(const char *rcs_string);
00088 
00092 void ccp4ProgramTime(int init);
00093 
00101 int ccp4VerbosityLevel(int level);
00102 
00115 int ccp4Callback(CCP4INTFUNCPTR mycallback, char *mode, int ierr, char *message);
00116 
00124 int ccp4SetCallback(CCP4INTFUNCPTR mycallback);
00125 
00133 int ccp4InvokeCallback(int ierr, char *message);
00134 
00141 int ccp4NullCallback(int level, char *message);
00142 
00147 int ccp4_licence_exists(const char *name);
00148 
00153 int html_log_output(int ihtml_in);
00154 
00159 int summary_output(int isumm_in);
00160 
00161 #ifdef __cplusplus
00162 } 
00163 } 
00164 #endif
00165 
00166 #endif   /* __CCP4Program__ */
00167 
00168 /*
00169   Local variables:
00170   mode: font-lock
00171   End:
00172 */

Generated on Mon Aug 22 2011 for gpp4 by  doxygen 1.7.1