[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" |
---|
[352] | 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
[325] | 11 | #include "icutil.hpp" |
---|
[347] | 12 | #include "timer.hpp" |
---|
[369] | 13 | #include "node_type.hpp" |
---|
[325] | 14 | |
---|
| 15 | extern "C" |
---|
| 16 | { |
---|
[345] | 17 | typedef xios::CGridGroup* gridgroup_Ptr; |
---|
[325] | 18 | |
---|
| 19 | void cxios_set_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 20 | { |
---|
| 21 | std::string axis_ref_str; |
---|
| 22 | if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
[347] | 23 | CTimer::get("XIOS").resume(); |
---|
[325] | 24 | gridgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
| 25 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[325] | 32 | if(!string_copy(gridgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) |
---|
| 33 | ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | void cxios_set_gridgroup_description(gridgroup_Ptr gridgroup_hdl, const char * description, int description_size) |
---|
| 39 | { |
---|
| 40 | std::string description_str; |
---|
| 41 | if(!cstr2string(description, description_size, description_str)) return; |
---|
[347] | 42 | CTimer::get("XIOS").resume(); |
---|
[325] | 43 | gridgroup_hdl->description.setValue(description_str); |
---|
| 44 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); |
---|
[347] | 45 | CTimer::get("XIOS").suspend(); |
---|
[325] | 46 | } |
---|
| 47 | |
---|
| 48 | void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) |
---|
| 49 | { |
---|
[347] | 50 | CTimer::get("XIOS").resume(); |
---|
[325] | 51 | if(!string_copy(gridgroup_hdl->description.getValue(),description , description_size)) |
---|
| 52 | ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
[347] | 53 | CTimer::get("XIOS").suspend(); |
---|
[325] | 54 | } |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | void cxios_set_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 58 | { |
---|
| 59 | std::string domain_ref_str; |
---|
| 60 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
[347] | 61 | CTimer::get("XIOS").resume(); |
---|
[325] | 62 | gridgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
| 63 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); |
---|
[347] | 64 | CTimer::get("XIOS").suspend(); |
---|
[325] | 65 | } |
---|
| 66 | |
---|
| 67 | void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
| 68 | { |
---|
[347] | 69 | CTimer::get("XIOS").resume(); |
---|
[325] | 70 | if(!string_copy(gridgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) |
---|
| 71 | ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
[347] | 72 | CTimer::get("XIOS").suspend(); |
---|
[325] | 73 | } |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | void cxios_set_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 77 | { |
---|
| 78 | std::string group_ref_str; |
---|
| 79 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
[347] | 80 | CTimer::get("XIOS").resume(); |
---|
[325] | 81 | gridgroup_hdl->group_ref.setValue(group_ref_str); |
---|
| 82 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); |
---|
[347] | 83 | CTimer::get("XIOS").suspend(); |
---|
[325] | 84 | } |
---|
| 85 | |
---|
| 86 | void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 87 | { |
---|
[347] | 88 | CTimer::get("XIOS").resume(); |
---|
[325] | 89 | if(!string_copy(gridgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
| 90 | ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
[347] | 91 | CTimer::get("XIOS").suspend(); |
---|
[325] | 92 | } |
---|
| 93 | |
---|
| 94 | |
---|
[415] | 95 | void cxios_set_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) |
---|
| 96 | { |
---|
| 97 | CTimer::get("XIOS").resume(); |
---|
| 98 | CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; |
---|
| 99 | gridgroup_hdl->mask.reference(tmp.copy()); |
---|
| 100 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->mask); |
---|
[416] | 101 | CTimer::get("XIOS").suspend(); |
---|
[415] | 102 | } |
---|
| 103 | |
---|
| 104 | void cxios_get_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) |
---|
| 105 | { |
---|
[416] | 106 | CTimer::get("XIOS").resume(); |
---|
[415] | 107 | CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; |
---|
| 108 | tmp=gridgroup_hdl->mask ; |
---|
| 109 | CTimer::get("XIOS").suspend(); |
---|
| 110 | } |
---|
| 111 | |
---|
| 112 | |
---|
[325] | 113 | void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) |
---|
| 114 | { |
---|
| 115 | std::string name_str; |
---|
| 116 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 117 | CTimer::get("XIOS").resume(); |
---|
[325] | 118 | gridgroup_hdl->name.setValue(name_str); |
---|
| 119 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); |
---|
[347] | 120 | CTimer::get("XIOS").suspend(); |
---|
[325] | 121 | } |
---|
| 122 | |
---|
| 123 | void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) |
---|
| 124 | { |
---|
[347] | 125 | CTimer::get("XIOS").resume(); |
---|
[325] | 126 | if(!string_copy(gridgroup_hdl->name.getValue(),name , name_size)) |
---|
| 127 | ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 128 | CTimer::get("XIOS").suspend(); |
---|
[325] | 129 | } |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | |
---|
| 133 | } |
---|