init.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __SG_INIT_H__
00012 #define __SG_INIT_H__
00013
00014 #include <stdio.h>
00015
00029 void init_shogun(void (*print_message)(FILE* target, const char* str) = NULL,
00030 void (*print_warning)(FILE* target, const char* str) = NULL,
00031 void (*print_error)(FILE* target, const char* str) = NULL,
00032 void (*cancel_computations)(bool &delayed, bool &immediately)=NULL);
00033
00036 void exit_shogun();
00037
00038
00040 extern void (*sg_print_message)(FILE* target, const char* str);
00041
00043 extern void (*sg_print_warning)(FILE* target, const char* str);
00044
00046 extern void (*sg_print_error)(FILE* target, const char* str);
00047
00049 extern void (*sg_cancel_computations)(bool &delayed, bool &immediately);
00050
00051 #endif //__SG_INIT__