init.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2009 Soeren Sonnenburg
00008  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
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__

SHOGUN Machine Learning Toolbox - Documentation