[325] | 1 | /* ************************************************************************** * |
---|
| 2 | * Interface auto generated - do not modify * |
---|
| 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include <boost/shared_ptr.hpp> |
---|
| 7 | #include "xmlioserver.hpp" |
---|
| 8 | #include "attribute_template_impl.hpp" |
---|
| 9 | #include "object_template_impl.hpp" |
---|
| 10 | #include "group_template_impl.hpp" |
---|
| 11 | #include "icutil.hpp" |
---|
| 12 | |
---|
| 13 | extern "C" |
---|
| 14 | { |
---|
[345] | 15 | typedef xios::CContext* context_Ptr; |
---|
[325] | 16 | |
---|
| 17 | void cxios_set_context_calendar_type(context_Ptr context_hdl, const char * calendar_type, int calendar_type_size) |
---|
| 18 | { |
---|
| 19 | std::string calendar_type_str; |
---|
| 20 | if(!cstr2string(calendar_type, calendar_type_size, calendar_type_str)) return; |
---|
| 21 | context_hdl->calendar_type.setValue(calendar_type_str); |
---|
| 22 | context_hdl->sendAttributToServer(context_hdl->calendar_type); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size) |
---|
| 26 | { |
---|
| 27 | if(!string_copy(context_hdl->calendar_type.getValue(),calendar_type , calendar_type_size)) |
---|
| 28 | ERROR("void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size)", <<"Input string is to short"); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | void cxios_set_context_output_dir(context_Ptr context_hdl, const char * output_dir, int output_dir_size) |
---|
| 33 | { |
---|
| 34 | std::string output_dir_str; |
---|
| 35 | if(!cstr2string(output_dir, output_dir_size, output_dir_str)) return; |
---|
| 36 | context_hdl->output_dir.setValue(output_dir_str); |
---|
| 37 | context_hdl->sendAttributToServer(context_hdl->output_dir); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size) |
---|
| 41 | { |
---|
| 42 | if(!string_copy(context_hdl->output_dir.getValue(),output_dir , output_dir_size)) |
---|
| 43 | ERROR("void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)", <<"Input string is to short"); |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | void cxios_set_context_start_date(context_Ptr context_hdl, const char * start_date, int start_date_size) |
---|
| 48 | { |
---|
| 49 | std::string start_date_str; |
---|
| 50 | if(!cstr2string(start_date, start_date_size, start_date_str)) return; |
---|
| 51 | context_hdl->start_date.setValue(start_date_str); |
---|
| 52 | context_hdl->sendAttributToServer(context_hdl->start_date); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size) |
---|
| 56 | { |
---|
| 57 | if(!string_copy(context_hdl->start_date.getValue(),start_date , start_date_size)) |
---|
| 58 | ERROR("void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size)", <<"Input string is to short"); |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | |
---|
[336] | 62 | void cxios_set_context_time_origin(context_Ptr context_hdl, const char * time_origin, int time_origin_size) |
---|
| 63 | { |
---|
| 64 | std::string time_origin_str; |
---|
| 65 | if(!cstr2string(time_origin, time_origin_size, time_origin_str)) return; |
---|
| 66 | context_hdl->time_origin.setValue(time_origin_str); |
---|
| 67 | context_hdl->sendAttributToServer(context_hdl->time_origin); |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | void cxios_get_context_time_origin(context_Ptr context_hdl, char * time_origin, int time_origin_size) |
---|
| 71 | { |
---|
| 72 | if(!string_copy(context_hdl->time_origin.getValue(),time_origin , time_origin_size)) |
---|
| 73 | ERROR("void cxios_get_context_time_origin(context_Ptr context_hdl, char * time_origin, int time_origin_size)", <<"Input string is to short"); |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | |
---|
[325] | 77 | void cxios_set_context_timestep(context_Ptr context_hdl, const char * timestep, int timestep_size) |
---|
| 78 | { |
---|
| 79 | std::string timestep_str; |
---|
| 80 | if(!cstr2string(timestep, timestep_size, timestep_str)) return; |
---|
| 81 | context_hdl->timestep.setValue(timestep_str); |
---|
| 82 | context_hdl->sendAttributToServer(context_hdl->timestep); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size) |
---|
| 86 | { |
---|
| 87 | if(!string_copy(context_hdl->timestep.getValue(),timestep , timestep_size)) |
---|
| 88 | ERROR("void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size)", <<"Input string is to short"); |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | } |
---|