itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
_sci_if.h
1 /*xxx
2 * \brief - second layer of sci interface
3 * Function headers use only C style - no c++, itpp
4 * \author maki
5 */
6 
7 // this is included both in *.c and *.cpp
8 // extern "C" is not understand by c-compiler
9 
10 // stack is a stack in scicoslab, scilab,... domain
11 
12 #include "_sci_if_var_struct.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #ifndef SCI_IF_CPP_H
19 #define SCI_IF_CPP_H
20 
21 #define SCI_ERR_MSG_LEN 1024
22 
23 // error setting function
24  void sci_if_err_set(int e);
25 // error message setting function
26  void sci_if_err_msg_set(const char *p_msg);
27 // info setting function
28  void sci_if_info_set(int i);
29 
31  void sci_if_copy_var(struct var_struct *p_s_v);
33  void sci_if_delete_var(struct var_struct *p_s_v);
34 
36  void * sci_if_create(int mod);
38  void sci_if_set(void *p_sci, int param, struct var_struct *p_s_v);
40  struct var_struct sci_if_get(void *p_sci, int param);
42  void sci_if_exec(void *p_sci, int command);
44  struct var_struct sci_if_gen(void *p_sci, struct var_struct* p_s_ce);
46  struct var_struct sci_if_proc(void *p_sci, struct var_struct* p_s_ce, struct var_struct* p_s_x);
48  void sci_if_destroy(void *p_sci);
49 
50 
51 #endif // #ifndef SCI_IFCPP_H
52 
53 #ifdef __cplusplus
54 }
55 #endif