[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::CAxis* axis_Ptr; |
---|
[325] | 18 | |
---|
| 19 | void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) |
---|
| 20 | { |
---|
| 21 | std::string long_name_str; |
---|
| 22 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
[347] | 23 | CTimer::get("XIOS").resume(); |
---|
[325] | 24 | axis_hdl->long_name.setValue(long_name_str); |
---|
| 25 | axis_hdl->sendAttributToServer(axis_hdl->long_name); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[325] | 32 | if(!string_copy(axis_hdl->long_name.getValue(),long_name , long_name_size)) |
---|
| 33 | ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
[432] | 37 | bool cxios_is_defined_axis_long_name(axis_Ptr axis_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
| 40 | return !axis_hdl->long_name.isEmpty(); |
---|
| 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
[325] | 43 | |
---|
[432] | 44 | |
---|
| 45 | |
---|
[325] | 46 | void cxios_set_axis_name(axis_Ptr axis_hdl, const char * name, int name_size) |
---|
| 47 | { |
---|
| 48 | std::string name_str; |
---|
| 49 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 50 | CTimer::get("XIOS").resume(); |
---|
[325] | 51 | axis_hdl->name.setValue(name_str); |
---|
| 52 | axis_hdl->sendAttributToServer(axis_hdl->name); |
---|
[347] | 53 | CTimer::get("XIOS").suspend(); |
---|
[325] | 54 | } |
---|
| 55 | |
---|
| 56 | void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) |
---|
| 57 | { |
---|
[347] | 58 | CTimer::get("XIOS").resume(); |
---|
[325] | 59 | if(!string_copy(axis_hdl->name.getValue(),name , name_size)) |
---|
| 60 | ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 61 | CTimer::get("XIOS").suspend(); |
---|
[325] | 62 | } |
---|
| 63 | |
---|
[432] | 64 | bool cxios_is_defined_axis_name(axis_Ptr axis_hdl ) |
---|
| 65 | { |
---|
| 66 | CTimer::get("XIOS").resume(); |
---|
| 67 | return !axis_hdl->name.isEmpty(); |
---|
| 68 | CTimer::get("XIOS").suspend(); |
---|
| 69 | } |
---|
[325] | 70 | |
---|
[432] | 71 | |
---|
| 72 | |
---|
[415] | 73 | void cxios_set_axis_positive(axis_Ptr axis_hdl, const char * positive, int positive_size) |
---|
| 74 | { |
---|
| 75 | std::string positive_str; |
---|
| 76 | if(!cstr2string(positive, positive_size, positive_str)) return; |
---|
| 77 | CTimer::get("XIOS").resume(); |
---|
| 78 | axis_hdl->positive.fromString(positive_str); |
---|
| 79 | axis_hdl->sendAttributToServer(axis_hdl->positive); |
---|
| 80 | CTimer::get("XIOS").suspend(); |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size) |
---|
| 84 | { |
---|
| 85 | CTimer::get("XIOS").resume(); |
---|
| 86 | if(!string_copy(axis_hdl->positive.getStringValue(),positive , positive_size)) |
---|
| 87 | ERROR("void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size)", <<"Input string is to short"); |
---|
| 88 | CTimer::get("XIOS").suspend(); |
---|
| 89 | } |
---|
| 90 | |
---|
[432] | 91 | bool cxios_is_defined_axis_positive(axis_Ptr axis_hdl ) |
---|
| 92 | { |
---|
| 93 | CTimer::get("XIOS").resume(); |
---|
| 94 | return !axis_hdl->positive.isEmpty(); |
---|
| 95 | CTimer::get("XIOS").suspend(); |
---|
| 96 | } |
---|
[415] | 97 | |
---|
[432] | 98 | |
---|
| 99 | |
---|
[325] | 100 | void cxios_set_axis_size(axis_Ptr axis_hdl, int size) |
---|
| 101 | { |
---|
[347] | 102 | CTimer::get("XIOS").resume(); |
---|
[325] | 103 | axis_hdl->size.setValue(size); |
---|
| 104 | axis_hdl->sendAttributToServer(axis_hdl->size); |
---|
[347] | 105 | CTimer::get("XIOS").suspend(); |
---|
[325] | 106 | } |
---|
| 107 | |
---|
| 108 | void cxios_get_axis_size(axis_Ptr axis_hdl, int* size) |
---|
| 109 | { |
---|
| 110 | *size = axis_hdl->size.getValue(); |
---|
| 111 | } |
---|
| 112 | |
---|
[432] | 113 | bool cxios_is_defined_axis_size(axis_Ptr axis_hdl ) |
---|
| 114 | { |
---|
| 115 | CTimer::get("XIOS").resume(); |
---|
| 116 | return !axis_hdl->size.isEmpty(); |
---|
| 117 | CTimer::get("XIOS").suspend(); |
---|
| 118 | } |
---|
[325] | 119 | |
---|
[432] | 120 | |
---|
| 121 | |
---|
[325] | 122 | void cxios_set_axis_standard_name(axis_Ptr axis_hdl, const char * standard_name, int standard_name_size) |
---|
| 123 | { |
---|
| 124 | std::string standard_name_str; |
---|
| 125 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
[347] | 126 | CTimer::get("XIOS").resume(); |
---|
[325] | 127 | axis_hdl->standard_name.setValue(standard_name_str); |
---|
| 128 | axis_hdl->sendAttributToServer(axis_hdl->standard_name); |
---|
[347] | 129 | CTimer::get("XIOS").suspend(); |
---|
[325] | 130 | } |
---|
| 131 | |
---|
| 132 | void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) |
---|
| 133 | { |
---|
[347] | 134 | CTimer::get("XIOS").resume(); |
---|
[325] | 135 | if(!string_copy(axis_hdl->standard_name.getValue(),standard_name , standard_name_size)) |
---|
| 136 | ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
[347] | 137 | CTimer::get("XIOS").suspend(); |
---|
[325] | 138 | } |
---|
| 139 | |
---|
[432] | 140 | bool cxios_is_defined_axis_standard_name(axis_Ptr axis_hdl ) |
---|
| 141 | { |
---|
| 142 | CTimer::get("XIOS").resume(); |
---|
| 143 | return !axis_hdl->standard_name.isEmpty(); |
---|
| 144 | CTimer::get("XIOS").suspend(); |
---|
| 145 | } |
---|
[325] | 146 | |
---|
[432] | 147 | |
---|
| 148 | |
---|
[325] | 149 | void cxios_set_axis_unit(axis_Ptr axis_hdl, const char * unit, int unit_size) |
---|
| 150 | { |
---|
| 151 | std::string unit_str; |
---|
| 152 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
[347] | 153 | CTimer::get("XIOS").resume(); |
---|
[325] | 154 | axis_hdl->unit.setValue(unit_str); |
---|
| 155 | axis_hdl->sendAttributToServer(axis_hdl->unit); |
---|
[347] | 156 | CTimer::get("XIOS").suspend(); |
---|
[325] | 157 | } |
---|
| 158 | |
---|
| 159 | void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) |
---|
| 160 | { |
---|
[347] | 161 | CTimer::get("XIOS").resume(); |
---|
[325] | 162 | if(!string_copy(axis_hdl->unit.getValue(),unit , unit_size)) |
---|
| 163 | ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
[347] | 164 | CTimer::get("XIOS").suspend(); |
---|
[325] | 165 | } |
---|
| 166 | |
---|
[432] | 167 | bool cxios_is_defined_axis_unit(axis_Ptr axis_hdl ) |
---|
| 168 | { |
---|
| 169 | CTimer::get("XIOS").resume(); |
---|
| 170 | return !axis_hdl->unit.isEmpty(); |
---|
| 171 | CTimer::get("XIOS").suspend(); |
---|
| 172 | } |
---|
[325] | 173 | |
---|
[432] | 174 | |
---|
| 175 | |
---|
[325] | 176 | void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
| 177 | { |
---|
[369] | 178 | CTimer::get("XIOS").resume(); |
---|
| 179 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
| 180 | axis_hdl->value.reference(tmp.copy()); |
---|
[325] | 181 | axis_hdl->sendAttributToServer(axis_hdl->value); |
---|
[416] | 182 | CTimer::get("XIOS").suspend(); |
---|
[325] | 183 | } |
---|
| 184 | |
---|
| 185 | void cxios_get_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
| 186 | { |
---|
[416] | 187 | CTimer::get("XIOS").resume(); |
---|
[369] | 188 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
| 189 | tmp=axis_hdl->value ; |
---|
[347] | 190 | CTimer::get("XIOS").suspend(); |
---|
[325] | 191 | } |
---|
| 192 | |
---|
[432] | 193 | bool cxios_is_defined_axis_value(axis_Ptr axis_hdl ) |
---|
| 194 | { |
---|
| 195 | CTimer::get("XIOS").resume(); |
---|
| 196 | return !axis_hdl->value.isEmpty(); |
---|
| 197 | CTimer::get("XIOS").suspend(); |
---|
| 198 | } |
---|
[325] | 199 | |
---|
[432] | 200 | |
---|
| 201 | |
---|
[369] | 202 | void cxios_set_axis_zoom_begin(axis_Ptr axis_hdl, int zoom_begin) |
---|
| 203 | { |
---|
| 204 | CTimer::get("XIOS").resume(); |
---|
| 205 | axis_hdl->zoom_begin.setValue(zoom_begin); |
---|
| 206 | axis_hdl->sendAttributToServer(axis_hdl->zoom_begin); |
---|
| 207 | CTimer::get("XIOS").suspend(); |
---|
| 208 | } |
---|
[325] | 209 | |
---|
[369] | 210 | void cxios_get_axis_zoom_begin(axis_Ptr axis_hdl, int* zoom_begin) |
---|
| 211 | { |
---|
| 212 | *zoom_begin = axis_hdl->zoom_begin.getValue(); |
---|
| 213 | } |
---|
| 214 | |
---|
[432] | 215 | bool cxios_is_defined_axis_zoom_begin(axis_Ptr axis_hdl ) |
---|
| 216 | { |
---|
| 217 | CTimer::get("XIOS").resume(); |
---|
| 218 | return !axis_hdl->zoom_begin.isEmpty(); |
---|
| 219 | CTimer::get("XIOS").suspend(); |
---|
| 220 | } |
---|
[369] | 221 | |
---|
[432] | 222 | |
---|
| 223 | |
---|
[369] | 224 | void cxios_set_axis_zoom_end(axis_Ptr axis_hdl, int zoom_end) |
---|
| 225 | { |
---|
| 226 | CTimer::get("XIOS").resume(); |
---|
| 227 | axis_hdl->zoom_end.setValue(zoom_end); |
---|
| 228 | axis_hdl->sendAttributToServer(axis_hdl->zoom_end); |
---|
| 229 | CTimer::get("XIOS").suspend(); |
---|
| 230 | } |
---|
| 231 | |
---|
| 232 | void cxios_get_axis_zoom_end(axis_Ptr axis_hdl, int* zoom_end) |
---|
| 233 | { |
---|
| 234 | *zoom_end = axis_hdl->zoom_end.getValue(); |
---|
| 235 | } |
---|
| 236 | |
---|
[432] | 237 | bool cxios_is_defined_axis_zoom_end(axis_Ptr axis_hdl ) |
---|
| 238 | { |
---|
| 239 | CTimer::get("XIOS").resume(); |
---|
| 240 | return !axis_hdl->zoom_end.isEmpty(); |
---|
| 241 | CTimer::get("XIOS").suspend(); |
---|
| 242 | } |
---|
[369] | 243 | |
---|
[432] | 244 | |
---|
| 245 | |
---|
[369] | 246 | void cxios_set_axis_zoom_size(axis_Ptr axis_hdl, int zoom_size) |
---|
| 247 | { |
---|
| 248 | CTimer::get("XIOS").resume(); |
---|
| 249 | axis_hdl->zoom_size.setValue(zoom_size); |
---|
| 250 | axis_hdl->sendAttributToServer(axis_hdl->zoom_size); |
---|
| 251 | CTimer::get("XIOS").suspend(); |
---|
| 252 | } |
---|
| 253 | |
---|
| 254 | void cxios_get_axis_zoom_size(axis_Ptr axis_hdl, int* zoom_size) |
---|
| 255 | { |
---|
| 256 | *zoom_size = axis_hdl->zoom_size.getValue(); |
---|
| 257 | } |
---|
| 258 | |
---|
[432] | 259 | bool cxios_is_defined_axis_zoom_size(axis_Ptr axis_hdl ) |
---|
| 260 | { |
---|
| 261 | CTimer::get("XIOS").resume(); |
---|
| 262 | return !axis_hdl->zoom_size.isEmpty(); |
---|
| 263 | CTimer::get("XIOS").suspend(); |
---|
| 264 | } |
---|
[369] | 265 | |
---|
| 266 | |
---|
[432] | 267 | |
---|
| 268 | |
---|
[325] | 269 | } |
---|