SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
init.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2009 Soeren Sonnenburg
8  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef __SG_INIT_H__
12 #define __SG_INIT_H__
13 
14 #include <stdio.h>
15 
16 namespace shogun
17 {
18  class SGIO;
19  class CMath;
20  class Version;
21  class Parallel;
22 
36 void init_shogun(void (*print_message)(FILE* target, const char* str) = NULL,
37  void (*print_warning)(FILE* target, const char* str) = NULL,
38  void (*print_error)(FILE* target, const char* str) = NULL,
39  void (*cancel_computations)(bool &delayed, bool &immediately)=NULL);
40 
43 
46 void exit_shogun();
47 
52 void set_global_io(SGIO* io);
53 
58 SGIO* get_global_io();
59 
64 void set_global_parallel(Parallel* parallel);
65 
70 Parallel* get_global_parallel();
71 
76 void set_global_version(Version* version);
77 
82 Version* get_global_version();
83 
88 void set_global_math(CMath* math);
89 
94 CMath* get_global_math();
95 
97 extern void (*sg_print_message)(FILE* target, const char* str);
98 
100 extern void (*sg_print_warning)(FILE* target, const char* str);
101 
103 extern void (*sg_print_error)(FILE* target, const char* str);
104 
106 extern void (*sg_cancel_computations)(bool &delayed, bool &immediately);
107 }
108 #endif //__SG_INIT__

SHOGUN Machine Learning Toolbox - Documentation