5 #include "xsi_shared_lib.h"
14 explicit LoaderException(
const std::string& msg) : _msg(
"ISim engine error: " + msg) { }
18 virtual const char* what()
const throw() {
return _msg.c_str(); }
25 Loader(
const std::string& dll_name,
const std::string& simkernel_libname);
31 void run(XSI_INT64 step);
33 int get_value(
int port_number,
void* value);
34 int get_port_number(
const char* port_name);
35 int get_port_number_or_exit(std::string name);
36 void put_value(
int port_number,
const void* value);
38 const char* get_error_info();
46 std::string _design_libname;
47 std::string _simkernel_libname;
49 xsiHandle _design_handle;
51 t_fp_xsi_open _xsi_open;
52 t_fp_xsi_close _xsi_close;
53 t_fp_xsi_run _xsi_run;
54 t_fp_xsi_get_value _xsi_get_value;
55 t_fp_xsi_put_value _xsi_put_value;
56 t_fp_xsi_get_status _xsi_get_status;
57 t_fp_xsi_get_error_info _xsi_get_error_info;
58 t_fp_xsi_restart _xsi_restart;
59 t_fp_xsi_get_port_number _xsi_get_port_number;
60 t_fp_xsi_trace_all _xsi_trace_all;
66 #endif // _XSI_LOADER_H_