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
00016 namespace shogun
00017 {
00031 void init_shogun(void (*print_message)(FILE* target, const char* str) = NULL,
00032 void (*print_warning)(FILE* target, const char* str) = NULL,
00033 void (*print_error)(FILE* target, const char* str) = NULL,
00034 void (*cancel_computations)(bool &delayed, bool &immediately)=NULL);
00035
00038 void exit_shogun();
00039
00041 extern void (*sg_print_message)(FILE* target, const char* str);
00042
00044 extern void (*sg_print_warning)(FILE* target, const char* str);
00045
00047 extern void (*sg_print_error)(FILE* target, const char* str);
00048
00050 extern void (*sg_cancel_computations)(bool &delayed, bool &immediately);
00051 }
00052 #endif //__SG_INIT__