SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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__
void init_shogun(void(*print_message)(FILE *target, const char *str), void(*print_warning)(FILE *target, const char *str), void(*print_error)(FILE *target, const char *str), void(*cancel_computations)(bool &delayed, bool &immediately))
Definition: init.cpp:42
void set_global_version(Version *version)
Definition: init.cpp:129
void set_global_math(CMath *math)
Definition: init.cpp:142
void(* sg_print_warning)(FILE *target, const char *str)
function called to print warning messages
Definition: init.cpp:33
void exit_shogun()
Definition: init.cpp:83
void init_shogun_with_defaults()
Definition: init.cpp:77
CMath * get_global_math()
Definition: init.cpp:149
void(* sg_print_error)(FILE *target, const char *str)
function called to print error messages
Definition: init.cpp:36
Parallel * get_global_parallel()
Definition: init.cpp:123
SGIO * get_global_io()
Definition: init.cpp:110
void(* sg_cancel_computations)(bool &delayed, bool &immediately)
function called to cancel things
Definition: init.cpp:39
void set_global_parallel(Parallel *parallel)
Definition: init.cpp:116
void(* sg_print_message)(FILE *target, const char *str)
function called to print normal messages
Definition: init.cpp:30
Version * get_global_version()
Definition: init.cpp:136
void set_global_io(SGIO *io)
Definition: init.cpp:103

SHOGUN Machine Learning Toolbox - Documentation