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