[325] | 1 | /* ************************************************************************** * |
---|
[581] | 2 | * Interface auto generated - do not modify * |
---|
[325] | 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include <boost/shared_ptr.hpp> |
---|
[591] | 7 | #include "xios.hpp" |
---|
[352] | 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
[325] | 11 | #include "icutil.hpp" |
---|
[532] | 12 | #include "icdate.hpp" |
---|
[347] | 13 | #include "timer.hpp" |
---|
[369] | 14 | #include "node_type.hpp" |
---|
[325] | 15 | |
---|
| 16 | extern "C" |
---|
| 17 | { |
---|
[581] | 18 | typedef xios::CAxisGroup* axisgroup_Ptr; |
---|
| 19 | |
---|
[546] | 20 | void cxios_set_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 21 | { |
---|
| 22 | std::string axis_ref_str; |
---|
[581] | 23 | if (!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
| 24 | CTimer::get("XIOS").resume(); |
---|
[546] | 25 | axisgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
[581] | 26 | CTimer::get("XIOS").suspend(); |
---|
[546] | 27 | } |
---|
[581] | 28 | |
---|
[546] | 29 | void cxios_get_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
| 30 | { |
---|
[581] | 31 | CTimer::get("XIOS").resume(); |
---|
| 32 | if (!string_copy(axisgroup_hdl->axis_ref.getInheritedValue(), axis_ref, axis_ref_size)) |
---|
| 33 | ERROR("void cxios_get_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, char * axis_ref, int axis_ref_size)", << "Input string is too short"); |
---|
| 34 | CTimer::get("XIOS").suspend(); |
---|
[546] | 35 | } |
---|
[581] | 36 | |
---|
| 37 | bool cxios_is_defined_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl) |
---|
[546] | 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[581] | 40 | bool isDefined = axisgroup_hdl->axis_ref.hasInheritedValue(); |
---|
[546] | 41 | CTimer::get("XIOS").suspend(); |
---|
[581] | 42 | return isDefined; |
---|
[546] | 43 | } |
---|
[581] | 44 | |
---|
| 45 | |
---|
[1492] | 46 | void cxios_set_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, const char * axis_type, int axis_type_size) |
---|
| 47 | { |
---|
| 48 | std::string axis_type_str; |
---|
| 49 | if (!cstr2string(axis_type, axis_type_size, axis_type_str)) return; |
---|
| 50 | CTimer::get("XIOS").resume(); |
---|
| 51 | axisgroup_hdl->axis_type.fromString(axis_type_str); |
---|
| 52 | CTimer::get("XIOS").suspend(); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, char * axis_type, int axis_type_size) |
---|
| 56 | { |
---|
| 57 | CTimer::get("XIOS").resume(); |
---|
| 58 | if (!string_copy(axisgroup_hdl->axis_type.getInheritedStringValue(), axis_type, axis_type_size)) |
---|
| 59 | ERROR("void cxios_get_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, char * axis_type, int axis_type_size)", << "Input string is too short"); |
---|
| 60 | CTimer::get("XIOS").suspend(); |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | bool cxios_is_defined_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl) |
---|
| 64 | { |
---|
| 65 | CTimer::get("XIOS").resume(); |
---|
| 66 | bool isDefined = axisgroup_hdl->axis_type.hasInheritedValue(); |
---|
| 67 | CTimer::get("XIOS").suspend(); |
---|
| 68 | return isDefined; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | |
---|
[666] | 72 | void cxios_set_axisgroup_begin(axisgroup_Ptr axisgroup_hdl, int begin) |
---|
| 73 | { |
---|
| 74 | CTimer::get("XIOS").resume(); |
---|
| 75 | axisgroup_hdl->begin.setValue(begin); |
---|
| 76 | CTimer::get("XIOS").suspend(); |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | void cxios_get_axisgroup_begin(axisgroup_Ptr axisgroup_hdl, int* begin) |
---|
| 80 | { |
---|
| 81 | CTimer::get("XIOS").resume(); |
---|
| 82 | *begin = axisgroup_hdl->begin.getInheritedValue(); |
---|
| 83 | CTimer::get("XIOS").suspend(); |
---|
| 84 | } |
---|
| 85 | |
---|
| 86 | bool cxios_is_defined_axisgroup_begin(axisgroup_Ptr axisgroup_hdl) |
---|
| 87 | { |
---|
| 88 | CTimer::get("XIOS").resume(); |
---|
| 89 | bool isDefined = axisgroup_hdl->begin.hasInheritedValue(); |
---|
| 90 | CTimer::get("XIOS").suspend(); |
---|
| 91 | return isDefined; |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | |
---|
[674] | 95 | void cxios_set_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl, double* bounds, int* extent) |
---|
[609] | 96 | { |
---|
| 97 | CTimer::get("XIOS").resume(); |
---|
[674] | 98 | CArray<double,2> tmp(bounds, shape(extent[0], extent[1]), neverDeleteData); |
---|
[609] | 99 | axisgroup_hdl->bounds.reference(tmp.copy()); |
---|
| 100 | CTimer::get("XIOS").suspend(); |
---|
| 101 | } |
---|
| 102 | |
---|
[674] | 103 | void cxios_get_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl, double* bounds, int* extent) |
---|
[609] | 104 | { |
---|
| 105 | CTimer::get("XIOS").resume(); |
---|
[674] | 106 | CArray<double,2> tmp(bounds, shape(extent[0], extent[1]), neverDeleteData); |
---|
[609] | 107 | tmp=axisgroup_hdl->bounds.getInheritedValue(); |
---|
| 108 | CTimer::get("XIOS").suspend(); |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | bool cxios_is_defined_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
| 112 | { |
---|
| 113 | CTimer::get("XIOS").resume(); |
---|
| 114 | bool isDefined = axisgroup_hdl->bounds.hasInheritedValue(); |
---|
| 115 | CTimer::get("XIOS").suspend(); |
---|
| 116 | return isDefined; |
---|
| 117 | } |
---|
| 118 | |
---|
| 119 | |
---|
[1492] | 120 | void cxios_set_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, const char * bounds_name, int bounds_name_size) |
---|
| 121 | { |
---|
| 122 | std::string bounds_name_str; |
---|
| 123 | if (!cstr2string(bounds_name, bounds_name_size, bounds_name_str)) return; |
---|
| 124 | CTimer::get("XIOS").resume(); |
---|
| 125 | axisgroup_hdl->bounds_name.setValue(bounds_name_str); |
---|
| 126 | CTimer::get("XIOS").suspend(); |
---|
| 127 | } |
---|
| 128 | |
---|
| 129 | void cxios_get_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, char * bounds_name, int bounds_name_size) |
---|
| 130 | { |
---|
| 131 | CTimer::get("XIOS").resume(); |
---|
| 132 | if (!string_copy(axisgroup_hdl->bounds_name.getInheritedValue(), bounds_name, bounds_name_size)) |
---|
| 133 | ERROR("void cxios_get_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, char * bounds_name, int bounds_name_size)", << "Input string is too short"); |
---|
| 134 | CTimer::get("XIOS").suspend(); |
---|
| 135 | } |
---|
| 136 | |
---|
| 137 | bool cxios_is_defined_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl) |
---|
| 138 | { |
---|
| 139 | CTimer::get("XIOS").resume(); |
---|
| 140 | bool isDefined = axisgroup_hdl->bounds_name.hasInheritedValue(); |
---|
| 141 | CTimer::get("XIOS").suspend(); |
---|
| 142 | return isDefined; |
---|
| 143 | } |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | void cxios_set_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, const char * comment, int comment_size) |
---|
| 147 | { |
---|
| 148 | std::string comment_str; |
---|
| 149 | if (!cstr2string(comment, comment_size, comment_str)) return; |
---|
| 150 | CTimer::get("XIOS").resume(); |
---|
| 151 | axisgroup_hdl->comment.setValue(comment_str); |
---|
| 152 | CTimer::get("XIOS").suspend(); |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | void cxios_get_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, char * comment, int comment_size) |
---|
| 156 | { |
---|
| 157 | CTimer::get("XIOS").resume(); |
---|
| 158 | if (!string_copy(axisgroup_hdl->comment.getInheritedValue(), comment, comment_size)) |
---|
| 159 | ERROR("void cxios_get_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, char * comment, int comment_size)", << "Input string is too short"); |
---|
| 160 | CTimer::get("XIOS").suspend(); |
---|
| 161 | } |
---|
| 162 | |
---|
| 163 | bool cxios_is_defined_axisgroup_comment(axisgroup_Ptr axisgroup_hdl) |
---|
| 164 | { |
---|
| 165 | CTimer::get("XIOS").resume(); |
---|
| 166 | bool isDefined = axisgroup_hdl->comment.hasInheritedValue(); |
---|
| 167 | CTimer::get("XIOS").suspend(); |
---|
| 168 | return isDefined; |
---|
| 169 | } |
---|
| 170 | |
---|
| 171 | |
---|
[555] | 172 | void cxios_set_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int data_begin) |
---|
| 173 | { |
---|
[581] | 174 | CTimer::get("XIOS").resume(); |
---|
[555] | 175 | axisgroup_hdl->data_begin.setValue(data_begin); |
---|
[581] | 176 | CTimer::get("XIOS").suspend(); |
---|
[555] | 177 | } |
---|
[581] | 178 | |
---|
[555] | 179 | void cxios_get_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int* data_begin) |
---|
| 180 | { |
---|
[581] | 181 | CTimer::get("XIOS").resume(); |
---|
[555] | 182 | *data_begin = axisgroup_hdl->data_begin.getInheritedValue(); |
---|
[581] | 183 | CTimer::get("XIOS").suspend(); |
---|
[555] | 184 | } |
---|
[581] | 185 | |
---|
| 186 | bool cxios_is_defined_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl) |
---|
[555] | 187 | { |
---|
| 188 | CTimer::get("XIOS").resume(); |
---|
[581] | 189 | bool isDefined = axisgroup_hdl->data_begin.hasInheritedValue(); |
---|
[555] | 190 | CTimer::get("XIOS").suspend(); |
---|
[581] | 191 | return isDefined; |
---|
[555] | 192 | } |
---|
[581] | 193 | |
---|
| 194 | |
---|
[674] | 195 | void cxios_set_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int* extent) |
---|
[555] | 196 | { |
---|
| 197 | CTimer::get("XIOS").resume(); |
---|
[674] | 198 | CArray<int,1> tmp(data_index, shape(extent[0]), neverDeleteData); |
---|
[555] | 199 | axisgroup_hdl->data_index.reference(tmp.copy()); |
---|
| 200 | CTimer::get("XIOS").suspend(); |
---|
| 201 | } |
---|
[581] | 202 | |
---|
[674] | 203 | void cxios_get_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int* extent) |
---|
[555] | 204 | { |
---|
| 205 | CTimer::get("XIOS").resume(); |
---|
[674] | 206 | CArray<int,1> tmp(data_index, shape(extent[0]), neverDeleteData); |
---|
[581] | 207 | tmp=axisgroup_hdl->data_index.getInheritedValue(); |
---|
[555] | 208 | CTimer::get("XIOS").suspend(); |
---|
| 209 | } |
---|
[581] | 210 | |
---|
| 211 | bool cxios_is_defined_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl) |
---|
[555] | 212 | { |
---|
| 213 | CTimer::get("XIOS").resume(); |
---|
[581] | 214 | bool isDefined = axisgroup_hdl->data_index.hasInheritedValue(); |
---|
[555] | 215 | CTimer::get("XIOS").suspend(); |
---|
[581] | 216 | return isDefined; |
---|
[555] | 217 | } |
---|
[581] | 218 | |
---|
| 219 | |
---|
[555] | 220 | void cxios_set_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int data_n) |
---|
| 221 | { |
---|
[581] | 222 | CTimer::get("XIOS").resume(); |
---|
[555] | 223 | axisgroup_hdl->data_n.setValue(data_n); |
---|
[581] | 224 | CTimer::get("XIOS").suspend(); |
---|
[555] | 225 | } |
---|
[581] | 226 | |
---|
[555] | 227 | void cxios_get_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int* data_n) |
---|
| 228 | { |
---|
[581] | 229 | CTimer::get("XIOS").resume(); |
---|
[555] | 230 | *data_n = axisgroup_hdl->data_n.getInheritedValue(); |
---|
[581] | 231 | CTimer::get("XIOS").suspend(); |
---|
[555] | 232 | } |
---|
[581] | 233 | |
---|
| 234 | bool cxios_is_defined_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl) |
---|
[555] | 235 | { |
---|
| 236 | CTimer::get("XIOS").resume(); |
---|
[581] | 237 | bool isDefined = axisgroup_hdl->data_n.hasInheritedValue(); |
---|
[555] | 238 | CTimer::get("XIOS").suspend(); |
---|
[581] | 239 | return isDefined; |
---|
[555] | 240 | } |
---|
[581] | 241 | |
---|
| 242 | |
---|
[1492] | 243 | void cxios_set_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, const char * dim_name, int dim_name_size) |
---|
| 244 | { |
---|
| 245 | std::string dim_name_str; |
---|
| 246 | if (!cstr2string(dim_name, dim_name_size, dim_name_str)) return; |
---|
| 247 | CTimer::get("XIOS").resume(); |
---|
| 248 | axisgroup_hdl->dim_name.setValue(dim_name_str); |
---|
| 249 | CTimer::get("XIOS").suspend(); |
---|
| 250 | } |
---|
| 251 | |
---|
| 252 | void cxios_get_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, char * dim_name, int dim_name_size) |
---|
| 253 | { |
---|
| 254 | CTimer::get("XIOS").resume(); |
---|
| 255 | if (!string_copy(axisgroup_hdl->dim_name.getInheritedValue(), dim_name, dim_name_size)) |
---|
| 256 | ERROR("void cxios_get_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, char * dim_name, int dim_name_size)", << "Input string is too short"); |
---|
| 257 | CTimer::get("XIOS").suspend(); |
---|
| 258 | } |
---|
| 259 | |
---|
| 260 | bool cxios_is_defined_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl) |
---|
| 261 | { |
---|
| 262 | CTimer::get("XIOS").resume(); |
---|
| 263 | bool isDefined = axisgroup_hdl->dim_name.hasInheritedValue(); |
---|
| 264 | CTimer::get("XIOS").suspend(); |
---|
| 265 | return isDefined; |
---|
| 266 | } |
---|
| 267 | |
---|
| 268 | |
---|
| 269 | void cxios_set_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, const char * formula, int formula_size) |
---|
| 270 | { |
---|
| 271 | std::string formula_str; |
---|
| 272 | if (!cstr2string(formula, formula_size, formula_str)) return; |
---|
| 273 | CTimer::get("XIOS").resume(); |
---|
| 274 | axisgroup_hdl->formula.setValue(formula_str); |
---|
| 275 | CTimer::get("XIOS").suspend(); |
---|
| 276 | } |
---|
| 277 | |
---|
| 278 | void cxios_get_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, char * formula, int formula_size) |
---|
| 279 | { |
---|
| 280 | CTimer::get("XIOS").resume(); |
---|
| 281 | if (!string_copy(axisgroup_hdl->formula.getInheritedValue(), formula, formula_size)) |
---|
| 282 | ERROR("void cxios_get_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, char * formula, int formula_size)", << "Input string is too short"); |
---|
| 283 | CTimer::get("XIOS").suspend(); |
---|
| 284 | } |
---|
| 285 | |
---|
| 286 | bool cxios_is_defined_axisgroup_formula(axisgroup_Ptr axisgroup_hdl) |
---|
| 287 | { |
---|
| 288 | CTimer::get("XIOS").resume(); |
---|
| 289 | bool isDefined = axisgroup_hdl->formula.hasInheritedValue(); |
---|
| 290 | CTimer::get("XIOS").suspend(); |
---|
| 291 | return isDefined; |
---|
| 292 | } |
---|
| 293 | |
---|
| 294 | |
---|
| 295 | void cxios_set_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, const char * formula_bounds, int formula_bounds_size) |
---|
| 296 | { |
---|
| 297 | std::string formula_bounds_str; |
---|
| 298 | if (!cstr2string(formula_bounds, formula_bounds_size, formula_bounds_str)) return; |
---|
| 299 | CTimer::get("XIOS").resume(); |
---|
| 300 | axisgroup_hdl->formula_bounds.setValue(formula_bounds_str); |
---|
| 301 | CTimer::get("XIOS").suspend(); |
---|
| 302 | } |
---|
| 303 | |
---|
| 304 | void cxios_get_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_bounds, int formula_bounds_size) |
---|
| 305 | { |
---|
| 306 | CTimer::get("XIOS").resume(); |
---|
| 307 | if (!string_copy(axisgroup_hdl->formula_bounds.getInheritedValue(), formula_bounds, formula_bounds_size)) |
---|
| 308 | ERROR("void cxios_get_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_bounds, int formula_bounds_size)", << "Input string is too short"); |
---|
| 309 | CTimer::get("XIOS").suspend(); |
---|
| 310 | } |
---|
| 311 | |
---|
| 312 | bool cxios_is_defined_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
| 313 | { |
---|
| 314 | CTimer::get("XIOS").resume(); |
---|
| 315 | bool isDefined = axisgroup_hdl->formula_bounds.hasInheritedValue(); |
---|
| 316 | CTimer::get("XIOS").suspend(); |
---|
| 317 | return isDefined; |
---|
| 318 | } |
---|
| 319 | |
---|
| 320 | |
---|
| 321 | void cxios_set_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, const char * formula_term, int formula_term_size) |
---|
| 322 | { |
---|
| 323 | std::string formula_term_str; |
---|
| 324 | if (!cstr2string(formula_term, formula_term_size, formula_term_str)) return; |
---|
| 325 | CTimer::get("XIOS").resume(); |
---|
| 326 | axisgroup_hdl->formula_term.setValue(formula_term_str); |
---|
| 327 | CTimer::get("XIOS").suspend(); |
---|
| 328 | } |
---|
| 329 | |
---|
| 330 | void cxios_get_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, char * formula_term, int formula_term_size) |
---|
| 331 | { |
---|
| 332 | CTimer::get("XIOS").resume(); |
---|
| 333 | if (!string_copy(axisgroup_hdl->formula_term.getInheritedValue(), formula_term, formula_term_size)) |
---|
| 334 | ERROR("void cxios_get_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, char * formula_term, int formula_term_size)", << "Input string is too short"); |
---|
| 335 | CTimer::get("XIOS").suspend(); |
---|
| 336 | } |
---|
| 337 | |
---|
| 338 | bool cxios_is_defined_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl) |
---|
| 339 | { |
---|
| 340 | CTimer::get("XIOS").resume(); |
---|
| 341 | bool isDefined = axisgroup_hdl->formula_term.hasInheritedValue(); |
---|
| 342 | CTimer::get("XIOS").suspend(); |
---|
| 343 | return isDefined; |
---|
| 344 | } |
---|
| 345 | |
---|
| 346 | |
---|
| 347 | void cxios_set_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, const char * formula_term_bounds, int formula_term_bounds_size) |
---|
| 348 | { |
---|
| 349 | std::string formula_term_bounds_str; |
---|
| 350 | if (!cstr2string(formula_term_bounds, formula_term_bounds_size, formula_term_bounds_str)) return; |
---|
| 351 | CTimer::get("XIOS").resume(); |
---|
| 352 | axisgroup_hdl->formula_term_bounds.setValue(formula_term_bounds_str); |
---|
| 353 | CTimer::get("XIOS").suspend(); |
---|
| 354 | } |
---|
| 355 | |
---|
| 356 | void cxios_get_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_term_bounds, int formula_term_bounds_size) |
---|
| 357 | { |
---|
| 358 | CTimer::get("XIOS").resume(); |
---|
| 359 | if (!string_copy(axisgroup_hdl->formula_term_bounds.getInheritedValue(), formula_term_bounds, formula_term_bounds_size)) |
---|
| 360 | ERROR("void cxios_get_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_term_bounds, int formula_term_bounds_size)", << "Input string is too short"); |
---|
| 361 | CTimer::get("XIOS").suspend(); |
---|
| 362 | } |
---|
| 363 | |
---|
| 364 | bool cxios_is_defined_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
| 365 | { |
---|
| 366 | CTimer::get("XIOS").resume(); |
---|
| 367 | bool isDefined = axisgroup_hdl->formula_term_bounds.hasInheritedValue(); |
---|
| 368 | CTimer::get("XIOS").suspend(); |
---|
| 369 | return isDefined; |
---|
| 370 | } |
---|
| 371 | |
---|
| 372 | |
---|
[325] | 373 | void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 374 | { |
---|
| 375 | std::string group_ref_str; |
---|
[581] | 376 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 377 | CTimer::get("XIOS").resume(); |
---|
[325] | 378 | axisgroup_hdl->group_ref.setValue(group_ref_str); |
---|
[581] | 379 | CTimer::get("XIOS").suspend(); |
---|
[325] | 380 | } |
---|
[581] | 381 | |
---|
[325] | 382 | void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 383 | { |
---|
[581] | 384 | CTimer::get("XIOS").resume(); |
---|
| 385 | if (!string_copy(axisgroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
| 386 | ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
| 387 | CTimer::get("XIOS").suspend(); |
---|
[325] | 388 | } |
---|
[581] | 389 | |
---|
| 390 | bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 391 | { |
---|
| 392 | CTimer::get("XIOS").resume(); |
---|
[581] | 393 | bool isDefined = axisgroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 394 | CTimer::get("XIOS").suspend(); |
---|
[581] | 395 | return isDefined; |
---|
[432] | 396 | } |
---|
[581] | 397 | |
---|
| 398 | |
---|
[817] | 399 | void cxios_set_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) |
---|
| 400 | { |
---|
| 401 | CTimer::get("XIOS").resume(); |
---|
| 402 | CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); |
---|
| 403 | axisgroup_hdl->index.reference(tmp.copy()); |
---|
| 404 | CTimer::get("XIOS").suspend(); |
---|
| 405 | } |
---|
| 406 | |
---|
| 407 | void cxios_get_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) |
---|
| 408 | { |
---|
| 409 | CTimer::get("XIOS").resume(); |
---|
| 410 | CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); |
---|
| 411 | tmp=axisgroup_hdl->index.getInheritedValue(); |
---|
| 412 | CTimer::get("XIOS").suspend(); |
---|
| 413 | } |
---|
| 414 | |
---|
| 415 | bool cxios_is_defined_axisgroup_index(axisgroup_Ptr axisgroup_hdl) |
---|
| 416 | { |
---|
| 417 | CTimer::get("XIOS").resume(); |
---|
| 418 | bool isDefined = axisgroup_hdl->index.hasInheritedValue(); |
---|
| 419 | CTimer::get("XIOS").suspend(); |
---|
| 420 | return isDefined; |
---|
| 421 | } |
---|
| 422 | |
---|
| 423 | |
---|
[1158] | 424 | void cxios_set_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_len, int* str_size, int* extent) |
---|
| 425 | { |
---|
| 426 | CTimer::get("XIOS").resume(); |
---|
| 427 | axisgroup_hdl->label.resize(shape(extent[0])); |
---|
| 428 | Array<StdString,1>::iterator it, itb=axisgroup_hdl->label.begin(), ite=axisgroup_hdl->label.end() ; |
---|
| 429 | int i, n ; |
---|
| 430 | for(it=itb, i=0, n=0 ; it!=ite ; ++it,n+=str_len,++i) *it=StdString(&label[n],str_size[i]) ; |
---|
| 431 | CTimer::get("XIOS").suspend(); |
---|
| 432 | } |
---|
| 433 | |
---|
| 434 | void cxios_get_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_size, int* extent) |
---|
| 435 | { |
---|
| 436 | CTimer::get("XIOS").resume(); |
---|
| 437 | Array<StdString,1>::const_iterator it, itb=axisgroup_hdl->label.getInheritedValue().begin(), ite=axisgroup_hdl->label.getInheritedValue().end() ; |
---|
| 438 | int n ; |
---|
| 439 | for(it=itb, n=0 ; it!=ite ; ++it, n+=str_size) it->copy(&label[n],it->size()) ; |
---|
| 440 | CTimer::get("XIOS").suspend(); |
---|
| 441 | } |
---|
| 442 | |
---|
| 443 | bool cxios_is_defined_axisgroup_label(axisgroup_Ptr axisgroup_hdl) |
---|
| 444 | { |
---|
| 445 | CTimer::get("XIOS").resume(); |
---|
| 446 | bool isDefined = axisgroup_hdl->label.hasInheritedValue(); |
---|
| 447 | CTimer::get("XIOS").suspend(); |
---|
| 448 | return isDefined; |
---|
| 449 | } |
---|
| 450 | |
---|
| 451 | |
---|
[325] | 452 | void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) |
---|
| 453 | { |
---|
| 454 | std::string long_name_str; |
---|
[581] | 455 | if (!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
| 456 | CTimer::get("XIOS").resume(); |
---|
[325] | 457 | axisgroup_hdl->long_name.setValue(long_name_str); |
---|
[581] | 458 | CTimer::get("XIOS").suspend(); |
---|
[325] | 459 | } |
---|
[581] | 460 | |
---|
[325] | 461 | void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size) |
---|
| 462 | { |
---|
[581] | 463 | CTimer::get("XIOS").resume(); |
---|
| 464 | if (!string_copy(axisgroup_hdl->long_name.getInheritedValue(), long_name, long_name_size)) |
---|
| 465 | ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", << "Input string is too short"); |
---|
| 466 | CTimer::get("XIOS").suspend(); |
---|
[325] | 467 | } |
---|
[581] | 468 | |
---|
| 469 | bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 470 | { |
---|
| 471 | CTimer::get("XIOS").resume(); |
---|
[581] | 472 | bool isDefined = axisgroup_hdl->long_name.hasInheritedValue(); |
---|
[432] | 473 | CTimer::get("XIOS").suspend(); |
---|
[581] | 474 | return isDefined; |
---|
[432] | 475 | } |
---|
[581] | 476 | |
---|
| 477 | |
---|
[674] | 478 | void cxios_set_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int* extent) |
---|
[555] | 479 | { |
---|
| 480 | CTimer::get("XIOS").resume(); |
---|
[674] | 481 | CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData); |
---|
[555] | 482 | axisgroup_hdl->mask.reference(tmp.copy()); |
---|
| 483 | CTimer::get("XIOS").suspend(); |
---|
| 484 | } |
---|
[581] | 485 | |
---|
[674] | 486 | void cxios_get_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int* extent) |
---|
[555] | 487 | { |
---|
| 488 | CTimer::get("XIOS").resume(); |
---|
[674] | 489 | CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData); |
---|
[581] | 490 | tmp=axisgroup_hdl->mask.getInheritedValue(); |
---|
[555] | 491 | CTimer::get("XIOS").suspend(); |
---|
| 492 | } |
---|
[581] | 493 | |
---|
| 494 | bool cxios_is_defined_axisgroup_mask(axisgroup_Ptr axisgroup_hdl) |
---|
[555] | 495 | { |
---|
| 496 | CTimer::get("XIOS").resume(); |
---|
[581] | 497 | bool isDefined = axisgroup_hdl->mask.hasInheritedValue(); |
---|
[555] | 498 | CTimer::get("XIOS").suspend(); |
---|
[581] | 499 | return isDefined; |
---|
[555] | 500 | } |
---|
[581] | 501 | |
---|
| 502 | |
---|
[666] | 503 | void cxios_set_axisgroup_n(axisgroup_Ptr axisgroup_hdl, int n) |
---|
[325] | 504 | { |
---|
[581] | 505 | CTimer::get("XIOS").resume(); |
---|
[666] | 506 | axisgroup_hdl->n.setValue(n); |
---|
[581] | 507 | CTimer::get("XIOS").suspend(); |
---|
[325] | 508 | } |
---|
[581] | 509 | |
---|
[666] | 510 | void cxios_get_axisgroup_n(axisgroup_Ptr axisgroup_hdl, int* n) |
---|
[325] | 511 | { |
---|
[581] | 512 | CTimer::get("XIOS").resume(); |
---|
[666] | 513 | *n = axisgroup_hdl->n.getInheritedValue(); |
---|
[581] | 514 | CTimer::get("XIOS").suspend(); |
---|
[325] | 515 | } |
---|
[581] | 516 | |
---|
[666] | 517 | bool cxios_is_defined_axisgroup_n(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 518 | { |
---|
| 519 | CTimer::get("XIOS").resume(); |
---|
[666] | 520 | bool isDefined = axisgroup_hdl->n.hasInheritedValue(); |
---|
[432] | 521 | CTimer::get("XIOS").suspend(); |
---|
[581] | 522 | return isDefined; |
---|
[432] | 523 | } |
---|
[581] | 524 | |
---|
| 525 | |
---|
[779] | 526 | void cxios_set_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl, int n_distributed_partition) |
---|
| 527 | { |
---|
| 528 | CTimer::get("XIOS").resume(); |
---|
| 529 | axisgroup_hdl->n_distributed_partition.setValue(n_distributed_partition); |
---|
| 530 | CTimer::get("XIOS").suspend(); |
---|
| 531 | } |
---|
| 532 | |
---|
| 533 | void cxios_get_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl, int* n_distributed_partition) |
---|
| 534 | { |
---|
| 535 | CTimer::get("XIOS").resume(); |
---|
| 536 | *n_distributed_partition = axisgroup_hdl->n_distributed_partition.getInheritedValue(); |
---|
| 537 | CTimer::get("XIOS").suspend(); |
---|
| 538 | } |
---|
| 539 | |
---|
| 540 | bool cxios_is_defined_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl) |
---|
| 541 | { |
---|
| 542 | CTimer::get("XIOS").resume(); |
---|
| 543 | bool isDefined = axisgroup_hdl->n_distributed_partition.hasInheritedValue(); |
---|
| 544 | CTimer::get("XIOS").suspend(); |
---|
| 545 | return isDefined; |
---|
| 546 | } |
---|
| 547 | |
---|
| 548 | |
---|
[666] | 549 | void cxios_set_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl, int n_glo) |
---|
[555] | 550 | { |
---|
[581] | 551 | CTimer::get("XIOS").resume(); |
---|
[666] | 552 | axisgroup_hdl->n_glo.setValue(n_glo); |
---|
[581] | 553 | CTimer::get("XIOS").suspend(); |
---|
[555] | 554 | } |
---|
[581] | 555 | |
---|
[666] | 556 | void cxios_get_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl, int* n_glo) |
---|
[555] | 557 | { |
---|
[581] | 558 | CTimer::get("XIOS").resume(); |
---|
[666] | 559 | *n_glo = axisgroup_hdl->n_glo.getInheritedValue(); |
---|
[581] | 560 | CTimer::get("XIOS").suspend(); |
---|
[555] | 561 | } |
---|
[581] | 562 | |
---|
[666] | 563 | bool cxios_is_defined_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl) |
---|
[555] | 564 | { |
---|
| 565 | CTimer::get("XIOS").resume(); |
---|
[666] | 566 | bool isDefined = axisgroup_hdl->n_glo.hasInheritedValue(); |
---|
[555] | 567 | CTimer::get("XIOS").suspend(); |
---|
[581] | 568 | return isDefined; |
---|
[555] | 569 | } |
---|
[581] | 570 | |
---|
| 571 | |
---|
[666] | 572 | void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size) |
---|
[415] | 573 | { |
---|
[666] | 574 | std::string name_str; |
---|
| 575 | if (!cstr2string(name, name_size, name_str)) return; |
---|
[581] | 576 | CTimer::get("XIOS").resume(); |
---|
[666] | 577 | axisgroup_hdl->name.setValue(name_str); |
---|
[581] | 578 | CTimer::get("XIOS").suspend(); |
---|
[415] | 579 | } |
---|
[581] | 580 | |
---|
[666] | 581 | void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size) |
---|
[415] | 582 | { |
---|
[581] | 583 | CTimer::get("XIOS").resume(); |
---|
[666] | 584 | if (!string_copy(axisgroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 585 | ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
[581] | 586 | CTimer::get("XIOS").suspend(); |
---|
[415] | 587 | } |
---|
[581] | 588 | |
---|
[666] | 589 | bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 590 | { |
---|
| 591 | CTimer::get("XIOS").resume(); |
---|
[666] | 592 | bool isDefined = axisgroup_hdl->name.hasInheritedValue(); |
---|
[432] | 593 | CTimer::get("XIOS").suspend(); |
---|
[581] | 594 | return isDefined; |
---|
[432] | 595 | } |
---|
[581] | 596 | |
---|
| 597 | |
---|
[666] | 598 | void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) |
---|
[325] | 599 | { |
---|
[666] | 600 | std::string positive_str; |
---|
| 601 | if (!cstr2string(positive, positive_size, positive_str)) return; |
---|
[581] | 602 | CTimer::get("XIOS").resume(); |
---|
[666] | 603 | axisgroup_hdl->positive.fromString(positive_str); |
---|
[581] | 604 | CTimer::get("XIOS").suspend(); |
---|
[325] | 605 | } |
---|
[581] | 606 | |
---|
[666] | 607 | void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size) |
---|
[325] | 608 | { |
---|
[581] | 609 | CTimer::get("XIOS").resume(); |
---|
[666] | 610 | if (!string_copy(axisgroup_hdl->positive.getInheritedStringValue(), positive, positive_size)) |
---|
| 611 | ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", << "Input string is too short"); |
---|
[581] | 612 | CTimer::get("XIOS").suspend(); |
---|
[325] | 613 | } |
---|
[581] | 614 | |
---|
[666] | 615 | bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 616 | { |
---|
| 617 | CTimer::get("XIOS").resume(); |
---|
[666] | 618 | bool isDefined = axisgroup_hdl->positive.hasInheritedValue(); |
---|
[432] | 619 | CTimer::get("XIOS").suspend(); |
---|
[581] | 620 | return isDefined; |
---|
[432] | 621 | } |
---|
[581] | 622 | |
---|
| 623 | |
---|
[1158] | 624 | void cxios_set_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int prec) |
---|
| 625 | { |
---|
| 626 | CTimer::get("XIOS").resume(); |
---|
| 627 | axisgroup_hdl->prec.setValue(prec); |
---|
| 628 | CTimer::get("XIOS").suspend(); |
---|
| 629 | } |
---|
| 630 | |
---|
| 631 | void cxios_get_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int* prec) |
---|
| 632 | { |
---|
| 633 | CTimer::get("XIOS").resume(); |
---|
| 634 | *prec = axisgroup_hdl->prec.getInheritedValue(); |
---|
| 635 | CTimer::get("XIOS").suspend(); |
---|
| 636 | } |
---|
| 637 | |
---|
| 638 | bool cxios_is_defined_axisgroup_prec(axisgroup_Ptr axisgroup_hdl) |
---|
| 639 | { |
---|
| 640 | CTimer::get("XIOS").resume(); |
---|
| 641 | bool isDefined = axisgroup_hdl->prec.hasInheritedValue(); |
---|
| 642 | CTimer::get("XIOS").suspend(); |
---|
| 643 | return isDefined; |
---|
| 644 | } |
---|
| 645 | |
---|
| 646 | |
---|
[325] | 647 | void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size) |
---|
| 648 | { |
---|
| 649 | std::string standard_name_str; |
---|
[581] | 650 | if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
| 651 | CTimer::get("XIOS").resume(); |
---|
[325] | 652 | axisgroup_hdl->standard_name.setValue(standard_name_str); |
---|
[581] | 653 | CTimer::get("XIOS").suspend(); |
---|
[325] | 654 | } |
---|
[581] | 655 | |
---|
[325] | 656 | void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size) |
---|
| 657 | { |
---|
[581] | 658 | CTimer::get("XIOS").resume(); |
---|
| 659 | if (!string_copy(axisgroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size)) |
---|
| 660 | ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short"); |
---|
| 661 | CTimer::get("XIOS").suspend(); |
---|
[325] | 662 | } |
---|
[581] | 663 | |
---|
| 664 | bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 665 | { |
---|
| 666 | CTimer::get("XIOS").resume(); |
---|
[581] | 667 | bool isDefined = axisgroup_hdl->standard_name.hasInheritedValue(); |
---|
[432] | 668 | CTimer::get("XIOS").suspend(); |
---|
[581] | 669 | return isDefined; |
---|
[432] | 670 | } |
---|
[581] | 671 | |
---|
| 672 | |
---|
[325] | 673 | void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size) |
---|
| 674 | { |
---|
| 675 | std::string unit_str; |
---|
[581] | 676 | if (!cstr2string(unit, unit_size, unit_str)) return; |
---|
| 677 | CTimer::get("XIOS").resume(); |
---|
[325] | 678 | axisgroup_hdl->unit.setValue(unit_str); |
---|
[581] | 679 | CTimer::get("XIOS").suspend(); |
---|
[325] | 680 | } |
---|
[581] | 681 | |
---|
[325] | 682 | void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size) |
---|
| 683 | { |
---|
[581] | 684 | CTimer::get("XIOS").resume(); |
---|
| 685 | if (!string_copy(axisgroup_hdl->unit.getInheritedValue(), unit, unit_size)) |
---|
| 686 | ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", << "Input string is too short"); |
---|
| 687 | CTimer::get("XIOS").suspend(); |
---|
[325] | 688 | } |
---|
[581] | 689 | |
---|
| 690 | bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 691 | { |
---|
| 692 | CTimer::get("XIOS").resume(); |
---|
[581] | 693 | bool isDefined = axisgroup_hdl->unit.hasInheritedValue(); |
---|
[432] | 694 | CTimer::get("XIOS").suspend(); |
---|
[581] | 695 | return isDefined; |
---|
[432] | 696 | } |
---|
[581] | 697 | |
---|
| 698 | |
---|
[674] | 699 | void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int* extent) |
---|
[325] | 700 | { |
---|
[369] | 701 | CTimer::get("XIOS").resume(); |
---|
[674] | 702 | CArray<double,1> tmp(value, shape(extent[0]), neverDeleteData); |
---|
[369] | 703 | axisgroup_hdl->value.reference(tmp.copy()); |
---|
[416] | 704 | CTimer::get("XIOS").suspend(); |
---|
[325] | 705 | } |
---|
[581] | 706 | |
---|
[674] | 707 | void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int* extent) |
---|
[325] | 708 | { |
---|
[416] | 709 | CTimer::get("XIOS").resume(); |
---|
[674] | 710 | CArray<double,1> tmp(value, shape(extent[0]), neverDeleteData); |
---|
[581] | 711 | tmp=axisgroup_hdl->value.getInheritedValue(); |
---|
[347] | 712 | CTimer::get("XIOS").suspend(); |
---|
[325] | 713 | } |
---|
[581] | 714 | |
---|
| 715 | bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl) |
---|
[432] | 716 | { |
---|
| 717 | CTimer::get("XIOS").resume(); |
---|
[581] | 718 | bool isDefined = axisgroup_hdl->value.hasInheritedValue(); |
---|
[432] | 719 | CTimer::get("XIOS").suspend(); |
---|
[581] | 720 | return isDefined; |
---|
[432] | 721 | } |
---|
[325] | 722 | } |
---|