[325] | 1 | /* ************************************************************************** * |
---|
[581] | 2 | * Interface auto generated - do not modify * |
---|
[325] | 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
[1545] | 6 | #include <memory> |
---|
[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::CFile* file_Ptr; |
---|
| 19 | |
---|
[528] | 20 | void cxios_set_file_append(file_Ptr file_hdl, bool append) |
---|
| 21 | { |
---|
[581] | 22 | CTimer::get("XIOS").resume(); |
---|
[528] | 23 | file_hdl->append.setValue(append); |
---|
[581] | 24 | CTimer::get("XIOS").suspend(); |
---|
[528] | 25 | } |
---|
[581] | 26 | |
---|
[528] | 27 | void cxios_get_file_append(file_Ptr file_hdl, bool* append) |
---|
| 28 | { |
---|
[581] | 29 | CTimer::get("XIOS").resume(); |
---|
[528] | 30 | *append = file_hdl->append.getInheritedValue(); |
---|
[581] | 31 | CTimer::get("XIOS").suspend(); |
---|
[528] | 32 | } |
---|
[581] | 33 | |
---|
| 34 | bool cxios_is_defined_file_append(file_Ptr file_hdl) |
---|
[528] | 35 | { |
---|
| 36 | CTimer::get("XIOS").resume(); |
---|
[581] | 37 | bool isDefined = file_hdl->append.hasInheritedValue(); |
---|
[528] | 38 | CTimer::get("XIOS").suspend(); |
---|
[581] | 39 | return isDefined; |
---|
[528] | 40 | } |
---|
[581] | 41 | |
---|
| 42 | |
---|
[1545] | 43 | void cxios_set_file_comment(file_Ptr file_hdl, const char * comment, int comment_size) |
---|
| 44 | { |
---|
| 45 | std::string comment_str; |
---|
| 46 | if (!cstr2string(comment, comment_size, comment_str)) return; |
---|
| 47 | CTimer::get("XIOS").resume(); |
---|
| 48 | file_hdl->comment.setValue(comment_str); |
---|
| 49 | CTimer::get("XIOS").suspend(); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | void cxios_get_file_comment(file_Ptr file_hdl, char * comment, int comment_size) |
---|
| 53 | { |
---|
| 54 | CTimer::get("XIOS").resume(); |
---|
| 55 | if (!string_copy(file_hdl->comment.getInheritedValue(), comment, comment_size)) |
---|
| 56 | ERROR("void cxios_get_file_comment(file_Ptr file_hdl, char * comment, int comment_size)", << "Input string is too short"); |
---|
| 57 | CTimer::get("XIOS").suspend(); |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | bool cxios_is_defined_file_comment(file_Ptr file_hdl) |
---|
| 61 | { |
---|
| 62 | CTimer::get("XIOS").resume(); |
---|
| 63 | bool isDefined = file_hdl->comment.hasInheritedValue(); |
---|
| 64 | CTimer::get("XIOS").suspend(); |
---|
| 65 | return isDefined; |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | |
---|
[608] | 69 | void cxios_set_file_compression_level(file_Ptr file_hdl, int compression_level) |
---|
| 70 | { |
---|
| 71 | CTimer::get("XIOS").resume(); |
---|
| 72 | file_hdl->compression_level.setValue(compression_level); |
---|
| 73 | CTimer::get("XIOS").suspend(); |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | void cxios_get_file_compression_level(file_Ptr file_hdl, int* compression_level) |
---|
| 77 | { |
---|
| 78 | CTimer::get("XIOS").resume(); |
---|
| 79 | *compression_level = file_hdl->compression_level.getInheritedValue(); |
---|
| 80 | CTimer::get("XIOS").suspend(); |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | bool cxios_is_defined_file_compression_level(file_Ptr file_hdl) |
---|
| 84 | { |
---|
| 85 | CTimer::get("XIOS").resume(); |
---|
| 86 | bool isDefined = file_hdl->compression_level.hasInheritedValue(); |
---|
| 87 | CTimer::get("XIOS").suspend(); |
---|
| 88 | return isDefined; |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | |
---|
[932] | 92 | void cxios_set_file_convention(file_Ptr file_hdl, const char * convention, int convention_size) |
---|
| 93 | { |
---|
| 94 | std::string convention_str; |
---|
| 95 | if (!cstr2string(convention, convention_size, convention_str)) return; |
---|
| 96 | CTimer::get("XIOS").resume(); |
---|
| 97 | file_hdl->convention.fromString(convention_str); |
---|
| 98 | CTimer::get("XIOS").suspend(); |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | void cxios_get_file_convention(file_Ptr file_hdl, char * convention, int convention_size) |
---|
| 102 | { |
---|
| 103 | CTimer::get("XIOS").resume(); |
---|
| 104 | if (!string_copy(file_hdl->convention.getInheritedStringValue(), convention, convention_size)) |
---|
| 105 | ERROR("void cxios_get_file_convention(file_Ptr file_hdl, char * convention, int convention_size)", << "Input string is too short"); |
---|
| 106 | CTimer::get("XIOS").suspend(); |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | bool cxios_is_defined_file_convention(file_Ptr file_hdl) |
---|
| 110 | { |
---|
| 111 | CTimer::get("XIOS").resume(); |
---|
| 112 | bool isDefined = file_hdl->convention.hasInheritedValue(); |
---|
| 113 | CTimer::get("XIOS").suspend(); |
---|
| 114 | return isDefined; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | |
---|
[1205] | 118 | void cxios_set_file_convention_str(file_Ptr file_hdl, const char * convention_str, int convention_str_size) |
---|
| 119 | { |
---|
| 120 | std::string convention_str_str; |
---|
| 121 | if (!cstr2string(convention_str, convention_str_size, convention_str_str)) return; |
---|
| 122 | CTimer::get("XIOS").resume(); |
---|
| 123 | file_hdl->convention_str.setValue(convention_str_str); |
---|
| 124 | CTimer::get("XIOS").suspend(); |
---|
| 125 | } |
---|
| 126 | |
---|
| 127 | void cxios_get_file_convention_str(file_Ptr file_hdl, char * convention_str, int convention_str_size) |
---|
| 128 | { |
---|
| 129 | CTimer::get("XIOS").resume(); |
---|
| 130 | if (!string_copy(file_hdl->convention_str.getInheritedValue(), convention_str, convention_str_size)) |
---|
| 131 | ERROR("void cxios_get_file_convention_str(file_Ptr file_hdl, char * convention_str, int convention_str_size)", << "Input string is too short"); |
---|
| 132 | CTimer::get("XIOS").suspend(); |
---|
| 133 | } |
---|
| 134 | |
---|
| 135 | bool cxios_is_defined_file_convention_str(file_Ptr file_hdl) |
---|
| 136 | { |
---|
| 137 | CTimer::get("XIOS").resume(); |
---|
| 138 | bool isDefined = file_hdl->convention_str.hasInheritedValue(); |
---|
| 139 | CTimer::get("XIOS").suspend(); |
---|
| 140 | return isDefined; |
---|
| 141 | } |
---|
| 142 | |
---|
| 143 | |
---|
[891] | 144 | void cxios_set_file_cyclic(file_Ptr file_hdl, bool cyclic) |
---|
| 145 | { |
---|
| 146 | CTimer::get("XIOS").resume(); |
---|
| 147 | file_hdl->cyclic.setValue(cyclic); |
---|
| 148 | CTimer::get("XIOS").suspend(); |
---|
| 149 | } |
---|
| 150 | |
---|
| 151 | void cxios_get_file_cyclic(file_Ptr file_hdl, bool* cyclic) |
---|
| 152 | { |
---|
| 153 | CTimer::get("XIOS").resume(); |
---|
| 154 | *cyclic = file_hdl->cyclic.getInheritedValue(); |
---|
| 155 | CTimer::get("XIOS").suspend(); |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | bool cxios_is_defined_file_cyclic(file_Ptr file_hdl) |
---|
| 159 | { |
---|
| 160 | CTimer::get("XIOS").resume(); |
---|
| 161 | bool isDefined = file_hdl->cyclic.hasInheritedValue(); |
---|
| 162 | CTimer::get("XIOS").suspend(); |
---|
| 163 | return isDefined; |
---|
| 164 | } |
---|
| 165 | |
---|
| 166 | |
---|
[325] | 167 | void cxios_set_file_description(file_Ptr file_hdl, const char * description, int description_size) |
---|
| 168 | { |
---|
| 169 | std::string description_str; |
---|
[581] | 170 | if (!cstr2string(description, description_size, description_str)) return; |
---|
| 171 | CTimer::get("XIOS").resume(); |
---|
[325] | 172 | file_hdl->description.setValue(description_str); |
---|
[581] | 173 | CTimer::get("XIOS").suspend(); |
---|
[325] | 174 | } |
---|
[581] | 175 | |
---|
[325] | 176 | void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size) |
---|
| 177 | { |
---|
[581] | 178 | CTimer::get("XIOS").resume(); |
---|
| 179 | if (!string_copy(file_hdl->description.getInheritedValue(), description, description_size)) |
---|
| 180 | ERROR("void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size)", << "Input string is too short"); |
---|
| 181 | CTimer::get("XIOS").suspend(); |
---|
[325] | 182 | } |
---|
[581] | 183 | |
---|
| 184 | bool cxios_is_defined_file_description(file_Ptr file_hdl) |
---|
[432] | 185 | { |
---|
| 186 | CTimer::get("XIOS").resume(); |
---|
[581] | 187 | bool isDefined = file_hdl->description.hasInheritedValue(); |
---|
[432] | 188 | CTimer::get("XIOS").suspend(); |
---|
[581] | 189 | return isDefined; |
---|
[432] | 190 | } |
---|
[581] | 191 | |
---|
| 192 | |
---|
[325] | 193 | void cxios_set_file_enabled(file_Ptr file_hdl, bool enabled) |
---|
| 194 | { |
---|
[581] | 195 | CTimer::get("XIOS").resume(); |
---|
[325] | 196 | file_hdl->enabled.setValue(enabled); |
---|
[581] | 197 | CTimer::get("XIOS").suspend(); |
---|
[325] | 198 | } |
---|
[581] | 199 | |
---|
[325] | 200 | void cxios_get_file_enabled(file_Ptr file_hdl, bool* enabled) |
---|
| 201 | { |
---|
[581] | 202 | CTimer::get("XIOS").resume(); |
---|
[445] | 203 | *enabled = file_hdl->enabled.getInheritedValue(); |
---|
[581] | 204 | CTimer::get("XIOS").suspend(); |
---|
[325] | 205 | } |
---|
[581] | 206 | |
---|
| 207 | bool cxios_is_defined_file_enabled(file_Ptr file_hdl) |
---|
[432] | 208 | { |
---|
| 209 | CTimer::get("XIOS").resume(); |
---|
[581] | 210 | bool isDefined = file_hdl->enabled.hasInheritedValue(); |
---|
[432] | 211 | CTimer::get("XIOS").suspend(); |
---|
[581] | 212 | return isDefined; |
---|
[432] | 213 | } |
---|
[581] | 214 | |
---|
| 215 | |
---|
[517] | 216 | void cxios_set_file_format(file_Ptr file_hdl, const char * format, int format_size) |
---|
| 217 | { |
---|
| 218 | std::string format_str; |
---|
[581] | 219 | if (!cstr2string(format, format_size, format_str)) return; |
---|
| 220 | CTimer::get("XIOS").resume(); |
---|
[517] | 221 | file_hdl->format.fromString(format_str); |
---|
[581] | 222 | CTimer::get("XIOS").suspend(); |
---|
[517] | 223 | } |
---|
[581] | 224 | |
---|
[517] | 225 | void cxios_get_file_format(file_Ptr file_hdl, char * format, int format_size) |
---|
| 226 | { |
---|
[581] | 227 | CTimer::get("XIOS").resume(); |
---|
| 228 | if (!string_copy(file_hdl->format.getInheritedStringValue(), format, format_size)) |
---|
| 229 | ERROR("void cxios_get_file_format(file_Ptr file_hdl, char * format, int format_size)", << "Input string is too short"); |
---|
| 230 | CTimer::get("XIOS").suspend(); |
---|
[517] | 231 | } |
---|
[581] | 232 | |
---|
| 233 | bool cxios_is_defined_file_format(file_Ptr file_hdl) |
---|
[517] | 234 | { |
---|
| 235 | CTimer::get("XIOS").resume(); |
---|
[581] | 236 | bool isDefined = file_hdl->format.hasInheritedValue(); |
---|
[517] | 237 | CTimer::get("XIOS").suspend(); |
---|
[581] | 238 | return isDefined; |
---|
[517] | 239 | } |
---|
[581] | 240 | |
---|
| 241 | |
---|
[415] | 242 | void cxios_set_file_min_digits(file_Ptr file_hdl, int min_digits) |
---|
| 243 | { |
---|
[581] | 244 | CTimer::get("XIOS").resume(); |
---|
[415] | 245 | file_hdl->min_digits.setValue(min_digits); |
---|
[581] | 246 | CTimer::get("XIOS").suspend(); |
---|
[415] | 247 | } |
---|
[581] | 248 | |
---|
[415] | 249 | void cxios_get_file_min_digits(file_Ptr file_hdl, int* min_digits) |
---|
| 250 | { |
---|
[581] | 251 | CTimer::get("XIOS").resume(); |
---|
[445] | 252 | *min_digits = file_hdl->min_digits.getInheritedValue(); |
---|
[581] | 253 | CTimer::get("XIOS").suspend(); |
---|
[415] | 254 | } |
---|
[581] | 255 | |
---|
| 256 | bool cxios_is_defined_file_min_digits(file_Ptr file_hdl) |
---|
[432] | 257 | { |
---|
| 258 | CTimer::get("XIOS").resume(); |
---|
[581] | 259 | bool isDefined = file_hdl->min_digits.hasInheritedValue(); |
---|
[432] | 260 | CTimer::get("XIOS").suspend(); |
---|
[581] | 261 | return isDefined; |
---|
[432] | 262 | } |
---|
[581] | 263 | |
---|
| 264 | |
---|
[598] | 265 | void cxios_set_file_mode(file_Ptr file_hdl, const char * mode, int mode_size) |
---|
| 266 | { |
---|
| 267 | std::string mode_str; |
---|
| 268 | if (!cstr2string(mode, mode_size, mode_str)) return; |
---|
| 269 | CTimer::get("XIOS").resume(); |
---|
| 270 | file_hdl->mode.fromString(mode_str); |
---|
| 271 | CTimer::get("XIOS").suspend(); |
---|
| 272 | } |
---|
| 273 | |
---|
| 274 | void cxios_get_file_mode(file_Ptr file_hdl, char * mode, int mode_size) |
---|
| 275 | { |
---|
| 276 | CTimer::get("XIOS").resume(); |
---|
| 277 | if (!string_copy(file_hdl->mode.getInheritedStringValue(), mode, mode_size)) |
---|
| 278 | ERROR("void cxios_get_file_mode(file_Ptr file_hdl, char * mode, int mode_size)", << "Input string is too short"); |
---|
| 279 | CTimer::get("XIOS").suspend(); |
---|
| 280 | } |
---|
| 281 | |
---|
| 282 | bool cxios_is_defined_file_mode(file_Ptr file_hdl) |
---|
| 283 | { |
---|
| 284 | CTimer::get("XIOS").resume(); |
---|
| 285 | bool isDefined = file_hdl->mode.hasInheritedValue(); |
---|
| 286 | CTimer::get("XIOS").suspend(); |
---|
| 287 | return isDefined; |
---|
| 288 | } |
---|
| 289 | |
---|
| 290 | |
---|
[325] | 291 | void cxios_set_file_name(file_Ptr file_hdl, const char * name, int name_size) |
---|
| 292 | { |
---|
| 293 | std::string name_str; |
---|
[581] | 294 | if (!cstr2string(name, name_size, name_str)) return; |
---|
| 295 | CTimer::get("XIOS").resume(); |
---|
[325] | 296 | file_hdl->name.setValue(name_str); |
---|
[581] | 297 | CTimer::get("XIOS").suspend(); |
---|
[325] | 298 | } |
---|
[581] | 299 | |
---|
[325] | 300 | void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size) |
---|
| 301 | { |
---|
[581] | 302 | CTimer::get("XIOS").resume(); |
---|
| 303 | if (!string_copy(file_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 304 | ERROR("void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
| 305 | CTimer::get("XIOS").suspend(); |
---|
[325] | 306 | } |
---|
[581] | 307 | |
---|
| 308 | bool cxios_is_defined_file_name(file_Ptr file_hdl) |
---|
[432] | 309 | { |
---|
| 310 | CTimer::get("XIOS").resume(); |
---|
[581] | 311 | bool isDefined = file_hdl->name.hasInheritedValue(); |
---|
[432] | 312 | CTimer::get("XIOS").suspend(); |
---|
[581] | 313 | return isDefined; |
---|
[432] | 314 | } |
---|
[581] | 315 | |
---|
| 316 | |
---|
[325] | 317 | void cxios_set_file_name_suffix(file_Ptr file_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 318 | { |
---|
| 319 | std::string name_suffix_str; |
---|
[581] | 320 | if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
| 321 | CTimer::get("XIOS").resume(); |
---|
[325] | 322 | file_hdl->name_suffix.setValue(name_suffix_str); |
---|
[581] | 323 | CTimer::get("XIOS").suspend(); |
---|
[325] | 324 | } |
---|
[581] | 325 | |
---|
[325] | 326 | void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size) |
---|
| 327 | { |
---|
[581] | 328 | CTimer::get("XIOS").resume(); |
---|
| 329 | if (!string_copy(file_hdl->name_suffix.getInheritedValue(), name_suffix, name_suffix_size)) |
---|
| 330 | ERROR("void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size)", << "Input string is too short"); |
---|
| 331 | CTimer::get("XIOS").suspend(); |
---|
[325] | 332 | } |
---|
[581] | 333 | |
---|
| 334 | bool cxios_is_defined_file_name_suffix(file_Ptr file_hdl) |
---|
[432] | 335 | { |
---|
| 336 | CTimer::get("XIOS").resume(); |
---|
[581] | 337 | bool isDefined = file_hdl->name_suffix.hasInheritedValue(); |
---|
[432] | 338 | CTimer::get("XIOS").suspend(); |
---|
[581] | 339 | return isDefined; |
---|
[432] | 340 | } |
---|
[581] | 341 | |
---|
| 342 | |
---|
[538] | 343 | void cxios_set_file_output_freq(file_Ptr file_hdl, cxios_duration output_freq_c) |
---|
[325] | 344 | { |
---|
[538] | 345 | CTimer::get("XIOS").resume(); |
---|
| 346 | file_hdl->output_freq.allocate(); |
---|
| 347 | CDuration& output_freq = file_hdl->output_freq.get(); |
---|
| 348 | output_freq.year = output_freq_c.year; |
---|
| 349 | output_freq.month = output_freq_c.month; |
---|
| 350 | output_freq.day = output_freq_c.day; |
---|
| 351 | output_freq.hour = output_freq_c.hour; |
---|
| 352 | output_freq.minute = output_freq_c.minute; |
---|
| 353 | output_freq.second = output_freq_c.second; |
---|
| 354 | output_freq.timestep = output_freq_c.timestep; |
---|
| 355 | CTimer::get("XIOS").suspend(); |
---|
[325] | 356 | } |
---|
[581] | 357 | |
---|
[538] | 358 | void cxios_get_file_output_freq(file_Ptr file_hdl, cxios_duration* output_freq_c) |
---|
[325] | 359 | { |
---|
[538] | 360 | CTimer::get("XIOS").resume(); |
---|
| 361 | CDuration output_freq = file_hdl->output_freq.getInheritedValue(); |
---|
| 362 | output_freq_c->year = output_freq.year; |
---|
| 363 | output_freq_c->month = output_freq.month; |
---|
| 364 | output_freq_c->day = output_freq.day; |
---|
| 365 | output_freq_c->hour = output_freq.hour; |
---|
| 366 | output_freq_c->minute = output_freq.minute; |
---|
| 367 | output_freq_c->second = output_freq.second; |
---|
| 368 | output_freq_c->timestep = output_freq.timestep; |
---|
| 369 | CTimer::get("XIOS").suspend(); |
---|
[325] | 370 | } |
---|
[581] | 371 | |
---|
| 372 | bool cxios_is_defined_file_output_freq(file_Ptr file_hdl) |
---|
[432] | 373 | { |
---|
| 374 | CTimer::get("XIOS").resume(); |
---|
[581] | 375 | bool isDefined = file_hdl->output_freq.hasInheritedValue(); |
---|
[432] | 376 | CTimer::get("XIOS").suspend(); |
---|
[581] | 377 | return isDefined; |
---|
[432] | 378 | } |
---|
[581] | 379 | |
---|
| 380 | |
---|
[325] | 381 | void cxios_set_file_output_level(file_Ptr file_hdl, int output_level) |
---|
| 382 | { |
---|
[581] | 383 | CTimer::get("XIOS").resume(); |
---|
[325] | 384 | file_hdl->output_level.setValue(output_level); |
---|
[581] | 385 | CTimer::get("XIOS").suspend(); |
---|
[325] | 386 | } |
---|
[581] | 387 | |
---|
[325] | 388 | void cxios_get_file_output_level(file_Ptr file_hdl, int* output_level) |
---|
| 389 | { |
---|
[581] | 390 | CTimer::get("XIOS").resume(); |
---|
[445] | 391 | *output_level = file_hdl->output_level.getInheritedValue(); |
---|
[581] | 392 | CTimer::get("XIOS").suspend(); |
---|
[325] | 393 | } |
---|
[581] | 394 | |
---|
| 395 | bool cxios_is_defined_file_output_level(file_Ptr file_hdl) |
---|
[432] | 396 | { |
---|
| 397 | CTimer::get("XIOS").resume(); |
---|
[581] | 398 | bool isDefined = file_hdl->output_level.hasInheritedValue(); |
---|
[432] | 399 | CTimer::get("XIOS").suspend(); |
---|
[581] | 400 | return isDefined; |
---|
[432] | 401 | } |
---|
[581] | 402 | |
---|
| 403 | |
---|
[336] | 404 | void cxios_set_file_par_access(file_Ptr file_hdl, const char * par_access, int par_access_size) |
---|
| 405 | { |
---|
| 406 | std::string par_access_str; |
---|
[581] | 407 | if (!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
| 408 | CTimer::get("XIOS").resume(); |
---|
[526] | 409 | file_hdl->par_access.fromString(par_access_str); |
---|
[581] | 410 | CTimer::get("XIOS").suspend(); |
---|
[336] | 411 | } |
---|
[581] | 412 | |
---|
[336] | 413 | void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size) |
---|
| 414 | { |
---|
[581] | 415 | CTimer::get("XIOS").resume(); |
---|
| 416 | if (!string_copy(file_hdl->par_access.getInheritedStringValue(), par_access, par_access_size)) |
---|
| 417 | ERROR("void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size)", << "Input string is too short"); |
---|
| 418 | CTimer::get("XIOS").suspend(); |
---|
[336] | 419 | } |
---|
[581] | 420 | |
---|
| 421 | bool cxios_is_defined_file_par_access(file_Ptr file_hdl) |
---|
[432] | 422 | { |
---|
| 423 | CTimer::get("XIOS").resume(); |
---|
[581] | 424 | bool isDefined = file_hdl->par_access.hasInheritedValue(); |
---|
[432] | 425 | CTimer::get("XIOS").suspend(); |
---|
[581] | 426 | return isDefined; |
---|
[432] | 427 | } |
---|
[581] | 428 | |
---|
| 429 | |
---|
[1545] | 430 | void cxios_set_file_read_metadata_par(file_Ptr file_hdl, bool read_metadata_par) |
---|
| 431 | { |
---|
| 432 | CTimer::get("XIOS").resume(); |
---|
| 433 | file_hdl->read_metadata_par.setValue(read_metadata_par); |
---|
| 434 | CTimer::get("XIOS").suspend(); |
---|
| 435 | } |
---|
| 436 | |
---|
| 437 | void cxios_get_file_read_metadata_par(file_Ptr file_hdl, bool* read_metadata_par) |
---|
| 438 | { |
---|
| 439 | CTimer::get("XIOS").resume(); |
---|
| 440 | *read_metadata_par = file_hdl->read_metadata_par.getInheritedValue(); |
---|
| 441 | CTimer::get("XIOS").suspend(); |
---|
| 442 | } |
---|
| 443 | |
---|
| 444 | bool cxios_is_defined_file_read_metadata_par(file_Ptr file_hdl) |
---|
| 445 | { |
---|
| 446 | CTimer::get("XIOS").resume(); |
---|
| 447 | bool isDefined = file_hdl->read_metadata_par.hasInheritedValue(); |
---|
| 448 | CTimer::get("XIOS").suspend(); |
---|
| 449 | return isDefined; |
---|
| 450 | } |
---|
| 451 | |
---|
| 452 | |
---|
[779] | 453 | void cxios_set_file_record_offset(file_Ptr file_hdl, int record_offset) |
---|
| 454 | { |
---|
| 455 | CTimer::get("XIOS").resume(); |
---|
| 456 | file_hdl->record_offset.setValue(record_offset); |
---|
| 457 | CTimer::get("XIOS").suspend(); |
---|
| 458 | } |
---|
| 459 | |
---|
| 460 | void cxios_get_file_record_offset(file_Ptr file_hdl, int* record_offset) |
---|
| 461 | { |
---|
| 462 | CTimer::get("XIOS").resume(); |
---|
| 463 | *record_offset = file_hdl->record_offset.getInheritedValue(); |
---|
| 464 | CTimer::get("XIOS").suspend(); |
---|
| 465 | } |
---|
| 466 | |
---|
| 467 | bool cxios_is_defined_file_record_offset(file_Ptr file_hdl) |
---|
| 468 | { |
---|
| 469 | CTimer::get("XIOS").resume(); |
---|
| 470 | bool isDefined = file_hdl->record_offset.hasInheritedValue(); |
---|
| 471 | CTimer::get("XIOS").suspend(); |
---|
| 472 | return isDefined; |
---|
| 473 | } |
---|
| 474 | |
---|
| 475 | |
---|
[1545] | 476 | void cxios_set_file_split_end_offset(file_Ptr file_hdl, cxios_duration split_end_offset_c) |
---|
| 477 | { |
---|
| 478 | CTimer::get("XIOS").resume(); |
---|
| 479 | file_hdl->split_end_offset.allocate(); |
---|
| 480 | CDuration& split_end_offset = file_hdl->split_end_offset.get(); |
---|
| 481 | split_end_offset.year = split_end_offset_c.year; |
---|
| 482 | split_end_offset.month = split_end_offset_c.month; |
---|
| 483 | split_end_offset.day = split_end_offset_c.day; |
---|
| 484 | split_end_offset.hour = split_end_offset_c.hour; |
---|
| 485 | split_end_offset.minute = split_end_offset_c.minute; |
---|
| 486 | split_end_offset.second = split_end_offset_c.second; |
---|
| 487 | split_end_offset.timestep = split_end_offset_c.timestep; |
---|
| 488 | CTimer::get("XIOS").suspend(); |
---|
| 489 | } |
---|
| 490 | |
---|
| 491 | void cxios_get_file_split_end_offset(file_Ptr file_hdl, cxios_duration* split_end_offset_c) |
---|
| 492 | { |
---|
| 493 | CTimer::get("XIOS").resume(); |
---|
| 494 | CDuration split_end_offset = file_hdl->split_end_offset.getInheritedValue(); |
---|
| 495 | split_end_offset_c->year = split_end_offset.year; |
---|
| 496 | split_end_offset_c->month = split_end_offset.month; |
---|
| 497 | split_end_offset_c->day = split_end_offset.day; |
---|
| 498 | split_end_offset_c->hour = split_end_offset.hour; |
---|
| 499 | split_end_offset_c->minute = split_end_offset.minute; |
---|
| 500 | split_end_offset_c->second = split_end_offset.second; |
---|
| 501 | split_end_offset_c->timestep = split_end_offset.timestep; |
---|
| 502 | CTimer::get("XIOS").suspend(); |
---|
| 503 | } |
---|
| 504 | |
---|
| 505 | bool cxios_is_defined_file_split_end_offset(file_Ptr file_hdl) |
---|
| 506 | { |
---|
| 507 | CTimer::get("XIOS").resume(); |
---|
| 508 | bool isDefined = file_hdl->split_end_offset.hasInheritedValue(); |
---|
| 509 | CTimer::get("XIOS").suspend(); |
---|
| 510 | return isDefined; |
---|
| 511 | } |
---|
| 512 | |
---|
| 513 | |
---|
[538] | 514 | void cxios_set_file_split_freq(file_Ptr file_hdl, cxios_duration split_freq_c) |
---|
[325] | 515 | { |
---|
[538] | 516 | CTimer::get("XIOS").resume(); |
---|
| 517 | file_hdl->split_freq.allocate(); |
---|
| 518 | CDuration& split_freq = file_hdl->split_freq.get(); |
---|
| 519 | split_freq.year = split_freq_c.year; |
---|
| 520 | split_freq.month = split_freq_c.month; |
---|
| 521 | split_freq.day = split_freq_c.day; |
---|
| 522 | split_freq.hour = split_freq_c.hour; |
---|
| 523 | split_freq.minute = split_freq_c.minute; |
---|
| 524 | split_freq.second = split_freq_c.second; |
---|
| 525 | split_freq.timestep = split_freq_c.timestep; |
---|
| 526 | CTimer::get("XIOS").suspend(); |
---|
[325] | 527 | } |
---|
[581] | 528 | |
---|
[538] | 529 | void cxios_get_file_split_freq(file_Ptr file_hdl, cxios_duration* split_freq_c) |
---|
[325] | 530 | { |
---|
[538] | 531 | CTimer::get("XIOS").resume(); |
---|
| 532 | CDuration split_freq = file_hdl->split_freq.getInheritedValue(); |
---|
| 533 | split_freq_c->year = split_freq.year; |
---|
| 534 | split_freq_c->month = split_freq.month; |
---|
| 535 | split_freq_c->day = split_freq.day; |
---|
| 536 | split_freq_c->hour = split_freq.hour; |
---|
| 537 | split_freq_c->minute = split_freq.minute; |
---|
| 538 | split_freq_c->second = split_freq.second; |
---|
| 539 | split_freq_c->timestep = split_freq.timestep; |
---|
| 540 | CTimer::get("XIOS").suspend(); |
---|
[325] | 541 | } |
---|
[581] | 542 | |
---|
| 543 | bool cxios_is_defined_file_split_freq(file_Ptr file_hdl) |
---|
[432] | 544 | { |
---|
| 545 | CTimer::get("XIOS").resume(); |
---|
[581] | 546 | bool isDefined = file_hdl->split_freq.hasInheritedValue(); |
---|
[432] | 547 | CTimer::get("XIOS").suspend(); |
---|
[581] | 548 | return isDefined; |
---|
[432] | 549 | } |
---|
[581] | 550 | |
---|
| 551 | |
---|
[432] | 552 | void cxios_set_file_split_freq_format(file_Ptr file_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
| 553 | { |
---|
| 554 | std::string split_freq_format_str; |
---|
[581] | 555 | if (!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
| 556 | CTimer::get("XIOS").resume(); |
---|
[432] | 557 | file_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
[581] | 558 | CTimer::get("XIOS").suspend(); |
---|
[432] | 559 | } |
---|
[581] | 560 | |
---|
[432] | 561 | void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size) |
---|
| 562 | { |
---|
[581] | 563 | CTimer::get("XIOS").resume(); |
---|
| 564 | if (!string_copy(file_hdl->split_freq_format.getInheritedValue(), split_freq_format, split_freq_format_size)) |
---|
| 565 | ERROR("void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size)", << "Input string is too short"); |
---|
| 566 | CTimer::get("XIOS").suspend(); |
---|
[432] | 567 | } |
---|
[581] | 568 | |
---|
| 569 | bool cxios_is_defined_file_split_freq_format(file_Ptr file_hdl) |
---|
[432] | 570 | { |
---|
| 571 | CTimer::get("XIOS").resume(); |
---|
[581] | 572 | bool isDefined = file_hdl->split_freq_format.hasInheritedValue(); |
---|
[432] | 573 | CTimer::get("XIOS").suspend(); |
---|
[581] | 574 | return isDefined; |
---|
[432] | 575 | } |
---|
[581] | 576 | |
---|
| 577 | |
---|
[1545] | 578 | void cxios_set_file_split_last_date(file_Ptr file_hdl, const char * split_last_date, int split_last_date_size) |
---|
| 579 | { |
---|
| 580 | std::string split_last_date_str; |
---|
| 581 | if (!cstr2string(split_last_date, split_last_date_size, split_last_date_str)) return; |
---|
| 582 | CTimer::get("XIOS").resume(); |
---|
| 583 | file_hdl->split_last_date.setValue(split_last_date_str); |
---|
| 584 | CTimer::get("XIOS").suspend(); |
---|
| 585 | } |
---|
| 586 | |
---|
| 587 | void cxios_get_file_split_last_date(file_Ptr file_hdl, char * split_last_date, int split_last_date_size) |
---|
| 588 | { |
---|
| 589 | CTimer::get("XIOS").resume(); |
---|
| 590 | if (!string_copy(file_hdl->split_last_date.getInheritedValue(), split_last_date, split_last_date_size)) |
---|
| 591 | ERROR("void cxios_get_file_split_last_date(file_Ptr file_hdl, char * split_last_date, int split_last_date_size)", << "Input string is too short"); |
---|
| 592 | CTimer::get("XIOS").suspend(); |
---|
| 593 | } |
---|
| 594 | |
---|
| 595 | bool cxios_is_defined_file_split_last_date(file_Ptr file_hdl) |
---|
| 596 | { |
---|
| 597 | CTimer::get("XIOS").resume(); |
---|
| 598 | bool isDefined = file_hdl->split_last_date.hasInheritedValue(); |
---|
| 599 | CTimer::get("XIOS").suspend(); |
---|
| 600 | return isDefined; |
---|
| 601 | } |
---|
| 602 | |
---|
| 603 | |
---|
| 604 | void cxios_set_file_split_start_offset(file_Ptr file_hdl, cxios_duration split_start_offset_c) |
---|
| 605 | { |
---|
| 606 | CTimer::get("XIOS").resume(); |
---|
| 607 | file_hdl->split_start_offset.allocate(); |
---|
| 608 | CDuration& split_start_offset = file_hdl->split_start_offset.get(); |
---|
| 609 | split_start_offset.year = split_start_offset_c.year; |
---|
| 610 | split_start_offset.month = split_start_offset_c.month; |
---|
| 611 | split_start_offset.day = split_start_offset_c.day; |
---|
| 612 | split_start_offset.hour = split_start_offset_c.hour; |
---|
| 613 | split_start_offset.minute = split_start_offset_c.minute; |
---|
| 614 | split_start_offset.second = split_start_offset_c.second; |
---|
| 615 | split_start_offset.timestep = split_start_offset_c.timestep; |
---|
| 616 | CTimer::get("XIOS").suspend(); |
---|
| 617 | } |
---|
| 618 | |
---|
| 619 | void cxios_get_file_split_start_offset(file_Ptr file_hdl, cxios_duration* split_start_offset_c) |
---|
| 620 | { |
---|
| 621 | CTimer::get("XIOS").resume(); |
---|
| 622 | CDuration split_start_offset = file_hdl->split_start_offset.getInheritedValue(); |
---|
| 623 | split_start_offset_c->year = split_start_offset.year; |
---|
| 624 | split_start_offset_c->month = split_start_offset.month; |
---|
| 625 | split_start_offset_c->day = split_start_offset.day; |
---|
| 626 | split_start_offset_c->hour = split_start_offset.hour; |
---|
| 627 | split_start_offset_c->minute = split_start_offset.minute; |
---|
| 628 | split_start_offset_c->second = split_start_offset.second; |
---|
| 629 | split_start_offset_c->timestep = split_start_offset.timestep; |
---|
| 630 | CTimer::get("XIOS").suspend(); |
---|
| 631 | } |
---|
| 632 | |
---|
| 633 | bool cxios_is_defined_file_split_start_offset(file_Ptr file_hdl) |
---|
| 634 | { |
---|
| 635 | CTimer::get("XIOS").resume(); |
---|
| 636 | bool isDefined = file_hdl->split_start_offset.hasInheritedValue(); |
---|
| 637 | CTimer::get("XIOS").suspend(); |
---|
| 638 | return isDefined; |
---|
| 639 | } |
---|
| 640 | |
---|
| 641 | |
---|
[538] | 642 | void cxios_set_file_sync_freq(file_Ptr file_hdl, cxios_duration sync_freq_c) |
---|
[325] | 643 | { |
---|
[538] | 644 | CTimer::get("XIOS").resume(); |
---|
| 645 | file_hdl->sync_freq.allocate(); |
---|
| 646 | CDuration& sync_freq = file_hdl->sync_freq.get(); |
---|
| 647 | sync_freq.year = sync_freq_c.year; |
---|
| 648 | sync_freq.month = sync_freq_c.month; |
---|
| 649 | sync_freq.day = sync_freq_c.day; |
---|
| 650 | sync_freq.hour = sync_freq_c.hour; |
---|
| 651 | sync_freq.minute = sync_freq_c.minute; |
---|
| 652 | sync_freq.second = sync_freq_c.second; |
---|
| 653 | sync_freq.timestep = sync_freq_c.timestep; |
---|
| 654 | CTimer::get("XIOS").suspend(); |
---|
[325] | 655 | } |
---|
[581] | 656 | |
---|
[538] | 657 | void cxios_get_file_sync_freq(file_Ptr file_hdl, cxios_duration* sync_freq_c) |
---|
[325] | 658 | { |
---|
[538] | 659 | CTimer::get("XIOS").resume(); |
---|
| 660 | CDuration sync_freq = file_hdl->sync_freq.getInheritedValue(); |
---|
| 661 | sync_freq_c->year = sync_freq.year; |
---|
| 662 | sync_freq_c->month = sync_freq.month; |
---|
| 663 | sync_freq_c->day = sync_freq.day; |
---|
| 664 | sync_freq_c->hour = sync_freq.hour; |
---|
| 665 | sync_freq_c->minute = sync_freq.minute; |
---|
| 666 | sync_freq_c->second = sync_freq.second; |
---|
| 667 | sync_freq_c->timestep = sync_freq.timestep; |
---|
| 668 | CTimer::get("XIOS").suspend(); |
---|
[325] | 669 | } |
---|
[581] | 670 | |
---|
| 671 | bool cxios_is_defined_file_sync_freq(file_Ptr file_hdl) |
---|
[432] | 672 | { |
---|
| 673 | CTimer::get("XIOS").resume(); |
---|
[581] | 674 | bool isDefined = file_hdl->sync_freq.hasInheritedValue(); |
---|
[432] | 675 | CTimer::get("XIOS").suspend(); |
---|
[581] | 676 | return isDefined; |
---|
[432] | 677 | } |
---|
[581] | 678 | |
---|
| 679 | |
---|
[699] | 680 | void cxios_set_file_time_counter(file_Ptr file_hdl, const char * time_counter, int time_counter_size) |
---|
| 681 | { |
---|
| 682 | std::string time_counter_str; |
---|
| 683 | if (!cstr2string(time_counter, time_counter_size, time_counter_str)) return; |
---|
| 684 | CTimer::get("XIOS").resume(); |
---|
| 685 | file_hdl->time_counter.fromString(time_counter_str); |
---|
| 686 | CTimer::get("XIOS").suspend(); |
---|
| 687 | } |
---|
| 688 | |
---|
| 689 | void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size) |
---|
| 690 | { |
---|
| 691 | CTimer::get("XIOS").resume(); |
---|
| 692 | if (!string_copy(file_hdl->time_counter.getInheritedStringValue(), time_counter, time_counter_size)) |
---|
| 693 | ERROR("void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size)", << "Input string is too short"); |
---|
| 694 | CTimer::get("XIOS").suspend(); |
---|
| 695 | } |
---|
| 696 | |
---|
| 697 | bool cxios_is_defined_file_time_counter(file_Ptr file_hdl) |
---|
| 698 | { |
---|
| 699 | CTimer::get("XIOS").resume(); |
---|
| 700 | bool isDefined = file_hdl->time_counter.hasInheritedValue(); |
---|
| 701 | CTimer::get("XIOS").suspend(); |
---|
| 702 | return isDefined; |
---|
| 703 | } |
---|
| 704 | |
---|
| 705 | |
---|
[802] | 706 | void cxios_set_file_time_counter_name(file_Ptr file_hdl, const char * time_counter_name, int time_counter_name_size) |
---|
| 707 | { |
---|
| 708 | std::string time_counter_name_str; |
---|
| 709 | if (!cstr2string(time_counter_name, time_counter_name_size, time_counter_name_str)) return; |
---|
| 710 | CTimer::get("XIOS").resume(); |
---|
| 711 | file_hdl->time_counter_name.setValue(time_counter_name_str); |
---|
| 712 | CTimer::get("XIOS").suspend(); |
---|
| 713 | } |
---|
| 714 | |
---|
| 715 | void cxios_get_file_time_counter_name(file_Ptr file_hdl, char * time_counter_name, int time_counter_name_size) |
---|
| 716 | { |
---|
| 717 | CTimer::get("XIOS").resume(); |
---|
| 718 | if (!string_copy(file_hdl->time_counter_name.getInheritedValue(), time_counter_name, time_counter_name_size)) |
---|
| 719 | ERROR("void cxios_get_file_time_counter_name(file_Ptr file_hdl, char * time_counter_name, int time_counter_name_size)", << "Input string is too short"); |
---|
| 720 | CTimer::get("XIOS").suspend(); |
---|
| 721 | } |
---|
| 722 | |
---|
| 723 | bool cxios_is_defined_file_time_counter_name(file_Ptr file_hdl) |
---|
| 724 | { |
---|
| 725 | CTimer::get("XIOS").resume(); |
---|
| 726 | bool isDefined = file_hdl->time_counter_name.hasInheritedValue(); |
---|
| 727 | CTimer::get("XIOS").suspend(); |
---|
| 728 | return isDefined; |
---|
| 729 | } |
---|
| 730 | |
---|
| 731 | |
---|
[1052] | 732 | void cxios_set_file_time_stamp_format(file_Ptr file_hdl, const char * time_stamp_format, int time_stamp_format_size) |
---|
| 733 | { |
---|
| 734 | std::string time_stamp_format_str; |
---|
| 735 | if (!cstr2string(time_stamp_format, time_stamp_format_size, time_stamp_format_str)) return; |
---|
| 736 | CTimer::get("XIOS").resume(); |
---|
| 737 | file_hdl->time_stamp_format.setValue(time_stamp_format_str); |
---|
| 738 | CTimer::get("XIOS").suspend(); |
---|
| 739 | } |
---|
| 740 | |
---|
| 741 | void cxios_get_file_time_stamp_format(file_Ptr file_hdl, char * time_stamp_format, int time_stamp_format_size) |
---|
| 742 | { |
---|
| 743 | CTimer::get("XIOS").resume(); |
---|
| 744 | if (!string_copy(file_hdl->time_stamp_format.getInheritedValue(), time_stamp_format, time_stamp_format_size)) |
---|
| 745 | ERROR("void cxios_get_file_time_stamp_format(file_Ptr file_hdl, char * time_stamp_format, int time_stamp_format_size)", << "Input string is too short"); |
---|
| 746 | CTimer::get("XIOS").suspend(); |
---|
| 747 | } |
---|
| 748 | |
---|
| 749 | bool cxios_is_defined_file_time_stamp_format(file_Ptr file_hdl) |
---|
| 750 | { |
---|
| 751 | CTimer::get("XIOS").resume(); |
---|
| 752 | bool isDefined = file_hdl->time_stamp_format.hasInheritedValue(); |
---|
| 753 | CTimer::get("XIOS").suspend(); |
---|
| 754 | return isDefined; |
---|
| 755 | } |
---|
| 756 | |
---|
| 757 | |
---|
| 758 | void cxios_set_file_time_stamp_name(file_Ptr file_hdl, const char * time_stamp_name, int time_stamp_name_size) |
---|
| 759 | { |
---|
| 760 | std::string time_stamp_name_str; |
---|
| 761 | if (!cstr2string(time_stamp_name, time_stamp_name_size, time_stamp_name_str)) return; |
---|
| 762 | CTimer::get("XIOS").resume(); |
---|
| 763 | file_hdl->time_stamp_name.setValue(time_stamp_name_str); |
---|
| 764 | CTimer::get("XIOS").suspend(); |
---|
| 765 | } |
---|
| 766 | |
---|
| 767 | void cxios_get_file_time_stamp_name(file_Ptr file_hdl, char * time_stamp_name, int time_stamp_name_size) |
---|
| 768 | { |
---|
| 769 | CTimer::get("XIOS").resume(); |
---|
| 770 | if (!string_copy(file_hdl->time_stamp_name.getInheritedValue(), time_stamp_name, time_stamp_name_size)) |
---|
| 771 | ERROR("void cxios_get_file_time_stamp_name(file_Ptr file_hdl, char * time_stamp_name, int time_stamp_name_size)", << "Input string is too short"); |
---|
| 772 | CTimer::get("XIOS").suspend(); |
---|
| 773 | } |
---|
| 774 | |
---|
| 775 | bool cxios_is_defined_file_time_stamp_name(file_Ptr file_hdl) |
---|
| 776 | { |
---|
| 777 | CTimer::get("XIOS").resume(); |
---|
| 778 | bool isDefined = file_hdl->time_stamp_name.hasInheritedValue(); |
---|
| 779 | CTimer::get("XIOS").suspend(); |
---|
| 780 | return isDefined; |
---|
| 781 | } |
---|
| 782 | |
---|
| 783 | |
---|
| 784 | void cxios_set_file_time_units(file_Ptr file_hdl, const char * time_units, int time_units_size) |
---|
| 785 | { |
---|
| 786 | std::string time_units_str; |
---|
| 787 | if (!cstr2string(time_units, time_units_size, time_units_str)) return; |
---|
| 788 | CTimer::get("XIOS").resume(); |
---|
| 789 | file_hdl->time_units.fromString(time_units_str); |
---|
| 790 | CTimer::get("XIOS").suspend(); |
---|
| 791 | } |
---|
| 792 | |
---|
| 793 | void cxios_get_file_time_units(file_Ptr file_hdl, char * time_units, int time_units_size) |
---|
| 794 | { |
---|
| 795 | CTimer::get("XIOS").resume(); |
---|
| 796 | if (!string_copy(file_hdl->time_units.getInheritedStringValue(), time_units, time_units_size)) |
---|
| 797 | ERROR("void cxios_get_file_time_units(file_Ptr file_hdl, char * time_units, int time_units_size)", << "Input string is too short"); |
---|
| 798 | CTimer::get("XIOS").suspend(); |
---|
| 799 | } |
---|
| 800 | |
---|
| 801 | bool cxios_is_defined_file_time_units(file_Ptr file_hdl) |
---|
| 802 | { |
---|
| 803 | CTimer::get("XIOS").resume(); |
---|
| 804 | bool isDefined = file_hdl->time_units.hasInheritedValue(); |
---|
| 805 | CTimer::get("XIOS").suspend(); |
---|
| 806 | return isDefined; |
---|
| 807 | } |
---|
| 808 | |
---|
| 809 | |
---|
[711] | 810 | void cxios_set_file_timeseries(file_Ptr file_hdl, const char * timeseries, int timeseries_size) |
---|
| 811 | { |
---|
| 812 | std::string timeseries_str; |
---|
| 813 | if (!cstr2string(timeseries, timeseries_size, timeseries_str)) return; |
---|
| 814 | CTimer::get("XIOS").resume(); |
---|
| 815 | file_hdl->timeseries.fromString(timeseries_str); |
---|
| 816 | CTimer::get("XIOS").suspend(); |
---|
| 817 | } |
---|
| 818 | |
---|
| 819 | void cxios_get_file_timeseries(file_Ptr file_hdl, char * timeseries, int timeseries_size) |
---|
| 820 | { |
---|
| 821 | CTimer::get("XIOS").resume(); |
---|
| 822 | if (!string_copy(file_hdl->timeseries.getInheritedStringValue(), timeseries, timeseries_size)) |
---|
| 823 | ERROR("void cxios_get_file_timeseries(file_Ptr file_hdl, char * timeseries, int timeseries_size)", << "Input string is too short"); |
---|
| 824 | CTimer::get("XIOS").suspend(); |
---|
| 825 | } |
---|
| 826 | |
---|
| 827 | bool cxios_is_defined_file_timeseries(file_Ptr file_hdl) |
---|
| 828 | { |
---|
| 829 | CTimer::get("XIOS").resume(); |
---|
| 830 | bool isDefined = file_hdl->timeseries.hasInheritedValue(); |
---|
| 831 | CTimer::get("XIOS").suspend(); |
---|
| 832 | return isDefined; |
---|
| 833 | } |
---|
| 834 | |
---|
| 835 | |
---|
| 836 | void cxios_set_file_ts_prefix(file_Ptr file_hdl, const char * ts_prefix, int ts_prefix_size) |
---|
| 837 | { |
---|
| 838 | std::string ts_prefix_str; |
---|
| 839 | if (!cstr2string(ts_prefix, ts_prefix_size, ts_prefix_str)) return; |
---|
| 840 | CTimer::get("XIOS").resume(); |
---|
| 841 | file_hdl->ts_prefix.setValue(ts_prefix_str); |
---|
| 842 | CTimer::get("XIOS").suspend(); |
---|
| 843 | } |
---|
| 844 | |
---|
| 845 | void cxios_get_file_ts_prefix(file_Ptr file_hdl, char * ts_prefix, int ts_prefix_size) |
---|
| 846 | { |
---|
| 847 | CTimer::get("XIOS").resume(); |
---|
| 848 | if (!string_copy(file_hdl->ts_prefix.getInheritedValue(), ts_prefix, ts_prefix_size)) |
---|
| 849 | ERROR("void cxios_get_file_ts_prefix(file_Ptr file_hdl, char * ts_prefix, int ts_prefix_size)", << "Input string is too short"); |
---|
| 850 | CTimer::get("XIOS").suspend(); |
---|
| 851 | } |
---|
| 852 | |
---|
| 853 | bool cxios_is_defined_file_ts_prefix(file_Ptr file_hdl) |
---|
| 854 | { |
---|
| 855 | CTimer::get("XIOS").resume(); |
---|
| 856 | bool isDefined = file_hdl->ts_prefix.hasInheritedValue(); |
---|
| 857 | CTimer::get("XIOS").suspend(); |
---|
| 858 | return isDefined; |
---|
| 859 | } |
---|
| 860 | |
---|
| 861 | |
---|
[325] | 862 | void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) |
---|
| 863 | { |
---|
| 864 | std::string type_str; |
---|
[581] | 865 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 866 | CTimer::get("XIOS").resume(); |
---|
[369] | 867 | file_hdl->type.fromString(type_str); |
---|
[581] | 868 | CTimer::get("XIOS").suspend(); |
---|
[325] | 869 | } |
---|
[581] | 870 | |
---|
[325] | 871 | void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size) |
---|
| 872 | { |
---|
[581] | 873 | CTimer::get("XIOS").resume(); |
---|
| 874 | if (!string_copy(file_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
| 875 | ERROR("void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 876 | CTimer::get("XIOS").suspend(); |
---|
[325] | 877 | } |
---|
[581] | 878 | |
---|
| 879 | bool cxios_is_defined_file_type(file_Ptr file_hdl) |
---|
[432] | 880 | { |
---|
| 881 | CTimer::get("XIOS").resume(); |
---|
[581] | 882 | bool isDefined = file_hdl->type.hasInheritedValue(); |
---|
[432] | 883 | CTimer::get("XIOS").suspend(); |
---|
[581] | 884 | return isDefined; |
---|
[432] | 885 | } |
---|
[1052] | 886 | |
---|
| 887 | |
---|
| 888 | void cxios_set_file_uuid_format(file_Ptr file_hdl, const char * uuid_format, int uuid_format_size) |
---|
| 889 | { |
---|
| 890 | std::string uuid_format_str; |
---|
| 891 | if (!cstr2string(uuid_format, uuid_format_size, uuid_format_str)) return; |
---|
| 892 | CTimer::get("XIOS").resume(); |
---|
| 893 | file_hdl->uuid_format.setValue(uuid_format_str); |
---|
| 894 | CTimer::get("XIOS").suspend(); |
---|
| 895 | } |
---|
| 896 | |
---|
| 897 | void cxios_get_file_uuid_format(file_Ptr file_hdl, char * uuid_format, int uuid_format_size) |
---|
| 898 | { |
---|
| 899 | CTimer::get("XIOS").resume(); |
---|
| 900 | if (!string_copy(file_hdl->uuid_format.getInheritedValue(), uuid_format, uuid_format_size)) |
---|
| 901 | ERROR("void cxios_get_file_uuid_format(file_Ptr file_hdl, char * uuid_format, int uuid_format_size)", << "Input string is too short"); |
---|
| 902 | CTimer::get("XIOS").suspend(); |
---|
| 903 | } |
---|
| 904 | |
---|
| 905 | bool cxios_is_defined_file_uuid_format(file_Ptr file_hdl) |
---|
| 906 | { |
---|
| 907 | CTimer::get("XIOS").resume(); |
---|
| 908 | bool isDefined = file_hdl->uuid_format.hasInheritedValue(); |
---|
| 909 | CTimer::get("XIOS").suspend(); |
---|
| 910 | return isDefined; |
---|
| 911 | } |
---|
| 912 | |
---|
| 913 | |
---|
| 914 | void cxios_set_file_uuid_name(file_Ptr file_hdl, const char * uuid_name, int uuid_name_size) |
---|
| 915 | { |
---|
| 916 | std::string uuid_name_str; |
---|
| 917 | if (!cstr2string(uuid_name, uuid_name_size, uuid_name_str)) return; |
---|
| 918 | CTimer::get("XIOS").resume(); |
---|
| 919 | file_hdl->uuid_name.setValue(uuid_name_str); |
---|
| 920 | CTimer::get("XIOS").suspend(); |
---|
| 921 | } |
---|
| 922 | |
---|
| 923 | void cxios_get_file_uuid_name(file_Ptr file_hdl, char * uuid_name, int uuid_name_size) |
---|
| 924 | { |
---|
| 925 | CTimer::get("XIOS").resume(); |
---|
| 926 | if (!string_copy(file_hdl->uuid_name.getInheritedValue(), uuid_name, uuid_name_size)) |
---|
| 927 | ERROR("void cxios_get_file_uuid_name(file_Ptr file_hdl, char * uuid_name, int uuid_name_size)", << "Input string is too short"); |
---|
| 928 | CTimer::get("XIOS").suspend(); |
---|
| 929 | } |
---|
| 930 | |
---|
| 931 | bool cxios_is_defined_file_uuid_name(file_Ptr file_hdl) |
---|
| 932 | { |
---|
| 933 | CTimer::get("XIOS").resume(); |
---|
| 934 | bool isDefined = file_hdl->uuid_name.hasInheritedValue(); |
---|
| 935 | CTimer::get("XIOS").suspend(); |
---|
| 936 | return isDefined; |
---|
| 937 | } |
---|
[325] | 938 | } |
---|