[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 | |
---|
[325] | 69 | void cxios_set_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double default_value) |
---|
| 70 | { |
---|
[581] | 71 | CTimer::get("XIOS").resume(); |
---|
[325] | 72 | fieldgroup_hdl->default_value.setValue(default_value); |
---|
[581] | 73 | CTimer::get("XIOS").suspend(); |
---|
[325] | 74 | } |
---|
[581] | 75 | |
---|
[325] | 76 | void cxios_get_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double* default_value) |
---|
| 77 | { |
---|
[581] | 78 | CTimer::get("XIOS").resume(); |
---|
[445] | 79 | *default_value = fieldgroup_hdl->default_value.getInheritedValue(); |
---|
[581] | 80 | CTimer::get("XIOS").suspend(); |
---|
[325] | 81 | } |
---|
[581] | 82 | |
---|
| 83 | bool cxios_is_defined_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 84 | { |
---|
| 85 | CTimer::get("XIOS").resume(); |
---|
[581] | 86 | bool isDefined = fieldgroup_hdl->default_value.hasInheritedValue(); |
---|
[432] | 87 | CTimer::get("XIOS").suspend(); |
---|
[581] | 88 | return isDefined; |
---|
[432] | 89 | } |
---|
[581] | 90 | |
---|
| 91 | |
---|
[472] | 92 | void cxios_set_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool detect_missing_value) |
---|
| 93 | { |
---|
[581] | 94 | CTimer::get("XIOS").resume(); |
---|
[472] | 95 | fieldgroup_hdl->detect_missing_value.setValue(detect_missing_value); |
---|
[581] | 96 | CTimer::get("XIOS").suspend(); |
---|
[472] | 97 | } |
---|
[581] | 98 | |
---|
[472] | 99 | void cxios_get_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool* detect_missing_value) |
---|
| 100 | { |
---|
[581] | 101 | CTimer::get("XIOS").resume(); |
---|
[472] | 102 | *detect_missing_value = fieldgroup_hdl->detect_missing_value.getInheritedValue(); |
---|
[581] | 103 | CTimer::get("XIOS").suspend(); |
---|
[472] | 104 | } |
---|
[581] | 105 | |
---|
| 106 | bool cxios_is_defined_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl) |
---|
[472] | 107 | { |
---|
| 108 | CTimer::get("XIOS").resume(); |
---|
[581] | 109 | bool isDefined = fieldgroup_hdl->detect_missing_value.hasInheritedValue(); |
---|
[472] | 110 | CTimer::get("XIOS").suspend(); |
---|
[581] | 111 | return isDefined; |
---|
[472] | 112 | } |
---|
[581] | 113 | |
---|
| 114 | |
---|
[325] | 115 | void cxios_set_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 116 | { |
---|
| 117 | std::string domain_ref_str; |
---|
[581] | 118 | if (!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
| 119 | CTimer::get("XIOS").resume(); |
---|
[325] | 120 | fieldgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
[581] | 121 | CTimer::get("XIOS").suspend(); |
---|
[325] | 122 | } |
---|
[581] | 123 | |
---|
[325] | 124 | void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
| 125 | { |
---|
[581] | 126 | CTimer::get("XIOS").resume(); |
---|
| 127 | if (!string_copy(fieldgroup_hdl->domain_ref.getInheritedValue(), domain_ref, domain_ref_size)) |
---|
| 128 | ERROR("void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)", << "Input string is too short"); |
---|
| 129 | CTimer::get("XIOS").suspend(); |
---|
[325] | 130 | } |
---|
[581] | 131 | |
---|
| 132 | bool cxios_is_defined_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 133 | { |
---|
| 134 | CTimer::get("XIOS").resume(); |
---|
[581] | 135 | bool isDefined = fieldgroup_hdl->domain_ref.hasInheritedValue(); |
---|
[432] | 136 | CTimer::get("XIOS").suspend(); |
---|
[581] | 137 | return isDefined; |
---|
[432] | 138 | } |
---|
[581] | 139 | |
---|
| 140 | |
---|
[325] | 141 | void cxios_set_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool enabled) |
---|
| 142 | { |
---|
[581] | 143 | CTimer::get("XIOS").resume(); |
---|
[325] | 144 | fieldgroup_hdl->enabled.setValue(enabled); |
---|
[581] | 145 | CTimer::get("XIOS").suspend(); |
---|
[325] | 146 | } |
---|
[581] | 147 | |
---|
[325] | 148 | void cxios_get_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool* enabled) |
---|
| 149 | { |
---|
[581] | 150 | CTimer::get("XIOS").resume(); |
---|
[445] | 151 | *enabled = fieldgroup_hdl->enabled.getInheritedValue(); |
---|
[581] | 152 | CTimer::get("XIOS").suspend(); |
---|
[325] | 153 | } |
---|
[581] | 154 | |
---|
| 155 | bool cxios_is_defined_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 156 | { |
---|
| 157 | CTimer::get("XIOS").resume(); |
---|
[581] | 158 | bool isDefined = fieldgroup_hdl->enabled.hasInheritedValue(); |
---|
[432] | 159 | CTimer::get("XIOS").suspend(); |
---|
[581] | 160 | return isDefined; |
---|
[432] | 161 | } |
---|
[581] | 162 | |
---|
| 163 | |
---|
[325] | 164 | void cxios_set_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, const char * field_ref, int field_ref_size) |
---|
| 165 | { |
---|
| 166 | std::string field_ref_str; |
---|
[581] | 167 | if (!cstr2string(field_ref, field_ref_size, field_ref_str)) return; |
---|
| 168 | CTimer::get("XIOS").resume(); |
---|
[325] | 169 | fieldgroup_hdl->field_ref.setValue(field_ref_str); |
---|
[581] | 170 | CTimer::get("XIOS").suspend(); |
---|
[325] | 171 | } |
---|
[581] | 172 | |
---|
[325] | 173 | void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size) |
---|
| 174 | { |
---|
[581] | 175 | CTimer::get("XIOS").resume(); |
---|
| 176 | if (!string_copy(fieldgroup_hdl->field_ref.getInheritedValue(), field_ref, field_ref_size)) |
---|
| 177 | ERROR("void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)", << "Input string is too short"); |
---|
| 178 | CTimer::get("XIOS").suspend(); |
---|
[325] | 179 | } |
---|
[581] | 180 | |
---|
| 181 | bool cxios_is_defined_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 182 | { |
---|
| 183 | CTimer::get("XIOS").resume(); |
---|
[581] | 184 | bool isDefined = fieldgroup_hdl->field_ref.hasInheritedValue(); |
---|
[432] | 185 | CTimer::get("XIOS").suspend(); |
---|
[581] | 186 | return isDefined; |
---|
[432] | 187 | } |
---|
[581] | 188 | |
---|
| 189 | |
---|
[538] | 190 | void cxios_set_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, cxios_duration freq_offset_c) |
---|
[325] | 191 | { |
---|
[538] | 192 | CTimer::get("XIOS").resume(); |
---|
| 193 | fieldgroup_hdl->freq_offset.allocate(); |
---|
| 194 | CDuration& freq_offset = fieldgroup_hdl->freq_offset.get(); |
---|
| 195 | freq_offset.year = freq_offset_c.year; |
---|
| 196 | freq_offset.month = freq_offset_c.month; |
---|
| 197 | freq_offset.day = freq_offset_c.day; |
---|
| 198 | freq_offset.hour = freq_offset_c.hour; |
---|
| 199 | freq_offset.minute = freq_offset_c.minute; |
---|
| 200 | freq_offset.second = freq_offset_c.second; |
---|
| 201 | freq_offset.timestep = freq_offset_c.timestep; |
---|
| 202 | CTimer::get("XIOS").suspend(); |
---|
[325] | 203 | } |
---|
[581] | 204 | |
---|
[538] | 205 | void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, cxios_duration* freq_offset_c) |
---|
[325] | 206 | { |
---|
[538] | 207 | CTimer::get("XIOS").resume(); |
---|
| 208 | CDuration freq_offset = fieldgroup_hdl->freq_offset.getInheritedValue(); |
---|
| 209 | freq_offset_c->year = freq_offset.year; |
---|
| 210 | freq_offset_c->month = freq_offset.month; |
---|
| 211 | freq_offset_c->day = freq_offset.day; |
---|
| 212 | freq_offset_c->hour = freq_offset.hour; |
---|
| 213 | freq_offset_c->minute = freq_offset.minute; |
---|
| 214 | freq_offset_c->second = freq_offset.second; |
---|
| 215 | freq_offset_c->timestep = freq_offset.timestep; |
---|
| 216 | CTimer::get("XIOS").suspend(); |
---|
[325] | 217 | } |
---|
[581] | 218 | |
---|
| 219 | bool cxios_is_defined_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 220 | { |
---|
| 221 | CTimer::get("XIOS").resume(); |
---|
[581] | 222 | bool isDefined = fieldgroup_hdl->freq_offset.hasInheritedValue(); |
---|
[432] | 223 | CTimer::get("XIOS").suspend(); |
---|
[581] | 224 | return isDefined; |
---|
[432] | 225 | } |
---|
[581] | 226 | |
---|
| 227 | |
---|
[538] | 228 | void cxios_set_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, cxios_duration freq_op_c) |
---|
[325] | 229 | { |
---|
[538] | 230 | CTimer::get("XIOS").resume(); |
---|
| 231 | fieldgroup_hdl->freq_op.allocate(); |
---|
| 232 | CDuration& freq_op = fieldgroup_hdl->freq_op.get(); |
---|
| 233 | freq_op.year = freq_op_c.year; |
---|
| 234 | freq_op.month = freq_op_c.month; |
---|
| 235 | freq_op.day = freq_op_c.day; |
---|
| 236 | freq_op.hour = freq_op_c.hour; |
---|
| 237 | freq_op.minute = freq_op_c.minute; |
---|
| 238 | freq_op.second = freq_op_c.second; |
---|
| 239 | freq_op.timestep = freq_op_c.timestep; |
---|
| 240 | CTimer::get("XIOS").suspend(); |
---|
[325] | 241 | } |
---|
[581] | 242 | |
---|
[538] | 243 | void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, cxios_duration* freq_op_c) |
---|
[325] | 244 | { |
---|
[538] | 245 | CTimer::get("XIOS").resume(); |
---|
| 246 | CDuration freq_op = fieldgroup_hdl->freq_op.getInheritedValue(); |
---|
| 247 | freq_op_c->year = freq_op.year; |
---|
| 248 | freq_op_c->month = freq_op.month; |
---|
| 249 | freq_op_c->day = freq_op.day; |
---|
| 250 | freq_op_c->hour = freq_op.hour; |
---|
| 251 | freq_op_c->minute = freq_op.minute; |
---|
| 252 | freq_op_c->second = freq_op.second; |
---|
| 253 | freq_op_c->timestep = freq_op.timestep; |
---|
| 254 | CTimer::get("XIOS").suspend(); |
---|
[325] | 255 | } |
---|
[581] | 256 | |
---|
| 257 | bool cxios_is_defined_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 258 | { |
---|
| 259 | CTimer::get("XIOS").resume(); |
---|
[581] | 260 | bool isDefined = fieldgroup_hdl->freq_op.hasInheritedValue(); |
---|
[432] | 261 | CTimer::get("XIOS").suspend(); |
---|
[581] | 262 | return isDefined; |
---|
[432] | 263 | } |
---|
[581] | 264 | |
---|
| 265 | |
---|
[325] | 266 | void cxios_set_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, const char * grid_ref, int grid_ref_size) |
---|
| 267 | { |
---|
| 268 | std::string grid_ref_str; |
---|
[581] | 269 | if (!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return; |
---|
| 270 | CTimer::get("XIOS").resume(); |
---|
[325] | 271 | fieldgroup_hdl->grid_ref.setValue(grid_ref_str); |
---|
[581] | 272 | CTimer::get("XIOS").suspend(); |
---|
[325] | 273 | } |
---|
[581] | 274 | |
---|
[325] | 275 | void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size) |
---|
| 276 | { |
---|
[581] | 277 | CTimer::get("XIOS").resume(); |
---|
| 278 | if (!string_copy(fieldgroup_hdl->grid_ref.getInheritedValue(), grid_ref, grid_ref_size)) |
---|
| 279 | ERROR("void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)", << "Input string is too short"); |
---|
| 280 | CTimer::get("XIOS").suspend(); |
---|
[325] | 281 | } |
---|
[581] | 282 | |
---|
| 283 | bool cxios_is_defined_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 284 | { |
---|
| 285 | CTimer::get("XIOS").resume(); |
---|
[581] | 286 | bool isDefined = fieldgroup_hdl->grid_ref.hasInheritedValue(); |
---|
[432] | 287 | CTimer::get("XIOS").suspend(); |
---|
[581] | 288 | return isDefined; |
---|
[432] | 289 | } |
---|
[581] | 290 | |
---|
| 291 | |
---|
[325] | 292 | void cxios_set_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 293 | { |
---|
| 294 | std::string group_ref_str; |
---|
[581] | 295 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 296 | CTimer::get("XIOS").resume(); |
---|
[325] | 297 | fieldgroup_hdl->group_ref.setValue(group_ref_str); |
---|
[581] | 298 | CTimer::get("XIOS").suspend(); |
---|
[325] | 299 | } |
---|
[581] | 300 | |
---|
[325] | 301 | void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 302 | { |
---|
[581] | 303 | CTimer::get("XIOS").resume(); |
---|
| 304 | if (!string_copy(fieldgroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
| 305 | ERROR("void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
| 306 | CTimer::get("XIOS").suspend(); |
---|
[325] | 307 | } |
---|
[581] | 308 | |
---|
| 309 | bool cxios_is_defined_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 310 | { |
---|
| 311 | CTimer::get("XIOS").resume(); |
---|
[581] | 312 | bool isDefined = fieldgroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 313 | CTimer::get("XIOS").suspend(); |
---|
[581] | 314 | return isDefined; |
---|
[432] | 315 | } |
---|
[581] | 316 | |
---|
| 317 | |
---|
[325] | 318 | void cxios_set_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int level) |
---|
| 319 | { |
---|
[581] | 320 | CTimer::get("XIOS").resume(); |
---|
[325] | 321 | fieldgroup_hdl->level.setValue(level); |
---|
[581] | 322 | CTimer::get("XIOS").suspend(); |
---|
[325] | 323 | } |
---|
[581] | 324 | |
---|
[325] | 325 | void cxios_get_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int* level) |
---|
| 326 | { |
---|
[581] | 327 | CTimer::get("XIOS").resume(); |
---|
[445] | 328 | *level = fieldgroup_hdl->level.getInheritedValue(); |
---|
[581] | 329 | CTimer::get("XIOS").suspend(); |
---|
[325] | 330 | } |
---|
[581] | 331 | |
---|
| 332 | bool cxios_is_defined_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 333 | { |
---|
| 334 | CTimer::get("XIOS").resume(); |
---|
[581] | 335 | bool isDefined = fieldgroup_hdl->level.hasInheritedValue(); |
---|
[432] | 336 | CTimer::get("XIOS").suspend(); |
---|
[581] | 337 | return isDefined; |
---|
[432] | 338 | } |
---|
[581] | 339 | |
---|
| 340 | |
---|
[325] | 341 | void cxios_set_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, const char * long_name, int long_name_size) |
---|
| 342 | { |
---|
| 343 | std::string long_name_str; |
---|
[581] | 344 | if (!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
| 345 | CTimer::get("XIOS").resume(); |
---|
[325] | 346 | fieldgroup_hdl->long_name.setValue(long_name_str); |
---|
[581] | 347 | CTimer::get("XIOS").suspend(); |
---|
[325] | 348 | } |
---|
[581] | 349 | |
---|
[325] | 350 | void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size) |
---|
| 351 | { |
---|
[581] | 352 | CTimer::get("XIOS").resume(); |
---|
| 353 | if (!string_copy(fieldgroup_hdl->long_name.getInheritedValue(), long_name, long_name_size)) |
---|
| 354 | ERROR("void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)", << "Input string is too short"); |
---|
| 355 | CTimer::get("XIOS").suspend(); |
---|
[325] | 356 | } |
---|
[581] | 357 | |
---|
| 358 | bool cxios_is_defined_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 359 | { |
---|
| 360 | CTimer::get("XIOS").resume(); |
---|
[581] | 361 | bool isDefined = fieldgroup_hdl->long_name.hasInheritedValue(); |
---|
[432] | 362 | CTimer::get("XIOS").suspend(); |
---|
[581] | 363 | return isDefined; |
---|
[432] | 364 | } |
---|
[581] | 365 | |
---|
| 366 | |
---|
[325] | 367 | void cxios_set_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, const char * name, int name_size) |
---|
| 368 | { |
---|
| 369 | std::string name_str; |
---|
[581] | 370 | if (!cstr2string(name, name_size, name_str)) return; |
---|
| 371 | CTimer::get("XIOS").resume(); |
---|
[325] | 372 | fieldgroup_hdl->name.setValue(name_str); |
---|
[581] | 373 | CTimer::get("XIOS").suspend(); |
---|
[325] | 374 | } |
---|
[581] | 375 | |
---|
[325] | 376 | void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size) |
---|
| 377 | { |
---|
[581] | 378 | CTimer::get("XIOS").resume(); |
---|
| 379 | if (!string_copy(fieldgroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 380 | ERROR("void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
| 381 | CTimer::get("XIOS").suspend(); |
---|
[325] | 382 | } |
---|
[581] | 383 | |
---|
| 384 | bool cxios_is_defined_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 385 | { |
---|
| 386 | CTimer::get("XIOS").resume(); |
---|
[581] | 387 | bool isDefined = fieldgroup_hdl->name.hasInheritedValue(); |
---|
[432] | 388 | CTimer::get("XIOS").suspend(); |
---|
[581] | 389 | return isDefined; |
---|
[432] | 390 | } |
---|
[581] | 391 | |
---|
| 392 | |
---|
[325] | 393 | void cxios_set_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, const char * operation, int operation_size) |
---|
| 394 | { |
---|
| 395 | std::string operation_str; |
---|
[581] | 396 | if (!cstr2string(operation, operation_size, operation_str)) return; |
---|
| 397 | CTimer::get("XIOS").resume(); |
---|
[325] | 398 | fieldgroup_hdl->operation.setValue(operation_str); |
---|
[581] | 399 | CTimer::get("XIOS").suspend(); |
---|
[325] | 400 | } |
---|
[581] | 401 | |
---|
[325] | 402 | void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size) |
---|
| 403 | { |
---|
[581] | 404 | CTimer::get("XIOS").resume(); |
---|
| 405 | if (!string_copy(fieldgroup_hdl->operation.getInheritedValue(), operation, operation_size)) |
---|
| 406 | ERROR("void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)", << "Input string is too short"); |
---|
| 407 | CTimer::get("XIOS").suspend(); |
---|
[325] | 408 | } |
---|
[581] | 409 | |
---|
| 410 | bool cxios_is_defined_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 411 | { |
---|
| 412 | CTimer::get("XIOS").resume(); |
---|
[581] | 413 | bool isDefined = fieldgroup_hdl->operation.hasInheritedValue(); |
---|
[432] | 414 | CTimer::get("XIOS").suspend(); |
---|
[581] | 415 | return isDefined; |
---|
[432] | 416 | } |
---|
[581] | 417 | |
---|
| 418 | |
---|
[325] | 419 | void cxios_set_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int prec) |
---|
| 420 | { |
---|
[581] | 421 | CTimer::get("XIOS").resume(); |
---|
[325] | 422 | fieldgroup_hdl->prec.setValue(prec); |
---|
[581] | 423 | CTimer::get("XIOS").suspend(); |
---|
[325] | 424 | } |
---|
[581] | 425 | |
---|
[325] | 426 | void cxios_get_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int* prec) |
---|
| 427 | { |
---|
[581] | 428 | CTimer::get("XIOS").resume(); |
---|
[445] | 429 | *prec = fieldgroup_hdl->prec.getInheritedValue(); |
---|
[581] | 430 | CTimer::get("XIOS").suspend(); |
---|
[325] | 431 | } |
---|
[581] | 432 | |
---|
| 433 | bool cxios_is_defined_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 434 | { |
---|
| 435 | CTimer::get("XIOS").resume(); |
---|
[581] | 436 | bool isDefined = fieldgroup_hdl->prec.hasInheritedValue(); |
---|
[432] | 437 | CTimer::get("XIOS").suspend(); |
---|
[581] | 438 | return isDefined; |
---|
[432] | 439 | } |
---|
[581] | 440 | |
---|
| 441 | |
---|
[464] | 442 | void cxios_set_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double scale_factor) |
---|
| 443 | { |
---|
[581] | 444 | CTimer::get("XIOS").resume(); |
---|
[464] | 445 | fieldgroup_hdl->scale_factor.setValue(scale_factor); |
---|
[581] | 446 | CTimer::get("XIOS").suspend(); |
---|
[464] | 447 | } |
---|
[581] | 448 | |
---|
[464] | 449 | void cxios_get_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double* scale_factor) |
---|
| 450 | { |
---|
[581] | 451 | CTimer::get("XIOS").resume(); |
---|
[464] | 452 | *scale_factor = fieldgroup_hdl->scale_factor.getInheritedValue(); |
---|
[581] | 453 | CTimer::get("XIOS").suspend(); |
---|
[464] | 454 | } |
---|
[581] | 455 | |
---|
| 456 | bool cxios_is_defined_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl) |
---|
[464] | 457 | { |
---|
| 458 | CTimer::get("XIOS").resume(); |
---|
[581] | 459 | bool isDefined = fieldgroup_hdl->scale_factor.hasInheritedValue(); |
---|
[464] | 460 | CTimer::get("XIOS").suspend(); |
---|
[581] | 461 | return isDefined; |
---|
[464] | 462 | } |
---|
[581] | 463 | |
---|
| 464 | |
---|
[325] | 465 | void cxios_set_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, const char * standard_name, int standard_name_size) |
---|
| 466 | { |
---|
| 467 | std::string standard_name_str; |
---|
[581] | 468 | if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
| 469 | CTimer::get("XIOS").resume(); |
---|
[325] | 470 | fieldgroup_hdl->standard_name.setValue(standard_name_str); |
---|
[581] | 471 | CTimer::get("XIOS").suspend(); |
---|
[325] | 472 | } |
---|
[581] | 473 | |
---|
[325] | 474 | void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size) |
---|
| 475 | { |
---|
[581] | 476 | CTimer::get("XIOS").resume(); |
---|
| 477 | if (!string_copy(fieldgroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size)) |
---|
| 478 | ERROR("void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short"); |
---|
| 479 | CTimer::get("XIOS").suspend(); |
---|
[325] | 480 | } |
---|
[581] | 481 | |
---|
| 482 | bool cxios_is_defined_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 483 | { |
---|
| 484 | CTimer::get("XIOS").resume(); |
---|
[581] | 485 | bool isDefined = fieldgroup_hdl->standard_name.hasInheritedValue(); |
---|
[432] | 486 | CTimer::get("XIOS").suspend(); |
---|
[581] | 487 | return isDefined; |
---|
[432] | 488 | } |
---|
[581] | 489 | |
---|
| 490 | |
---|
[325] | 491 | void cxios_set_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, const char * unit, int unit_size) |
---|
| 492 | { |
---|
| 493 | std::string unit_str; |
---|
[581] | 494 | if (!cstr2string(unit, unit_size, unit_str)) return; |
---|
| 495 | CTimer::get("XIOS").resume(); |
---|
[325] | 496 | fieldgroup_hdl->unit.setValue(unit_str); |
---|
[581] | 497 | CTimer::get("XIOS").suspend(); |
---|
[325] | 498 | } |
---|
[581] | 499 | |
---|
[325] | 500 | void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size) |
---|
| 501 | { |
---|
[581] | 502 | CTimer::get("XIOS").resume(); |
---|
| 503 | if (!string_copy(fieldgroup_hdl->unit.getInheritedValue(), unit, unit_size)) |
---|
| 504 | ERROR("void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)", << "Input string is too short"); |
---|
| 505 | CTimer::get("XIOS").suspend(); |
---|
[325] | 506 | } |
---|
[581] | 507 | |
---|
| 508 | bool cxios_is_defined_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl) |
---|
[432] | 509 | { |
---|
| 510 | CTimer::get("XIOS").resume(); |
---|
[581] | 511 | bool isDefined = fieldgroup_hdl->unit.hasInheritedValue(); |
---|
[432] | 512 | CTimer::get("XIOS").suspend(); |
---|
[581] | 513 | return isDefined; |
---|
[432] | 514 | } |
---|
[581] | 515 | |
---|
| 516 | |
---|
[463] | 517 | void cxios_set_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double valid_max) |
---|
| 518 | { |
---|
[581] | 519 | CTimer::get("XIOS").resume(); |
---|
[463] | 520 | fieldgroup_hdl->valid_max.setValue(valid_max); |
---|
[581] | 521 | CTimer::get("XIOS").suspend(); |
---|
[463] | 522 | } |
---|
[581] | 523 | |
---|
[463] | 524 | void cxios_get_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double* valid_max) |
---|
| 525 | { |
---|
[581] | 526 | CTimer::get("XIOS").resume(); |
---|
[463] | 527 | *valid_max = fieldgroup_hdl->valid_max.getInheritedValue(); |
---|
[581] | 528 | CTimer::get("XIOS").suspend(); |
---|
[463] | 529 | } |
---|
[581] | 530 | |
---|
| 531 | bool cxios_is_defined_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl) |
---|
[463] | 532 | { |
---|
| 533 | CTimer::get("XIOS").resume(); |
---|
[581] | 534 | bool isDefined = fieldgroup_hdl->valid_max.hasInheritedValue(); |
---|
[463] | 535 | CTimer::get("XIOS").suspend(); |
---|
[581] | 536 | return isDefined; |
---|
[463] | 537 | } |
---|
[581] | 538 | |
---|
| 539 | |
---|
[463] | 540 | void cxios_set_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double valid_min) |
---|
| 541 | { |
---|
[581] | 542 | CTimer::get("XIOS").resume(); |
---|
[463] | 543 | fieldgroup_hdl->valid_min.setValue(valid_min); |
---|
[581] | 544 | CTimer::get("XIOS").suspend(); |
---|
[463] | 545 | } |
---|
[581] | 546 | |
---|
[463] | 547 | void cxios_get_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double* valid_min) |
---|
| 548 | { |
---|
[581] | 549 | CTimer::get("XIOS").resume(); |
---|
[463] | 550 | *valid_min = fieldgroup_hdl->valid_min.getInheritedValue(); |
---|
[581] | 551 | CTimer::get("XIOS").suspend(); |
---|
[463] | 552 | } |
---|
[581] | 553 | |
---|
| 554 | bool cxios_is_defined_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl) |
---|
[463] | 555 | { |
---|
| 556 | CTimer::get("XIOS").resume(); |
---|
[581] | 557 | bool isDefined = fieldgroup_hdl->valid_min.hasInheritedValue(); |
---|
[463] | 558 | CTimer::get("XIOS").suspend(); |
---|
[581] | 559 | return isDefined; |
---|
[463] | 560 | } |
---|
[325] | 561 | } |
---|