[325] | 1 | /* ************************************************************************** * |
---|
[581] | 2 | * Interface auto generated - do not modify * |
---|
[325] | 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
[591] | 6 | #include "xios.hpp" |
---|
[352] | 7 | #include "attribute_template.hpp" |
---|
| 8 | #include "object_template.hpp" |
---|
| 9 | #include "group_template.hpp" |
---|
[325] | 10 | #include "icutil.hpp" |
---|
[532] | 11 | #include "icdate.hpp" |
---|
[347] | 12 | #include "timer.hpp" |
---|
[369] | 13 | #include "node_type.hpp" |
---|
[325] | 14 | |
---|
| 15 | extern "C" |
---|
| 16 | { |
---|
[581] | 17 | typedef xios::CFieldGroup* fieldgroup_Ptr; |
---|
| 18 | |
---|
[464] | 19 | void cxios_set_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl, double add_offset) |
---|
| 20 | { |
---|
[581] | 21 | CTimer::get("XIOS").resume(); |
---|
[464] | 22 | fieldgroup_hdl->add_offset.setValue(add_offset); |
---|
[581] | 23 | CTimer::get("XIOS").suspend(); |
---|
[464] | 24 | } |
---|
[581] | 25 | |
---|
[464] | 26 | void cxios_get_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl, double* add_offset) |
---|
| 27 | { |
---|
[581] | 28 | CTimer::get("XIOS").resume(); |
---|
[464] | 29 | *add_offset = fieldgroup_hdl->add_offset.getInheritedValue(); |
---|
[581] | 30 | CTimer::get("XIOS").suspend(); |
---|
[464] | 31 | } |
---|
[581] | 32 | |
---|
| 33 | bool cxios_is_defined_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl) |
---|
[464] | 34 | { |
---|
| 35 | CTimer::get("XIOS").resume(); |
---|
[581] | 36 | bool isDefined = fieldgroup_hdl->add_offset.hasInheritedValue(); |
---|
[464] | 37 | CTimer::get("XIOS").suspend(); |
---|
[581] | 38 | return isDefined; |
---|
[464] | 39 | } |
---|
[581] | 40 | |
---|
| 41 | |
---|
[325] | 42 | void cxios_set_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 43 | { |
---|
| 44 | std::string axis_ref_str; |
---|
[581] | 45 | if (!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
| 46 | CTimer::get("XIOS").resume(); |
---|
[325] | 47 | fieldgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
[581] | 48 | CTimer::get("XIOS").suspend(); |
---|
[325] | 49 | } |
---|
[581] | 50 | |
---|
[325] | 51 | void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
| 52 | { |
---|
[581] | 53 | CTimer::get("XIOS").resume(); |
---|
| 54 | if (!string_copy(fieldgroup_hdl->axis_ref.getInheritedValue(), axis_ref, axis_ref_size)) |
---|
| 55 | ERROR("void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size)", << "Input string is too short"); |
---|
| 56 | CTimer::get("XIOS").suspend(); |
---|
[325] | 57 | } |
---|
[581] | 58 | |
---|
| 59 | bool cxios_is_defined_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 60 | { |
---|
| 61 | CTimer::get("XIOS").resume(); |
---|
[581] | 62 | bool isDefined = fieldgroup_hdl->axis_ref.hasInheritedValue(); |
---|
[432] | 63 | CTimer::get("XIOS").suspend(); |
---|
[581] | 64 | return isDefined; |
---|
[432] | 65 | } |
---|
[581] | 66 | |
---|
| 67 | |
---|
[1021] | 68 | void cxios_set_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, const char * cell_methods, int cell_methods_size) |
---|
| 69 | { |
---|
| 70 | std::string cell_methods_str; |
---|
| 71 | if (!cstr2string(cell_methods, cell_methods_size, cell_methods_str)) return; |
---|
| 72 | CTimer::get("XIOS").resume(); |
---|
| 73 | fieldgroup_hdl->cell_methods.setValue(cell_methods_str); |
---|
| 74 | CTimer::get("XIOS").suspend(); |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | void cxios_get_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods, int cell_methods_size) |
---|
| 78 | { |
---|
| 79 | CTimer::get("XIOS").resume(); |
---|
| 80 | if (!string_copy(fieldgroup_hdl->cell_methods.getInheritedValue(), cell_methods, cell_methods_size)) |
---|
| 81 | ERROR("void cxios_get_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods, int cell_methods_size)", << "Input string is too short"); |
---|
| 82 | CTimer::get("XIOS").suspend(); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | bool cxios_is_defined_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 86 | { |
---|
| 87 | CTimer::get("XIOS").resume(); |
---|
| 88 | bool isDefined = fieldgroup_hdl->cell_methods.hasInheritedValue(); |
---|
| 89 | CTimer::get("XIOS").suspend(); |
---|
| 90 | return isDefined; |
---|
| 91 | } |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | void cxios_set_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, const char * cell_methods_mode, int cell_methods_mode_size) |
---|
| 95 | { |
---|
| 96 | std::string cell_methods_mode_str; |
---|
| 97 | if (!cstr2string(cell_methods_mode, cell_methods_mode_size, cell_methods_mode_str)) return; |
---|
| 98 | CTimer::get("XIOS").resume(); |
---|
| 99 | fieldgroup_hdl->cell_methods_mode.fromString(cell_methods_mode_str); |
---|
| 100 | CTimer::get("XIOS").suspend(); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | void cxios_get_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods_mode, int cell_methods_mode_size) |
---|
| 104 | { |
---|
| 105 | CTimer::get("XIOS").resume(); |
---|
| 106 | if (!string_copy(fieldgroup_hdl->cell_methods_mode.getInheritedStringValue(), cell_methods_mode, cell_methods_mode_size)) |
---|
| 107 | ERROR("void cxios_get_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods_mode, int cell_methods_mode_size)", << "Input string is too short"); |
---|
| 108 | CTimer::get("XIOS").suspend(); |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | bool cxios_is_defined_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 112 | { |
---|
| 113 | CTimer::get("XIOS").resume(); |
---|
| 114 | bool isDefined = fieldgroup_hdl->cell_methods_mode.hasInheritedValue(); |
---|
| 115 | CTimer::get("XIOS").suspend(); |
---|
| 116 | return isDefined; |
---|
| 117 | } |
---|
| 118 | |
---|
| 119 | |
---|
[1201] | 120 | void cxios_set_fieldgroup_check_if_active(fieldgroup_Ptr fieldgroup_hdl, bool check_if_active) |
---|
| 121 | { |
---|
| 122 | CTimer::get("XIOS").resume(); |
---|
| 123 | fieldgroup_hdl->check_if_active.setValue(check_if_active); |
---|
| 124 | CTimer::get("XIOS").suspend(); |
---|
| 125 | } |
---|
| 126 | |
---|
| 127 | void cxios_get_fieldgroup_check_if_active(fieldgroup_Ptr fieldgroup_hdl, bool* check_if_active) |
---|
| 128 | { |
---|
| 129 | CTimer::get("XIOS").resume(); |
---|
| 130 | *check_if_active = fieldgroup_hdl->check_if_active.getInheritedValue(); |
---|
| 131 | CTimer::get("XIOS").suspend(); |
---|
| 132 | } |
---|
| 133 | |
---|
| 134 | bool cxios_is_defined_fieldgroup_check_if_active(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 135 | { |
---|
| 136 | CTimer::get("XIOS").resume(); |
---|
| 137 | bool isDefined = fieldgroup_hdl->check_if_active.hasInheritedValue(); |
---|
| 138 | CTimer::get("XIOS").suspend(); |
---|
| 139 | return isDefined; |
---|
| 140 | } |
---|
| 141 | |
---|
| 142 | |
---|
[1492] | 143 | void cxios_set_fieldgroup_comment(fieldgroup_Ptr fieldgroup_hdl, const char * comment, int comment_size) |
---|
| 144 | { |
---|
| 145 | std::string comment_str; |
---|
| 146 | if (!cstr2string(comment, comment_size, comment_str)) return; |
---|
| 147 | CTimer::get("XIOS").resume(); |
---|
| 148 | fieldgroup_hdl->comment.setValue(comment_str); |
---|
| 149 | CTimer::get("XIOS").suspend(); |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | void cxios_get_fieldgroup_comment(fieldgroup_Ptr fieldgroup_hdl, char * comment, int comment_size) |
---|
| 153 | { |
---|
| 154 | CTimer::get("XIOS").resume(); |
---|
| 155 | if (!string_copy(fieldgroup_hdl->comment.getInheritedValue(), comment, comment_size)) |
---|
| 156 | ERROR("void cxios_get_fieldgroup_comment(fieldgroup_Ptr fieldgroup_hdl, char * comment, int comment_size)", << "Input string is too short"); |
---|
| 157 | CTimer::get("XIOS").suspend(); |
---|
| 158 | } |
---|
| 159 | |
---|
| 160 | bool cxios_is_defined_fieldgroup_comment(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 161 | { |
---|
| 162 | CTimer::get("XIOS").resume(); |
---|
| 163 | bool isDefined = fieldgroup_hdl->comment.hasInheritedValue(); |
---|
| 164 | CTimer::get("XIOS").suspend(); |
---|
| 165 | return isDefined; |
---|
| 166 | } |
---|
| 167 | |
---|
| 168 | |
---|
[608] | 169 | void cxios_set_fieldgroup_compression_level(fieldgroup_Ptr fieldgroup_hdl, int compression_level) |
---|
| 170 | { |
---|
| 171 | CTimer::get("XIOS").resume(); |
---|
| 172 | fieldgroup_hdl->compression_level.setValue(compression_level); |
---|
| 173 | CTimer::get("XIOS").suspend(); |
---|
| 174 | } |
---|
| 175 | |
---|
| 176 | void cxios_get_fieldgroup_compression_level(fieldgroup_Ptr fieldgroup_hdl, int* compression_level) |
---|
| 177 | { |
---|
| 178 | CTimer::get("XIOS").resume(); |
---|
| 179 | *compression_level = fieldgroup_hdl->compression_level.getInheritedValue(); |
---|
| 180 | CTimer::get("XIOS").suspend(); |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | bool cxios_is_defined_fieldgroup_compression_level(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 184 | { |
---|
| 185 | CTimer::get("XIOS").resume(); |
---|
| 186 | bool isDefined = fieldgroup_hdl->compression_level.hasInheritedValue(); |
---|
| 187 | CTimer::get("XIOS").suspend(); |
---|
| 188 | return isDefined; |
---|
| 189 | } |
---|
| 190 | |
---|
| 191 | |
---|
[325] | 192 | void cxios_set_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double default_value) |
---|
| 193 | { |
---|
[581] | 194 | CTimer::get("XIOS").resume(); |
---|
[325] | 195 | fieldgroup_hdl->default_value.setValue(default_value); |
---|
[581] | 196 | CTimer::get("XIOS").suspend(); |
---|
[325] | 197 | } |
---|
[581] | 198 | |
---|
[325] | 199 | void cxios_get_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double* default_value) |
---|
| 200 | { |
---|
[581] | 201 | CTimer::get("XIOS").resume(); |
---|
[445] | 202 | *default_value = fieldgroup_hdl->default_value.getInheritedValue(); |
---|
[581] | 203 | CTimer::get("XIOS").suspend(); |
---|
[325] | 204 | } |
---|
[581] | 205 | |
---|
| 206 | bool cxios_is_defined_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 207 | { |
---|
| 208 | CTimer::get("XIOS").resume(); |
---|
[581] | 209 | bool isDefined = fieldgroup_hdl->default_value.hasInheritedValue(); |
---|
[432] | 210 | CTimer::get("XIOS").suspend(); |
---|
[581] | 211 | return isDefined; |
---|
[432] | 212 | } |
---|
[581] | 213 | |
---|
| 214 | |
---|
[472] | 215 | void cxios_set_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool detect_missing_value) |
---|
| 216 | { |
---|
[581] | 217 | CTimer::get("XIOS").resume(); |
---|
[472] | 218 | fieldgroup_hdl->detect_missing_value.setValue(detect_missing_value); |
---|
[581] | 219 | CTimer::get("XIOS").suspend(); |
---|
[472] | 220 | } |
---|
[581] | 221 | |
---|
[472] | 222 | void cxios_get_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool* detect_missing_value) |
---|
| 223 | { |
---|
[581] | 224 | CTimer::get("XIOS").resume(); |
---|
[472] | 225 | *detect_missing_value = fieldgroup_hdl->detect_missing_value.getInheritedValue(); |
---|
[581] | 226 | CTimer::get("XIOS").suspend(); |
---|
[472] | 227 | } |
---|
[581] | 228 | |
---|
| 229 | bool cxios_is_defined_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl) |
---|
[472] | 230 | { |
---|
| 231 | CTimer::get("XIOS").resume(); |
---|
[581] | 232 | bool isDefined = fieldgroup_hdl->detect_missing_value.hasInheritedValue(); |
---|
[472] | 233 | CTimer::get("XIOS").suspend(); |
---|
[581] | 234 | return isDefined; |
---|
[472] | 235 | } |
---|
[581] | 236 | |
---|
| 237 | |
---|
[325] | 238 | void cxios_set_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 239 | { |
---|
| 240 | std::string domain_ref_str; |
---|
[581] | 241 | if (!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
| 242 | CTimer::get("XIOS").resume(); |
---|
[325] | 243 | fieldgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
[581] | 244 | CTimer::get("XIOS").suspend(); |
---|
[325] | 245 | } |
---|
[581] | 246 | |
---|
[325] | 247 | void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
| 248 | { |
---|
[581] | 249 | CTimer::get("XIOS").resume(); |
---|
| 250 | if (!string_copy(fieldgroup_hdl->domain_ref.getInheritedValue(), domain_ref, domain_ref_size)) |
---|
| 251 | ERROR("void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)", << "Input string is too short"); |
---|
| 252 | CTimer::get("XIOS").suspend(); |
---|
[325] | 253 | } |
---|
[581] | 254 | |
---|
| 255 | bool cxios_is_defined_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 256 | { |
---|
| 257 | CTimer::get("XIOS").resume(); |
---|
[581] | 258 | bool isDefined = fieldgroup_hdl->domain_ref.hasInheritedValue(); |
---|
[432] | 259 | CTimer::get("XIOS").suspend(); |
---|
[581] | 260 | return isDefined; |
---|
[432] | 261 | } |
---|
[581] | 262 | |
---|
| 263 | |
---|
[325] | 264 | void cxios_set_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool enabled) |
---|
| 265 | { |
---|
[581] | 266 | CTimer::get("XIOS").resume(); |
---|
[325] | 267 | fieldgroup_hdl->enabled.setValue(enabled); |
---|
[581] | 268 | CTimer::get("XIOS").suspend(); |
---|
[325] | 269 | } |
---|
[581] | 270 | |
---|
[325] | 271 | void cxios_get_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool* enabled) |
---|
| 272 | { |
---|
[581] | 273 | CTimer::get("XIOS").resume(); |
---|
[445] | 274 | *enabled = fieldgroup_hdl->enabled.getInheritedValue(); |
---|
[581] | 275 | CTimer::get("XIOS").suspend(); |
---|
[325] | 276 | } |
---|
[581] | 277 | |
---|
| 278 | bool cxios_is_defined_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 279 | { |
---|
| 280 | CTimer::get("XIOS").resume(); |
---|
[581] | 281 | bool isDefined = fieldgroup_hdl->enabled.hasInheritedValue(); |
---|
[432] | 282 | CTimer::get("XIOS").suspend(); |
---|
[581] | 283 | return isDefined; |
---|
[432] | 284 | } |
---|
[581] | 285 | |
---|
| 286 | |
---|
[1021] | 287 | void cxios_set_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, const char * expr, int expr_size) |
---|
| 288 | { |
---|
| 289 | std::string expr_str; |
---|
| 290 | if (!cstr2string(expr, expr_size, expr_str)) return; |
---|
| 291 | CTimer::get("XIOS").resume(); |
---|
| 292 | fieldgroup_hdl->expr.setValue(expr_str); |
---|
| 293 | CTimer::get("XIOS").suspend(); |
---|
| 294 | } |
---|
| 295 | |
---|
| 296 | void cxios_get_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, char * expr, int expr_size) |
---|
| 297 | { |
---|
| 298 | CTimer::get("XIOS").resume(); |
---|
| 299 | if (!string_copy(fieldgroup_hdl->expr.getInheritedValue(), expr, expr_size)) |
---|
| 300 | ERROR("void cxios_get_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, char * expr, int expr_size)", << "Input string is too short"); |
---|
| 301 | CTimer::get("XIOS").suspend(); |
---|
| 302 | } |
---|
| 303 | |
---|
| 304 | bool cxios_is_defined_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 305 | { |
---|
| 306 | CTimer::get("XIOS").resume(); |
---|
| 307 | bool isDefined = fieldgroup_hdl->expr.hasInheritedValue(); |
---|
| 308 | CTimer::get("XIOS").suspend(); |
---|
| 309 | return isDefined; |
---|
| 310 | } |
---|
| 311 | |
---|
| 312 | |
---|
[325] | 313 | void cxios_set_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, const char * field_ref, int field_ref_size) |
---|
| 314 | { |
---|
| 315 | std::string field_ref_str; |
---|
[581] | 316 | if (!cstr2string(field_ref, field_ref_size, field_ref_str)) return; |
---|
| 317 | CTimer::get("XIOS").resume(); |
---|
[325] | 318 | fieldgroup_hdl->field_ref.setValue(field_ref_str); |
---|
[581] | 319 | CTimer::get("XIOS").suspend(); |
---|
[325] | 320 | } |
---|
[581] | 321 | |
---|
[325] | 322 | void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size) |
---|
| 323 | { |
---|
[581] | 324 | CTimer::get("XIOS").resume(); |
---|
| 325 | if (!string_copy(fieldgroup_hdl->field_ref.getInheritedValue(), field_ref, field_ref_size)) |
---|
| 326 | ERROR("void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)", << "Input string is too short"); |
---|
| 327 | CTimer::get("XIOS").suspend(); |
---|
[325] | 328 | } |
---|
[581] | 329 | |
---|
| 330 | bool cxios_is_defined_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 331 | { |
---|
| 332 | CTimer::get("XIOS").resume(); |
---|
[581] | 333 | bool isDefined = fieldgroup_hdl->field_ref.hasInheritedValue(); |
---|
[432] | 334 | CTimer::get("XIOS").suspend(); |
---|
[581] | 335 | return isDefined; |
---|
[432] | 336 | } |
---|
[581] | 337 | |
---|
| 338 | |
---|
[538] | 339 | void cxios_set_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, cxios_duration freq_offset_c) |
---|
[325] | 340 | { |
---|
[538] | 341 | CTimer::get("XIOS").resume(); |
---|
| 342 | fieldgroup_hdl->freq_offset.allocate(); |
---|
| 343 | CDuration& freq_offset = fieldgroup_hdl->freq_offset.get(); |
---|
| 344 | freq_offset.year = freq_offset_c.year; |
---|
| 345 | freq_offset.month = freq_offset_c.month; |
---|
| 346 | freq_offset.day = freq_offset_c.day; |
---|
| 347 | freq_offset.hour = freq_offset_c.hour; |
---|
| 348 | freq_offset.minute = freq_offset_c.minute; |
---|
| 349 | freq_offset.second = freq_offset_c.second; |
---|
| 350 | freq_offset.timestep = freq_offset_c.timestep; |
---|
| 351 | CTimer::get("XIOS").suspend(); |
---|
[325] | 352 | } |
---|
[581] | 353 | |
---|
[538] | 354 | void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, cxios_duration* freq_offset_c) |
---|
[325] | 355 | { |
---|
[538] | 356 | CTimer::get("XIOS").resume(); |
---|
| 357 | CDuration freq_offset = fieldgroup_hdl->freq_offset.getInheritedValue(); |
---|
| 358 | freq_offset_c->year = freq_offset.year; |
---|
| 359 | freq_offset_c->month = freq_offset.month; |
---|
| 360 | freq_offset_c->day = freq_offset.day; |
---|
| 361 | freq_offset_c->hour = freq_offset.hour; |
---|
| 362 | freq_offset_c->minute = freq_offset.minute; |
---|
| 363 | freq_offset_c->second = freq_offset.second; |
---|
| 364 | freq_offset_c->timestep = freq_offset.timestep; |
---|
| 365 | CTimer::get("XIOS").suspend(); |
---|
[325] | 366 | } |
---|
[581] | 367 | |
---|
| 368 | bool cxios_is_defined_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 369 | { |
---|
| 370 | CTimer::get("XIOS").resume(); |
---|
[581] | 371 | bool isDefined = fieldgroup_hdl->freq_offset.hasInheritedValue(); |
---|
[432] | 372 | CTimer::get("XIOS").suspend(); |
---|
[581] | 373 | return isDefined; |
---|
[432] | 374 | } |
---|
[581] | 375 | |
---|
| 376 | |
---|
[538] | 377 | void cxios_set_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, cxios_duration freq_op_c) |
---|
[325] | 378 | { |
---|
[538] | 379 | CTimer::get("XIOS").resume(); |
---|
| 380 | fieldgroup_hdl->freq_op.allocate(); |
---|
| 381 | CDuration& freq_op = fieldgroup_hdl->freq_op.get(); |
---|
| 382 | freq_op.year = freq_op_c.year; |
---|
| 383 | freq_op.month = freq_op_c.month; |
---|
| 384 | freq_op.day = freq_op_c.day; |
---|
| 385 | freq_op.hour = freq_op_c.hour; |
---|
| 386 | freq_op.minute = freq_op_c.minute; |
---|
| 387 | freq_op.second = freq_op_c.second; |
---|
| 388 | freq_op.timestep = freq_op_c.timestep; |
---|
| 389 | CTimer::get("XIOS").suspend(); |
---|
[325] | 390 | } |
---|
[581] | 391 | |
---|
[538] | 392 | void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, cxios_duration* freq_op_c) |
---|
[325] | 393 | { |
---|
[538] | 394 | CTimer::get("XIOS").resume(); |
---|
| 395 | CDuration freq_op = fieldgroup_hdl->freq_op.getInheritedValue(); |
---|
| 396 | freq_op_c->year = freq_op.year; |
---|
| 397 | freq_op_c->month = freq_op.month; |
---|
| 398 | freq_op_c->day = freq_op.day; |
---|
| 399 | freq_op_c->hour = freq_op.hour; |
---|
| 400 | freq_op_c->minute = freq_op.minute; |
---|
| 401 | freq_op_c->second = freq_op.second; |
---|
| 402 | freq_op_c->timestep = freq_op.timestep; |
---|
| 403 | CTimer::get("XIOS").suspend(); |
---|
[325] | 404 | } |
---|
[581] | 405 | |
---|
| 406 | bool cxios_is_defined_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 407 | { |
---|
| 408 | CTimer::get("XIOS").resume(); |
---|
[581] | 409 | bool isDefined = fieldgroup_hdl->freq_op.hasInheritedValue(); |
---|
[432] | 410 | CTimer::get("XIOS").suspend(); |
---|
[581] | 411 | return isDefined; |
---|
[432] | 412 | } |
---|
[581] | 413 | |
---|
| 414 | |
---|
[790] | 415 | void cxios_set_fieldgroup_grid_path(fieldgroup_Ptr fieldgroup_hdl, const char * grid_path, int grid_path_size) |
---|
| 416 | { |
---|
| 417 | std::string grid_path_str; |
---|
| 418 | if (!cstr2string(grid_path, grid_path_size, grid_path_str)) return; |
---|
| 419 | CTimer::get("XIOS").resume(); |
---|
| 420 | fieldgroup_hdl->grid_path.setValue(grid_path_str); |
---|
| 421 | CTimer::get("XIOS").suspend(); |
---|
| 422 | } |
---|
| 423 | |
---|
| 424 | void cxios_get_fieldgroup_grid_path(fieldgroup_Ptr fieldgroup_hdl, char * grid_path, int grid_path_size) |
---|
| 425 | { |
---|
| 426 | CTimer::get("XIOS").resume(); |
---|
| 427 | if (!string_copy(fieldgroup_hdl->grid_path.getInheritedValue(), grid_path, grid_path_size)) |
---|
| 428 | ERROR("void cxios_get_fieldgroup_grid_path(fieldgroup_Ptr fieldgroup_hdl, char * grid_path, int grid_path_size)", << "Input string is too short"); |
---|
| 429 | CTimer::get("XIOS").suspend(); |
---|
| 430 | } |
---|
| 431 | |
---|
| 432 | bool cxios_is_defined_fieldgroup_grid_path(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 433 | { |
---|
| 434 | CTimer::get("XIOS").resume(); |
---|
| 435 | bool isDefined = fieldgroup_hdl->grid_path.hasInheritedValue(); |
---|
| 436 | CTimer::get("XIOS").suspend(); |
---|
| 437 | return isDefined; |
---|
| 438 | } |
---|
| 439 | |
---|
| 440 | |
---|
[325] | 441 | void cxios_set_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, const char * grid_ref, int grid_ref_size) |
---|
| 442 | { |
---|
| 443 | std::string grid_ref_str; |
---|
[581] | 444 | if (!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return; |
---|
| 445 | CTimer::get("XIOS").resume(); |
---|
[325] | 446 | fieldgroup_hdl->grid_ref.setValue(grid_ref_str); |
---|
[581] | 447 | CTimer::get("XIOS").suspend(); |
---|
[325] | 448 | } |
---|
[581] | 449 | |
---|
[325] | 450 | void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size) |
---|
| 451 | { |
---|
[581] | 452 | CTimer::get("XIOS").resume(); |
---|
| 453 | if (!string_copy(fieldgroup_hdl->grid_ref.getInheritedValue(), grid_ref, grid_ref_size)) |
---|
| 454 | ERROR("void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)", << "Input string is too short"); |
---|
| 455 | CTimer::get("XIOS").suspend(); |
---|
[325] | 456 | } |
---|
[581] | 457 | |
---|
| 458 | bool cxios_is_defined_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 459 | { |
---|
| 460 | CTimer::get("XIOS").resume(); |
---|
[581] | 461 | bool isDefined = fieldgroup_hdl->grid_ref.hasInheritedValue(); |
---|
[432] | 462 | CTimer::get("XIOS").suspend(); |
---|
[581] | 463 | return isDefined; |
---|
[432] | 464 | } |
---|
[581] | 465 | |
---|
| 466 | |
---|
[325] | 467 | void cxios_set_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 468 | { |
---|
| 469 | std::string group_ref_str; |
---|
[581] | 470 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 471 | CTimer::get("XIOS").resume(); |
---|
[325] | 472 | fieldgroup_hdl->group_ref.setValue(group_ref_str); |
---|
[581] | 473 | CTimer::get("XIOS").suspend(); |
---|
[325] | 474 | } |
---|
[581] | 475 | |
---|
[325] | 476 | void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 477 | { |
---|
[581] | 478 | CTimer::get("XIOS").resume(); |
---|
| 479 | if (!string_copy(fieldgroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
| 480 | ERROR("void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
| 481 | CTimer::get("XIOS").suspend(); |
---|
[325] | 482 | } |
---|
[581] | 483 | |
---|
| 484 | bool cxios_is_defined_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 485 | { |
---|
| 486 | CTimer::get("XIOS").resume(); |
---|
[581] | 487 | bool isDefined = fieldgroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 488 | CTimer::get("XIOS").suspend(); |
---|
[581] | 489 | return isDefined; |
---|
[432] | 490 | } |
---|
[581] | 491 | |
---|
| 492 | |
---|
[676] | 493 | void cxios_set_fieldgroup_indexed_output(fieldgroup_Ptr fieldgroup_hdl, bool indexed_output) |
---|
| 494 | { |
---|
| 495 | CTimer::get("XIOS").resume(); |
---|
| 496 | fieldgroup_hdl->indexed_output.setValue(indexed_output); |
---|
| 497 | CTimer::get("XIOS").suspend(); |
---|
| 498 | } |
---|
| 499 | |
---|
| 500 | void cxios_get_fieldgroup_indexed_output(fieldgroup_Ptr fieldgroup_hdl, bool* indexed_output) |
---|
| 501 | { |
---|
| 502 | CTimer::get("XIOS").resume(); |
---|
| 503 | *indexed_output = fieldgroup_hdl->indexed_output.getInheritedValue(); |
---|
| 504 | CTimer::get("XIOS").suspend(); |
---|
| 505 | } |
---|
| 506 | |
---|
| 507 | bool cxios_is_defined_fieldgroup_indexed_output(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 508 | { |
---|
| 509 | CTimer::get("XIOS").resume(); |
---|
| 510 | bool isDefined = fieldgroup_hdl->indexed_output.hasInheritedValue(); |
---|
| 511 | CTimer::get("XIOS").suspend(); |
---|
| 512 | return isDefined; |
---|
| 513 | } |
---|
| 514 | |
---|
| 515 | |
---|
[325] | 516 | void cxios_set_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int level) |
---|
| 517 | { |
---|
[581] | 518 | CTimer::get("XIOS").resume(); |
---|
[325] | 519 | fieldgroup_hdl->level.setValue(level); |
---|
[581] | 520 | CTimer::get("XIOS").suspend(); |
---|
[325] | 521 | } |
---|
[581] | 522 | |
---|
[325] | 523 | void cxios_get_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int* level) |
---|
| 524 | { |
---|
[581] | 525 | CTimer::get("XIOS").resume(); |
---|
[445] | 526 | *level = fieldgroup_hdl->level.getInheritedValue(); |
---|
[581] | 527 | CTimer::get("XIOS").suspend(); |
---|
[325] | 528 | } |
---|
[581] | 529 | |
---|
| 530 | bool cxios_is_defined_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 531 | { |
---|
| 532 | CTimer::get("XIOS").resume(); |
---|
[581] | 533 | bool isDefined = fieldgroup_hdl->level.hasInheritedValue(); |
---|
[432] | 534 | CTimer::get("XIOS").suspend(); |
---|
[581] | 535 | return isDefined; |
---|
[432] | 536 | } |
---|
[581] | 537 | |
---|
| 538 | |
---|
[325] | 539 | void cxios_set_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, const char * long_name, int long_name_size) |
---|
| 540 | { |
---|
| 541 | std::string long_name_str; |
---|
[581] | 542 | if (!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
| 543 | CTimer::get("XIOS").resume(); |
---|
[325] | 544 | fieldgroup_hdl->long_name.setValue(long_name_str); |
---|
[581] | 545 | CTimer::get("XIOS").suspend(); |
---|
[325] | 546 | } |
---|
[581] | 547 | |
---|
[325] | 548 | void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size) |
---|
| 549 | { |
---|
[581] | 550 | CTimer::get("XIOS").resume(); |
---|
| 551 | if (!string_copy(fieldgroup_hdl->long_name.getInheritedValue(), long_name, long_name_size)) |
---|
| 552 | ERROR("void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)", << "Input string is too short"); |
---|
| 553 | CTimer::get("XIOS").suspend(); |
---|
[325] | 554 | } |
---|
[581] | 555 | |
---|
| 556 | bool cxios_is_defined_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 557 | { |
---|
| 558 | CTimer::get("XIOS").resume(); |
---|
[581] | 559 | bool isDefined = fieldgroup_hdl->long_name.hasInheritedValue(); |
---|
[432] | 560 | CTimer::get("XIOS").suspend(); |
---|
[581] | 561 | return isDefined; |
---|
[432] | 562 | } |
---|
[581] | 563 | |
---|
| 564 | |
---|
[325] | 565 | void cxios_set_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, const char * name, int name_size) |
---|
| 566 | { |
---|
| 567 | std::string name_str; |
---|
[581] | 568 | if (!cstr2string(name, name_size, name_str)) return; |
---|
| 569 | CTimer::get("XIOS").resume(); |
---|
[325] | 570 | fieldgroup_hdl->name.setValue(name_str); |
---|
[581] | 571 | CTimer::get("XIOS").suspend(); |
---|
[325] | 572 | } |
---|
[581] | 573 | |
---|
[325] | 574 | void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size) |
---|
| 575 | { |
---|
[581] | 576 | CTimer::get("XIOS").resume(); |
---|
| 577 | if (!string_copy(fieldgroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 578 | ERROR("void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
| 579 | CTimer::get("XIOS").suspend(); |
---|
[325] | 580 | } |
---|
[581] | 581 | |
---|
| 582 | bool cxios_is_defined_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 583 | { |
---|
| 584 | CTimer::get("XIOS").resume(); |
---|
[581] | 585 | bool isDefined = fieldgroup_hdl->name.hasInheritedValue(); |
---|
[432] | 586 | CTimer::get("XIOS").suspend(); |
---|
[581] | 587 | return isDefined; |
---|
[432] | 588 | } |
---|
[581] | 589 | |
---|
| 590 | |
---|
[325] | 591 | void cxios_set_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, const char * operation, int operation_size) |
---|
| 592 | { |
---|
| 593 | std::string operation_str; |
---|
[581] | 594 | if (!cstr2string(operation, operation_size, operation_str)) return; |
---|
| 595 | CTimer::get("XIOS").resume(); |
---|
[325] | 596 | fieldgroup_hdl->operation.setValue(operation_str); |
---|
[581] | 597 | CTimer::get("XIOS").suspend(); |
---|
[325] | 598 | } |
---|
[581] | 599 | |
---|
[325] | 600 | void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size) |
---|
| 601 | { |
---|
[581] | 602 | CTimer::get("XIOS").resume(); |
---|
| 603 | if (!string_copy(fieldgroup_hdl->operation.getInheritedValue(), operation, operation_size)) |
---|
| 604 | ERROR("void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)", << "Input string is too short"); |
---|
| 605 | CTimer::get("XIOS").suspend(); |
---|
[325] | 606 | } |
---|
[581] | 607 | |
---|
| 608 | bool cxios_is_defined_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 609 | { |
---|
| 610 | CTimer::get("XIOS").resume(); |
---|
[581] | 611 | bool isDefined = fieldgroup_hdl->operation.hasInheritedValue(); |
---|
[432] | 612 | CTimer::get("XIOS").suspend(); |
---|
[581] | 613 | return isDefined; |
---|
[432] | 614 | } |
---|
[581] | 615 | |
---|
| 616 | |
---|
[325] | 617 | void cxios_set_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int prec) |
---|
| 618 | { |
---|
[581] | 619 | CTimer::get("XIOS").resume(); |
---|
[325] | 620 | fieldgroup_hdl->prec.setValue(prec); |
---|
[581] | 621 | CTimer::get("XIOS").suspend(); |
---|
[325] | 622 | } |
---|
[581] | 623 | |
---|
[325] | 624 | void cxios_get_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int* prec) |
---|
| 625 | { |
---|
[581] | 626 | CTimer::get("XIOS").resume(); |
---|
[445] | 627 | *prec = fieldgroup_hdl->prec.getInheritedValue(); |
---|
[581] | 628 | CTimer::get("XIOS").suspend(); |
---|
[325] | 629 | } |
---|
[581] | 630 | |
---|
| 631 | bool cxios_is_defined_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 632 | { |
---|
| 633 | CTimer::get("XIOS").resume(); |
---|
[581] | 634 | bool isDefined = fieldgroup_hdl->prec.hasInheritedValue(); |
---|
[432] | 635 | CTimer::get("XIOS").suspend(); |
---|
[581] | 636 | return isDefined; |
---|
[432] | 637 | } |
---|
[581] | 638 | |
---|
| 639 | |
---|
[593] | 640 | void cxios_set_fieldgroup_read_access(fieldgroup_Ptr fieldgroup_hdl, bool read_access) |
---|
| 641 | { |
---|
| 642 | CTimer::get("XIOS").resume(); |
---|
| 643 | fieldgroup_hdl->read_access.setValue(read_access); |
---|
| 644 | CTimer::get("XIOS").suspend(); |
---|
| 645 | } |
---|
| 646 | |
---|
| 647 | void cxios_get_fieldgroup_read_access(fieldgroup_Ptr fieldgroup_hdl, bool* read_access) |
---|
| 648 | { |
---|
| 649 | CTimer::get("XIOS").resume(); |
---|
| 650 | *read_access = fieldgroup_hdl->read_access.getInheritedValue(); |
---|
| 651 | CTimer::get("XIOS").suspend(); |
---|
| 652 | } |
---|
| 653 | |
---|
| 654 | bool cxios_is_defined_fieldgroup_read_access(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 655 | { |
---|
| 656 | CTimer::get("XIOS").resume(); |
---|
| 657 | bool isDefined = fieldgroup_hdl->read_access.hasInheritedValue(); |
---|
| 658 | CTimer::get("XIOS").suspend(); |
---|
| 659 | return isDefined; |
---|
| 660 | } |
---|
| 661 | |
---|
| 662 | |
---|
[891] | 663 | void cxios_set_fieldgroup_scalar_ref(fieldgroup_Ptr fieldgroup_hdl, const char * scalar_ref, int scalar_ref_size) |
---|
| 664 | { |
---|
| 665 | std::string scalar_ref_str; |
---|
| 666 | if (!cstr2string(scalar_ref, scalar_ref_size, scalar_ref_str)) return; |
---|
| 667 | CTimer::get("XIOS").resume(); |
---|
| 668 | fieldgroup_hdl->scalar_ref.setValue(scalar_ref_str); |
---|
| 669 | CTimer::get("XIOS").suspend(); |
---|
| 670 | } |
---|
| 671 | |
---|
| 672 | void cxios_get_fieldgroup_scalar_ref(fieldgroup_Ptr fieldgroup_hdl, char * scalar_ref, int scalar_ref_size) |
---|
| 673 | { |
---|
| 674 | CTimer::get("XIOS").resume(); |
---|
| 675 | if (!string_copy(fieldgroup_hdl->scalar_ref.getInheritedValue(), scalar_ref, scalar_ref_size)) |
---|
| 676 | ERROR("void cxios_get_fieldgroup_scalar_ref(fieldgroup_Ptr fieldgroup_hdl, char * scalar_ref, int scalar_ref_size)", << "Input string is too short"); |
---|
| 677 | CTimer::get("XIOS").suspend(); |
---|
| 678 | } |
---|
| 679 | |
---|
| 680 | bool cxios_is_defined_fieldgroup_scalar_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 681 | { |
---|
| 682 | CTimer::get("XIOS").resume(); |
---|
| 683 | bool isDefined = fieldgroup_hdl->scalar_ref.hasInheritedValue(); |
---|
| 684 | CTimer::get("XIOS").suspend(); |
---|
| 685 | return isDefined; |
---|
| 686 | } |
---|
| 687 | |
---|
| 688 | |
---|
[464] | 689 | void cxios_set_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double scale_factor) |
---|
| 690 | { |
---|
[581] | 691 | CTimer::get("XIOS").resume(); |
---|
[464] | 692 | fieldgroup_hdl->scale_factor.setValue(scale_factor); |
---|
[581] | 693 | CTimer::get("XIOS").suspend(); |
---|
[464] | 694 | } |
---|
[581] | 695 | |
---|
[464] | 696 | void cxios_get_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double* scale_factor) |
---|
| 697 | { |
---|
[581] | 698 | CTimer::get("XIOS").resume(); |
---|
[464] | 699 | *scale_factor = fieldgroup_hdl->scale_factor.getInheritedValue(); |
---|
[581] | 700 | CTimer::get("XIOS").suspend(); |
---|
[464] | 701 | } |
---|
[581] | 702 | |
---|
| 703 | bool cxios_is_defined_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl) |
---|
[464] | 704 | { |
---|
| 705 | CTimer::get("XIOS").resume(); |
---|
[581] | 706 | bool isDefined = fieldgroup_hdl->scale_factor.hasInheritedValue(); |
---|
[464] | 707 | CTimer::get("XIOS").suspend(); |
---|
[581] | 708 | return isDefined; |
---|
[464] | 709 | } |
---|
[581] | 710 | |
---|
| 711 | |
---|
[325] | 712 | void cxios_set_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, const char * standard_name, int standard_name_size) |
---|
| 713 | { |
---|
| 714 | std::string standard_name_str; |
---|
[581] | 715 | if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
| 716 | CTimer::get("XIOS").resume(); |
---|
[325] | 717 | fieldgroup_hdl->standard_name.setValue(standard_name_str); |
---|
[581] | 718 | CTimer::get("XIOS").suspend(); |
---|
[325] | 719 | } |
---|
[581] | 720 | |
---|
[325] | 721 | void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size) |
---|
| 722 | { |
---|
[581] | 723 | CTimer::get("XIOS").resume(); |
---|
| 724 | if (!string_copy(fieldgroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size)) |
---|
| 725 | ERROR("void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short"); |
---|
| 726 | CTimer::get("XIOS").suspend(); |
---|
[325] | 727 | } |
---|
[581] | 728 | |
---|
| 729 | bool cxios_is_defined_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 730 | { |
---|
| 731 | CTimer::get("XIOS").resume(); |
---|
[581] | 732 | bool isDefined = fieldgroup_hdl->standard_name.hasInheritedValue(); |
---|
[432] | 733 | CTimer::get("XIOS").suspend(); |
---|
[581] | 734 | return isDefined; |
---|
[432] | 735 | } |
---|
[581] | 736 | |
---|
| 737 | |
---|
[711] | 738 | void cxios_set_fieldgroup_ts_enabled(fieldgroup_Ptr fieldgroup_hdl, bool ts_enabled) |
---|
| 739 | { |
---|
| 740 | CTimer::get("XIOS").resume(); |
---|
| 741 | fieldgroup_hdl->ts_enabled.setValue(ts_enabled); |
---|
| 742 | CTimer::get("XIOS").suspend(); |
---|
| 743 | } |
---|
| 744 | |
---|
| 745 | void cxios_get_fieldgroup_ts_enabled(fieldgroup_Ptr fieldgroup_hdl, bool* ts_enabled) |
---|
| 746 | { |
---|
| 747 | CTimer::get("XIOS").resume(); |
---|
| 748 | *ts_enabled = fieldgroup_hdl->ts_enabled.getInheritedValue(); |
---|
| 749 | CTimer::get("XIOS").suspend(); |
---|
| 750 | } |
---|
| 751 | |
---|
| 752 | bool cxios_is_defined_fieldgroup_ts_enabled(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 753 | { |
---|
| 754 | CTimer::get("XIOS").resume(); |
---|
| 755 | bool isDefined = fieldgroup_hdl->ts_enabled.hasInheritedValue(); |
---|
| 756 | CTimer::get("XIOS").suspend(); |
---|
| 757 | return isDefined; |
---|
| 758 | } |
---|
| 759 | |
---|
| 760 | |
---|
| 761 | void cxios_set_fieldgroup_ts_split_freq(fieldgroup_Ptr fieldgroup_hdl, cxios_duration ts_split_freq_c) |
---|
| 762 | { |
---|
| 763 | CTimer::get("XIOS").resume(); |
---|
| 764 | fieldgroup_hdl->ts_split_freq.allocate(); |
---|
| 765 | CDuration& ts_split_freq = fieldgroup_hdl->ts_split_freq.get(); |
---|
| 766 | ts_split_freq.year = ts_split_freq_c.year; |
---|
| 767 | ts_split_freq.month = ts_split_freq_c.month; |
---|
| 768 | ts_split_freq.day = ts_split_freq_c.day; |
---|
| 769 | ts_split_freq.hour = ts_split_freq_c.hour; |
---|
| 770 | ts_split_freq.minute = ts_split_freq_c.minute; |
---|
| 771 | ts_split_freq.second = ts_split_freq_c.second; |
---|
| 772 | ts_split_freq.timestep = ts_split_freq_c.timestep; |
---|
| 773 | CTimer::get("XIOS").suspend(); |
---|
| 774 | } |
---|
| 775 | |
---|
| 776 | void cxios_get_fieldgroup_ts_split_freq(fieldgroup_Ptr fieldgroup_hdl, cxios_duration* ts_split_freq_c) |
---|
| 777 | { |
---|
| 778 | CTimer::get("XIOS").resume(); |
---|
| 779 | CDuration ts_split_freq = fieldgroup_hdl->ts_split_freq.getInheritedValue(); |
---|
| 780 | ts_split_freq_c->year = ts_split_freq.year; |
---|
| 781 | ts_split_freq_c->month = ts_split_freq.month; |
---|
| 782 | ts_split_freq_c->day = ts_split_freq.day; |
---|
| 783 | ts_split_freq_c->hour = ts_split_freq.hour; |
---|
| 784 | ts_split_freq_c->minute = ts_split_freq.minute; |
---|
| 785 | ts_split_freq_c->second = ts_split_freq.second; |
---|
| 786 | ts_split_freq_c->timestep = ts_split_freq.timestep; |
---|
| 787 | CTimer::get("XIOS").suspend(); |
---|
| 788 | } |
---|
| 789 | |
---|
| 790 | bool cxios_is_defined_fieldgroup_ts_split_freq(fieldgroup_Ptr fieldgroup_hdl) |
---|
| 791 | { |
---|
| 792 | CTimer::get("XIOS").resume(); |
---|
| 793 | bool isDefined = fieldgroup_hdl->ts_split_freq.hasInheritedValue(); |
---|
| 794 | CTimer::get("XIOS").suspend(); |
---|
| 795 | return isDefined; |
---|
| 796 | } |
---|
| 797 | |
---|
| 798 | |
---|
[325] | 799 | void cxios_set_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, const char * unit, int unit_size) |
---|
| 800 | { |
---|
| 801 | std::string unit_str; |
---|
[581] | 802 | if (!cstr2string(unit, unit_size, unit_str)) return; |
---|
| 803 | CTimer::get("XIOS").resume(); |
---|
[325] | 804 | fieldgroup_hdl->unit.setValue(unit_str); |
---|
[581] | 805 | CTimer::get("XIOS").suspend(); |
---|
[325] | 806 | } |
---|
[581] | 807 | |
---|
[325] | 808 | void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size) |
---|
| 809 | { |
---|
[581] | 810 | CTimer::get("XIOS").resume(); |
---|
| 811 | if (!string_copy(fieldgroup_hdl->unit.getInheritedValue(), unit, unit_size)) |
---|
| 812 | ERROR("void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)", << "Input string is too short"); |
---|
| 813 | CTimer::get("XIOS").suspend(); |
---|
[325] | 814 | } |
---|
[581] | 815 | |
---|
| 816 | bool cxios_is_defined_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 817 | { |
---|
| 818 | CTimer::get("XIOS").resume(); |
---|
[581] | 819 | bool isDefined = fieldgroup_hdl->unit.hasInheritedValue(); |
---|
[432] | 820 | CTimer::get("XIOS").suspend(); |
---|
[581] | 821 | return isDefined; |
---|
[432] | 822 | } |
---|
[581] | 823 | |
---|
| 824 | |
---|
[463] | 825 | void cxios_set_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double valid_max) |
---|
| 826 | { |
---|
[581] | 827 | CTimer::get("XIOS").resume(); |
---|
[463] | 828 | fieldgroup_hdl->valid_max.setValue(valid_max); |
---|
[581] | 829 | CTimer::get("XIOS").suspend(); |
---|
[463] | 830 | } |
---|
[581] | 831 | |
---|
[463] | 832 | void cxios_get_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double* valid_max) |
---|
| 833 | { |
---|
[581] | 834 | CTimer::get("XIOS").resume(); |
---|
[463] | 835 | *valid_max = fieldgroup_hdl->valid_max.getInheritedValue(); |
---|
[581] | 836 | CTimer::get("XIOS").suspend(); |
---|
[463] | 837 | } |
---|
[581] | 838 | |
---|
| 839 | bool cxios_is_defined_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl) |
---|
[463] | 840 | { |
---|
| 841 | CTimer::get("XIOS").resume(); |
---|
[581] | 842 | bool isDefined = fieldgroup_hdl->valid_max.hasInheritedValue(); |
---|
[463] | 843 | CTimer::get("XIOS").suspend(); |
---|
[581] | 844 | return isDefined; |
---|
[463] | 845 | } |
---|
[581] | 846 | |
---|
| 847 | |
---|
[463] | 848 | void cxios_set_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double valid_min) |
---|
| 849 | { |
---|
[581] | 850 | CTimer::get("XIOS").resume(); |
---|
[463] | 851 | fieldgroup_hdl->valid_min.setValue(valid_min); |
---|
[581] | 852 | CTimer::get("XIOS").suspend(); |
---|
[463] | 853 | } |
---|
[581] | 854 | |
---|
[463] | 855 | void cxios_get_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double* valid_min) |
---|
| 856 | { |
---|
[581] | 857 | CTimer::get("XIOS").resume(); |
---|
[463] | 858 | *valid_min = fieldgroup_hdl->valid_min.getInheritedValue(); |
---|
[581] | 859 | CTimer::get("XIOS").suspend(); |
---|
[463] | 860 | } |
---|
[581] | 861 | |
---|
| 862 | bool cxios_is_defined_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl) |
---|
[463] | 863 | { |
---|
| 864 | CTimer::get("XIOS").resume(); |
---|
[581] | 865 | bool isDefined = fieldgroup_hdl->valid_min.hasInheritedValue(); |
---|
[463] | 866 | CTimer::get("XIOS").suspend(); |
---|
[581] | 867 | return isDefined; |
---|
[463] | 868 | } |
---|
[325] | 869 | } |
---|