[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::CAxisGroup* axisgroup_Ptr; |
---|
[325] | 18 | |
---|
| 19 | void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 20 | { |
---|
| 21 | std::string group_ref_str; |
---|
| 22 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
[347] | 23 | CTimer::get("XIOS").resume(); |
---|
[325] | 24 | axisgroup_hdl->group_ref.setValue(group_ref_str); |
---|
| 25 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->group_ref); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[325] | 32 | if(!string_copy(axisgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
| 33 | ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) |
---|
| 39 | { |
---|
| 40 | std::string long_name_str; |
---|
| 41 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
[347] | 42 | CTimer::get("XIOS").resume(); |
---|
[325] | 43 | axisgroup_hdl->long_name.setValue(long_name_str); |
---|
| 44 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->long_name); |
---|
[347] | 45 | CTimer::get("XIOS").suspend(); |
---|
[325] | 46 | } |
---|
| 47 | |
---|
| 48 | void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size) |
---|
| 49 | { |
---|
[347] | 50 | CTimer::get("XIOS").resume(); |
---|
[325] | 51 | if(!string_copy(axisgroup_hdl->long_name.getValue(),long_name , long_name_size)) |
---|
| 52 | ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
[347] | 53 | CTimer::get("XIOS").suspend(); |
---|
[325] | 54 | } |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size) |
---|
| 58 | { |
---|
| 59 | std::string name_str; |
---|
| 60 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 61 | CTimer::get("XIOS").resume(); |
---|
[325] | 62 | axisgroup_hdl->name.setValue(name_str); |
---|
| 63 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->name); |
---|
[347] | 64 | CTimer::get("XIOS").suspend(); |
---|
[325] | 65 | } |
---|
| 66 | |
---|
| 67 | void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size) |
---|
| 68 | { |
---|
[347] | 69 | CTimer::get("XIOS").resume(); |
---|
[325] | 70 | if(!string_copy(axisgroup_hdl->name.getValue(),name , name_size)) |
---|
| 71 | ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 72 | CTimer::get("XIOS").suspend(); |
---|
[325] | 73 | } |
---|
| 74 | |
---|
| 75 | |
---|
[415] | 76 | void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) |
---|
| 77 | { |
---|
| 78 | std::string positive_str; |
---|
| 79 | if(!cstr2string(positive, positive_size, positive_str)) return; |
---|
| 80 | CTimer::get("XIOS").resume(); |
---|
| 81 | axisgroup_hdl->positive.fromString(positive_str); |
---|
| 82 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->positive); |
---|
| 83 | CTimer::get("XIOS").suspend(); |
---|
| 84 | } |
---|
| 85 | |
---|
| 86 | void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size) |
---|
| 87 | { |
---|
| 88 | CTimer::get("XIOS").resume(); |
---|
| 89 | if(!string_copy(axisgroup_hdl->positive.getStringValue(),positive , positive_size)) |
---|
| 90 | ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", <<"Input string is to short"); |
---|
| 91 | CTimer::get("XIOS").suspend(); |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | |
---|
[325] | 95 | void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size) |
---|
| 96 | { |
---|
[347] | 97 | CTimer::get("XIOS").resume(); |
---|
[325] | 98 | axisgroup_hdl->size.setValue(size); |
---|
| 99 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->size); |
---|
[347] | 100 | CTimer::get("XIOS").suspend(); |
---|
[325] | 101 | } |
---|
| 102 | |
---|
| 103 | void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size) |
---|
| 104 | { |
---|
| 105 | *size = axisgroup_hdl->size.getValue(); |
---|
| 106 | } |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size) |
---|
| 110 | { |
---|
| 111 | std::string standard_name_str; |
---|
| 112 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
[347] | 113 | CTimer::get("XIOS").resume(); |
---|
[325] | 114 | axisgroup_hdl->standard_name.setValue(standard_name_str); |
---|
| 115 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->standard_name); |
---|
[347] | 116 | CTimer::get("XIOS").suspend(); |
---|
[325] | 117 | } |
---|
| 118 | |
---|
| 119 | void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size) |
---|
| 120 | { |
---|
[347] | 121 | CTimer::get("XIOS").resume(); |
---|
[325] | 122 | if(!string_copy(axisgroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) |
---|
| 123 | ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
[347] | 124 | CTimer::get("XIOS").suspend(); |
---|
[325] | 125 | } |
---|
| 126 | |
---|
| 127 | |
---|
| 128 | void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size) |
---|
| 129 | { |
---|
| 130 | std::string unit_str; |
---|
| 131 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
[347] | 132 | CTimer::get("XIOS").resume(); |
---|
[325] | 133 | axisgroup_hdl->unit.setValue(unit_str); |
---|
| 134 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->unit); |
---|
[347] | 135 | CTimer::get("XIOS").suspend(); |
---|
[325] | 136 | } |
---|
| 137 | |
---|
| 138 | void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size) |
---|
| 139 | { |
---|
[347] | 140 | CTimer::get("XIOS").resume(); |
---|
[325] | 141 | if(!string_copy(axisgroup_hdl->unit.getValue(),unit , unit_size)) |
---|
| 142 | ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
[347] | 143 | CTimer::get("XIOS").suspend(); |
---|
[325] | 144 | } |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1) |
---|
| 148 | { |
---|
[369] | 149 | CTimer::get("XIOS").resume(); |
---|
| 150 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
| 151 | axisgroup_hdl->value.reference(tmp.copy()); |
---|
[325] | 152 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->value); |
---|
[416] | 153 | CTimer::get("XIOS").suspend(); |
---|
[325] | 154 | } |
---|
| 155 | |
---|
| 156 | void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1) |
---|
| 157 | { |
---|
[416] | 158 | CTimer::get("XIOS").resume(); |
---|
[369] | 159 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
| 160 | tmp=axisgroup_hdl->value ; |
---|
[347] | 161 | CTimer::get("XIOS").suspend(); |
---|
[325] | 162 | } |
---|
| 163 | |
---|
| 164 | |
---|
[369] | 165 | void cxios_set_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int zoom_begin) |
---|
| 166 | { |
---|
| 167 | CTimer::get("XIOS").resume(); |
---|
| 168 | axisgroup_hdl->zoom_begin.setValue(zoom_begin); |
---|
| 169 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_begin); |
---|
| 170 | CTimer::get("XIOS").suspend(); |
---|
| 171 | } |
---|
[325] | 172 | |
---|
[369] | 173 | void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin) |
---|
| 174 | { |
---|
| 175 | *zoom_begin = axisgroup_hdl->zoom_begin.getValue(); |
---|
| 176 | } |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | void cxios_set_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int zoom_end) |
---|
| 180 | { |
---|
| 181 | CTimer::get("XIOS").resume(); |
---|
| 182 | axisgroup_hdl->zoom_end.setValue(zoom_end); |
---|
| 183 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_end); |
---|
| 184 | CTimer::get("XIOS").suspend(); |
---|
| 185 | } |
---|
| 186 | |
---|
| 187 | void cxios_get_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int* zoom_end) |
---|
| 188 | { |
---|
| 189 | *zoom_end = axisgroup_hdl->zoom_end.getValue(); |
---|
| 190 | } |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | void cxios_set_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int zoom_size) |
---|
| 194 | { |
---|
| 195 | CTimer::get("XIOS").resume(); |
---|
| 196 | axisgroup_hdl->zoom_size.setValue(zoom_size); |
---|
| 197 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_size); |
---|
| 198 | CTimer::get("XIOS").suspend(); |
---|
| 199 | } |
---|
| 200 | |
---|
| 201 | void cxios_get_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int* zoom_size) |
---|
| 202 | { |
---|
| 203 | *zoom_size = axisgroup_hdl->zoom_size.getValue(); |
---|
| 204 | } |
---|
| 205 | |
---|
| 206 | |
---|
| 207 | |
---|
[325] | 208 | } |
---|