[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::CFileGroup* filegroup_Ptr; |
---|
| 19 | |
---|
[528] | 20 | void cxios_set_filegroup_append(filegroup_Ptr filegroup_hdl, bool append) |
---|
| 21 | { |
---|
[581] | 22 | CTimer::get("XIOS").resume(); |
---|
[528] | 23 | filegroup_hdl->append.setValue(append); |
---|
[581] | 24 | CTimer::get("XIOS").suspend(); |
---|
[528] | 25 | } |
---|
[581] | 26 | |
---|
[528] | 27 | void cxios_get_filegroup_append(filegroup_Ptr filegroup_hdl, bool* append) |
---|
| 28 | { |
---|
[581] | 29 | CTimer::get("XIOS").resume(); |
---|
[528] | 30 | *append = filegroup_hdl->append.getInheritedValue(); |
---|
[581] | 31 | CTimer::get("XIOS").suspend(); |
---|
[528] | 32 | } |
---|
[581] | 33 | |
---|
| 34 | bool cxios_is_defined_filegroup_append(filegroup_Ptr filegroup_hdl) |
---|
[528] | 35 | { |
---|
| 36 | CTimer::get("XIOS").resume(); |
---|
[581] | 37 | bool isDefined = filegroup_hdl->append.hasInheritedValue(); |
---|
[528] | 38 | CTimer::get("XIOS").suspend(); |
---|
[581] | 39 | return isDefined; |
---|
[528] | 40 | } |
---|
[581] | 41 | |
---|
| 42 | |
---|
[608] | 43 | void cxios_set_filegroup_compression_level(filegroup_Ptr filegroup_hdl, int compression_level) |
---|
| 44 | { |
---|
| 45 | CTimer::get("XIOS").resume(); |
---|
| 46 | filegroup_hdl->compression_level.setValue(compression_level); |
---|
| 47 | CTimer::get("XIOS").suspend(); |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | void cxios_get_filegroup_compression_level(filegroup_Ptr filegroup_hdl, int* compression_level) |
---|
| 51 | { |
---|
| 52 | CTimer::get("XIOS").resume(); |
---|
| 53 | *compression_level = filegroup_hdl->compression_level.getInheritedValue(); |
---|
| 54 | CTimer::get("XIOS").suspend(); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | bool cxios_is_defined_filegroup_compression_level(filegroup_Ptr filegroup_hdl) |
---|
| 58 | { |
---|
| 59 | CTimer::get("XIOS").resume(); |
---|
| 60 | bool isDefined = filegroup_hdl->compression_level.hasInheritedValue(); |
---|
| 61 | CTimer::get("XIOS").suspend(); |
---|
| 62 | return isDefined; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | |
---|
[932] | 66 | void cxios_set_filegroup_convention(filegroup_Ptr filegroup_hdl, const char * convention, int convention_size) |
---|
| 67 | { |
---|
| 68 | std::string convention_str; |
---|
| 69 | if (!cstr2string(convention, convention_size, convention_str)) return; |
---|
| 70 | CTimer::get("XIOS").resume(); |
---|
| 71 | filegroup_hdl->convention.fromString(convention_str); |
---|
| 72 | CTimer::get("XIOS").suspend(); |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | void cxios_get_filegroup_convention(filegroup_Ptr filegroup_hdl, char * convention, int convention_size) |
---|
| 76 | { |
---|
| 77 | CTimer::get("XIOS").resume(); |
---|
| 78 | if (!string_copy(filegroup_hdl->convention.getInheritedStringValue(), convention, convention_size)) |
---|
| 79 | ERROR("void cxios_get_filegroup_convention(filegroup_Ptr filegroup_hdl, char * convention, int convention_size)", << "Input string is too short"); |
---|
| 80 | CTimer::get("XIOS").suspend(); |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | bool cxios_is_defined_filegroup_convention(filegroup_Ptr filegroup_hdl) |
---|
| 84 | { |
---|
| 85 | CTimer::get("XIOS").resume(); |
---|
| 86 | bool isDefined = filegroup_hdl->convention.hasInheritedValue(); |
---|
| 87 | CTimer::get("XIOS").suspend(); |
---|
| 88 | return isDefined; |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | |
---|
[891] | 92 | void cxios_set_filegroup_cyclic(filegroup_Ptr filegroup_hdl, bool cyclic) |
---|
| 93 | { |
---|
| 94 | CTimer::get("XIOS").resume(); |
---|
| 95 | filegroup_hdl->cyclic.setValue(cyclic); |
---|
| 96 | CTimer::get("XIOS").suspend(); |
---|
| 97 | } |
---|
| 98 | |
---|
| 99 | void cxios_get_filegroup_cyclic(filegroup_Ptr filegroup_hdl, bool* cyclic) |
---|
| 100 | { |
---|
| 101 | CTimer::get("XIOS").resume(); |
---|
| 102 | *cyclic = filegroup_hdl->cyclic.getInheritedValue(); |
---|
| 103 | CTimer::get("XIOS").suspend(); |
---|
| 104 | } |
---|
| 105 | |
---|
| 106 | bool cxios_is_defined_filegroup_cyclic(filegroup_Ptr filegroup_hdl) |
---|
| 107 | { |
---|
| 108 | CTimer::get("XIOS").resume(); |
---|
| 109 | bool isDefined = filegroup_hdl->cyclic.hasInheritedValue(); |
---|
| 110 | CTimer::get("XIOS").suspend(); |
---|
| 111 | return isDefined; |
---|
| 112 | } |
---|
| 113 | |
---|
| 114 | |
---|
[325] | 115 | void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size) |
---|
| 116 | { |
---|
| 117 | std::string description_str; |
---|
[581] | 118 | if (!cstr2string(description, description_size, description_str)) return; |
---|
| 119 | CTimer::get("XIOS").resume(); |
---|
[325] | 120 | filegroup_hdl->description.setValue(description_str); |
---|
[581] | 121 | CTimer::get("XIOS").suspend(); |
---|
[325] | 122 | } |
---|
[581] | 123 | |
---|
[325] | 124 | void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) |
---|
| 125 | { |
---|
[581] | 126 | CTimer::get("XIOS").resume(); |
---|
| 127 | if (!string_copy(filegroup_hdl->description.getInheritedValue(), description, description_size)) |
---|
| 128 | ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", << "Input string is too short"); |
---|
| 129 | CTimer::get("XIOS").suspend(); |
---|
[325] | 130 | } |
---|
[581] | 131 | |
---|
| 132 | bool cxios_is_defined_filegroup_description(filegroup_Ptr filegroup_hdl) |
---|
[432] | 133 | { |
---|
| 134 | CTimer::get("XIOS").resume(); |
---|
[581] | 135 | bool isDefined = filegroup_hdl->description.hasInheritedValue(); |
---|
[432] | 136 | CTimer::get("XIOS").suspend(); |
---|
[581] | 137 | return isDefined; |
---|
[432] | 138 | } |
---|
[581] | 139 | |
---|
| 140 | |
---|
[325] | 141 | void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) |
---|
| 142 | { |
---|
[581] | 143 | CTimer::get("XIOS").resume(); |
---|
[325] | 144 | filegroup_hdl->enabled.setValue(enabled); |
---|
[581] | 145 | CTimer::get("XIOS").suspend(); |
---|
[325] | 146 | } |
---|
[581] | 147 | |
---|
[325] | 148 | void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled) |
---|
| 149 | { |
---|
[581] | 150 | CTimer::get("XIOS").resume(); |
---|
[445] | 151 | *enabled = filegroup_hdl->enabled.getInheritedValue(); |
---|
[581] | 152 | CTimer::get("XIOS").suspend(); |
---|
[325] | 153 | } |
---|
[581] | 154 | |
---|
| 155 | bool cxios_is_defined_filegroup_enabled(filegroup_Ptr filegroup_hdl) |
---|
[432] | 156 | { |
---|
| 157 | CTimer::get("XIOS").resume(); |
---|
[581] | 158 | bool isDefined = filegroup_hdl->enabled.hasInheritedValue(); |
---|
[432] | 159 | CTimer::get("XIOS").suspend(); |
---|
[581] | 160 | return isDefined; |
---|
[432] | 161 | } |
---|
[581] | 162 | |
---|
| 163 | |
---|
[517] | 164 | void cxios_set_filegroup_format(filegroup_Ptr filegroup_hdl, const char * format, int format_size) |
---|
| 165 | { |
---|
| 166 | std::string format_str; |
---|
[581] | 167 | if (!cstr2string(format, format_size, format_str)) return; |
---|
| 168 | CTimer::get("XIOS").resume(); |
---|
[517] | 169 | filegroup_hdl->format.fromString(format_str); |
---|
[581] | 170 | CTimer::get("XIOS").suspend(); |
---|
[517] | 171 | } |
---|
[581] | 172 | |
---|
[517] | 173 | void cxios_get_filegroup_format(filegroup_Ptr filegroup_hdl, char * format, int format_size) |
---|
| 174 | { |
---|
[581] | 175 | CTimer::get("XIOS").resume(); |
---|
| 176 | if (!string_copy(filegroup_hdl->format.getInheritedStringValue(), format, format_size)) |
---|
| 177 | ERROR("void cxios_get_filegroup_format(filegroup_Ptr filegroup_hdl, char * format, int format_size)", << "Input string is too short"); |
---|
| 178 | CTimer::get("XIOS").suspend(); |
---|
[517] | 179 | } |
---|
[581] | 180 | |
---|
| 181 | bool cxios_is_defined_filegroup_format(filegroup_Ptr filegroup_hdl) |
---|
[517] | 182 | { |
---|
| 183 | CTimer::get("XIOS").resume(); |
---|
[581] | 184 | bool isDefined = filegroup_hdl->format.hasInheritedValue(); |
---|
[517] | 185 | CTimer::get("XIOS").suspend(); |
---|
[581] | 186 | return isDefined; |
---|
[517] | 187 | } |
---|
[581] | 188 | |
---|
| 189 | |
---|
[325] | 190 | void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 191 | { |
---|
| 192 | std::string group_ref_str; |
---|
[581] | 193 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 194 | CTimer::get("XIOS").resume(); |
---|
[325] | 195 | filegroup_hdl->group_ref.setValue(group_ref_str); |
---|
[581] | 196 | CTimer::get("XIOS").suspend(); |
---|
[325] | 197 | } |
---|
[581] | 198 | |
---|
[325] | 199 | void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) |
---|
| 200 | { |
---|
[581] | 201 | CTimer::get("XIOS").resume(); |
---|
| 202 | if (!string_copy(filegroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
| 203 | ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
| 204 | CTimer::get("XIOS").suspend(); |
---|
[325] | 205 | } |
---|
[581] | 206 | |
---|
| 207 | bool cxios_is_defined_filegroup_group_ref(filegroup_Ptr filegroup_hdl) |
---|
[432] | 208 | { |
---|
| 209 | CTimer::get("XIOS").resume(); |
---|
[581] | 210 | bool isDefined = filegroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 211 | CTimer::get("XIOS").suspend(); |
---|
[581] | 212 | return isDefined; |
---|
[432] | 213 | } |
---|
[581] | 214 | |
---|
| 215 | |
---|
[415] | 216 | void cxios_set_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int min_digits) |
---|
| 217 | { |
---|
[581] | 218 | CTimer::get("XIOS").resume(); |
---|
[415] | 219 | filegroup_hdl->min_digits.setValue(min_digits); |
---|
[581] | 220 | CTimer::get("XIOS").suspend(); |
---|
[415] | 221 | } |
---|
[581] | 222 | |
---|
[415] | 223 | void cxios_get_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int* min_digits) |
---|
| 224 | { |
---|
[581] | 225 | CTimer::get("XIOS").resume(); |
---|
[445] | 226 | *min_digits = filegroup_hdl->min_digits.getInheritedValue(); |
---|
[581] | 227 | CTimer::get("XIOS").suspend(); |
---|
[415] | 228 | } |
---|
[581] | 229 | |
---|
| 230 | bool cxios_is_defined_filegroup_min_digits(filegroup_Ptr filegroup_hdl) |
---|
[432] | 231 | { |
---|
| 232 | CTimer::get("XIOS").resume(); |
---|
[581] | 233 | bool isDefined = filegroup_hdl->min_digits.hasInheritedValue(); |
---|
[432] | 234 | CTimer::get("XIOS").suspend(); |
---|
[581] | 235 | return isDefined; |
---|
[432] | 236 | } |
---|
[581] | 237 | |
---|
| 238 | |
---|
[598] | 239 | void cxios_set_filegroup_mode(filegroup_Ptr filegroup_hdl, const char * mode, int mode_size) |
---|
| 240 | { |
---|
| 241 | std::string mode_str; |
---|
| 242 | if (!cstr2string(mode, mode_size, mode_str)) return; |
---|
| 243 | CTimer::get("XIOS").resume(); |
---|
| 244 | filegroup_hdl->mode.fromString(mode_str); |
---|
| 245 | CTimer::get("XIOS").suspend(); |
---|
| 246 | } |
---|
| 247 | |
---|
| 248 | void cxios_get_filegroup_mode(filegroup_Ptr filegroup_hdl, char * mode, int mode_size) |
---|
| 249 | { |
---|
| 250 | CTimer::get("XIOS").resume(); |
---|
| 251 | if (!string_copy(filegroup_hdl->mode.getInheritedStringValue(), mode, mode_size)) |
---|
| 252 | ERROR("void cxios_get_filegroup_mode(filegroup_Ptr filegroup_hdl, char * mode, int mode_size)", << "Input string is too short"); |
---|
| 253 | CTimer::get("XIOS").suspend(); |
---|
| 254 | } |
---|
| 255 | |
---|
| 256 | bool cxios_is_defined_filegroup_mode(filegroup_Ptr filegroup_hdl) |
---|
| 257 | { |
---|
| 258 | CTimer::get("XIOS").resume(); |
---|
| 259 | bool isDefined = filegroup_hdl->mode.hasInheritedValue(); |
---|
| 260 | CTimer::get("XIOS").suspend(); |
---|
| 261 | return isDefined; |
---|
| 262 | } |
---|
| 263 | |
---|
| 264 | |
---|
[325] | 265 | void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) |
---|
| 266 | { |
---|
| 267 | std::string name_str; |
---|
[581] | 268 | if (!cstr2string(name, name_size, name_str)) return; |
---|
| 269 | CTimer::get("XIOS").resume(); |
---|
[325] | 270 | filegroup_hdl->name.setValue(name_str); |
---|
[581] | 271 | CTimer::get("XIOS").suspend(); |
---|
[325] | 272 | } |
---|
[581] | 273 | |
---|
[325] | 274 | void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) |
---|
| 275 | { |
---|
[581] | 276 | CTimer::get("XIOS").resume(); |
---|
| 277 | if (!string_copy(filegroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 278 | ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
| 279 | CTimer::get("XIOS").suspend(); |
---|
[325] | 280 | } |
---|
[581] | 281 | |
---|
| 282 | bool cxios_is_defined_filegroup_name(filegroup_Ptr filegroup_hdl) |
---|
[432] | 283 | { |
---|
| 284 | CTimer::get("XIOS").resume(); |
---|
[581] | 285 | bool isDefined = filegroup_hdl->name.hasInheritedValue(); |
---|
[432] | 286 | CTimer::get("XIOS").suspend(); |
---|
[581] | 287 | return isDefined; |
---|
[432] | 288 | } |
---|
[581] | 289 | |
---|
| 290 | |
---|
[325] | 291 | void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 292 | { |
---|
| 293 | std::string name_suffix_str; |
---|
[581] | 294 | if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
| 295 | CTimer::get("XIOS").resume(); |
---|
[325] | 296 | filegroup_hdl->name_suffix.setValue(name_suffix_str); |
---|
[581] | 297 | CTimer::get("XIOS").suspend(); |
---|
[325] | 298 | } |
---|
[581] | 299 | |
---|
[325] | 300 | void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) |
---|
| 301 | { |
---|
[581] | 302 | CTimer::get("XIOS").resume(); |
---|
| 303 | if (!string_copy(filegroup_hdl->name_suffix.getInheritedValue(), name_suffix, name_suffix_size)) |
---|
| 304 | ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", << "Input string is too short"); |
---|
| 305 | CTimer::get("XIOS").suspend(); |
---|
[325] | 306 | } |
---|
[581] | 307 | |
---|
| 308 | bool cxios_is_defined_filegroup_name_suffix(filegroup_Ptr filegroup_hdl) |
---|
[432] | 309 | { |
---|
| 310 | CTimer::get("XIOS").resume(); |
---|
[581] | 311 | bool isDefined = filegroup_hdl->name_suffix.hasInheritedValue(); |
---|
[432] | 312 | CTimer::get("XIOS").suspend(); |
---|
[581] | 313 | return isDefined; |
---|
[432] | 314 | } |
---|
[581] | 315 | |
---|
| 316 | |
---|
[538] | 317 | void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, cxios_duration output_freq_c) |
---|
[325] | 318 | { |
---|
[538] | 319 | CTimer::get("XIOS").resume(); |
---|
| 320 | filegroup_hdl->output_freq.allocate(); |
---|
| 321 | CDuration& output_freq = filegroup_hdl->output_freq.get(); |
---|
| 322 | output_freq.year = output_freq_c.year; |
---|
| 323 | output_freq.month = output_freq_c.month; |
---|
| 324 | output_freq.day = output_freq_c.day; |
---|
| 325 | output_freq.hour = output_freq_c.hour; |
---|
| 326 | output_freq.minute = output_freq_c.minute; |
---|
| 327 | output_freq.second = output_freq_c.second; |
---|
| 328 | output_freq.timestep = output_freq_c.timestep; |
---|
| 329 | CTimer::get("XIOS").suspend(); |
---|
[325] | 330 | } |
---|
[581] | 331 | |
---|
[538] | 332 | void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, cxios_duration* output_freq_c) |
---|
[325] | 333 | { |
---|
[538] | 334 | CTimer::get("XIOS").resume(); |
---|
| 335 | CDuration output_freq = filegroup_hdl->output_freq.getInheritedValue(); |
---|
| 336 | output_freq_c->year = output_freq.year; |
---|
| 337 | output_freq_c->month = output_freq.month; |
---|
| 338 | output_freq_c->day = output_freq.day; |
---|
| 339 | output_freq_c->hour = output_freq.hour; |
---|
| 340 | output_freq_c->minute = output_freq.minute; |
---|
| 341 | output_freq_c->second = output_freq.second; |
---|
| 342 | output_freq_c->timestep = output_freq.timestep; |
---|
| 343 | CTimer::get("XIOS").suspend(); |
---|
[325] | 344 | } |
---|
[581] | 345 | |
---|
| 346 | bool cxios_is_defined_filegroup_output_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 347 | { |
---|
| 348 | CTimer::get("XIOS").resume(); |
---|
[581] | 349 | bool isDefined = filegroup_hdl->output_freq.hasInheritedValue(); |
---|
[432] | 350 | CTimer::get("XIOS").suspend(); |
---|
[581] | 351 | return isDefined; |
---|
[432] | 352 | } |
---|
[581] | 353 | |
---|
| 354 | |
---|
[325] | 355 | void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) |
---|
| 356 | { |
---|
[581] | 357 | CTimer::get("XIOS").resume(); |
---|
[325] | 358 | filegroup_hdl->output_level.setValue(output_level); |
---|
[581] | 359 | CTimer::get("XIOS").suspend(); |
---|
[325] | 360 | } |
---|
[581] | 361 | |
---|
[325] | 362 | void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level) |
---|
| 363 | { |
---|
[581] | 364 | CTimer::get("XIOS").resume(); |
---|
[445] | 365 | *output_level = filegroup_hdl->output_level.getInheritedValue(); |
---|
[581] | 366 | CTimer::get("XIOS").suspend(); |
---|
[325] | 367 | } |
---|
[581] | 368 | |
---|
| 369 | bool cxios_is_defined_filegroup_output_level(filegroup_Ptr filegroup_hdl) |
---|
[432] | 370 | { |
---|
| 371 | CTimer::get("XIOS").resume(); |
---|
[581] | 372 | bool isDefined = filegroup_hdl->output_level.hasInheritedValue(); |
---|
[432] | 373 | CTimer::get("XIOS").suspend(); |
---|
[581] | 374 | return isDefined; |
---|
[432] | 375 | } |
---|
[581] | 376 | |
---|
| 377 | |
---|
[336] | 378 | void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size) |
---|
| 379 | { |
---|
| 380 | std::string par_access_str; |
---|
[581] | 381 | if (!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
| 382 | CTimer::get("XIOS").resume(); |
---|
[526] | 383 | filegroup_hdl->par_access.fromString(par_access_str); |
---|
[581] | 384 | CTimer::get("XIOS").suspend(); |
---|
[336] | 385 | } |
---|
[581] | 386 | |
---|
[336] | 387 | void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) |
---|
| 388 | { |
---|
[581] | 389 | CTimer::get("XIOS").resume(); |
---|
| 390 | if (!string_copy(filegroup_hdl->par_access.getInheritedStringValue(), par_access, par_access_size)) |
---|
| 391 | ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", << "Input string is too short"); |
---|
| 392 | CTimer::get("XIOS").suspend(); |
---|
[336] | 393 | } |
---|
[581] | 394 | |
---|
| 395 | bool cxios_is_defined_filegroup_par_access(filegroup_Ptr filegroup_hdl) |
---|
[432] | 396 | { |
---|
| 397 | CTimer::get("XIOS").resume(); |
---|
[581] | 398 | bool isDefined = filegroup_hdl->par_access.hasInheritedValue(); |
---|
[432] | 399 | CTimer::get("XIOS").suspend(); |
---|
[581] | 400 | return isDefined; |
---|
[432] | 401 | } |
---|
[581] | 402 | |
---|
| 403 | |
---|
[779] | 404 | void cxios_set_filegroup_record_offset(filegroup_Ptr filegroup_hdl, int record_offset) |
---|
| 405 | { |
---|
| 406 | CTimer::get("XIOS").resume(); |
---|
| 407 | filegroup_hdl->record_offset.setValue(record_offset); |
---|
| 408 | CTimer::get("XIOS").suspend(); |
---|
| 409 | } |
---|
| 410 | |
---|
| 411 | void cxios_get_filegroup_record_offset(filegroup_Ptr filegroup_hdl, int* record_offset) |
---|
| 412 | { |
---|
| 413 | CTimer::get("XIOS").resume(); |
---|
| 414 | *record_offset = filegroup_hdl->record_offset.getInheritedValue(); |
---|
| 415 | CTimer::get("XIOS").suspend(); |
---|
| 416 | } |
---|
| 417 | |
---|
| 418 | bool cxios_is_defined_filegroup_record_offset(filegroup_Ptr filegroup_hdl) |
---|
| 419 | { |
---|
| 420 | CTimer::get("XIOS").resume(); |
---|
| 421 | bool isDefined = filegroup_hdl->record_offset.hasInheritedValue(); |
---|
| 422 | CTimer::get("XIOS").suspend(); |
---|
| 423 | return isDefined; |
---|
| 424 | } |
---|
| 425 | |
---|
| 426 | |
---|
[538] | 427 | void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, cxios_duration split_freq_c) |
---|
[325] | 428 | { |
---|
[538] | 429 | CTimer::get("XIOS").resume(); |
---|
| 430 | filegroup_hdl->split_freq.allocate(); |
---|
| 431 | CDuration& split_freq = filegroup_hdl->split_freq.get(); |
---|
| 432 | split_freq.year = split_freq_c.year; |
---|
| 433 | split_freq.month = split_freq_c.month; |
---|
| 434 | split_freq.day = split_freq_c.day; |
---|
| 435 | split_freq.hour = split_freq_c.hour; |
---|
| 436 | split_freq.minute = split_freq_c.minute; |
---|
| 437 | split_freq.second = split_freq_c.second; |
---|
| 438 | split_freq.timestep = split_freq_c.timestep; |
---|
| 439 | CTimer::get("XIOS").suspend(); |
---|
[325] | 440 | } |
---|
[581] | 441 | |
---|
[538] | 442 | void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, cxios_duration* split_freq_c) |
---|
[325] | 443 | { |
---|
[538] | 444 | CTimer::get("XIOS").resume(); |
---|
| 445 | CDuration split_freq = filegroup_hdl->split_freq.getInheritedValue(); |
---|
| 446 | split_freq_c->year = split_freq.year; |
---|
| 447 | split_freq_c->month = split_freq.month; |
---|
| 448 | split_freq_c->day = split_freq.day; |
---|
| 449 | split_freq_c->hour = split_freq.hour; |
---|
| 450 | split_freq_c->minute = split_freq.minute; |
---|
| 451 | split_freq_c->second = split_freq.second; |
---|
| 452 | split_freq_c->timestep = split_freq.timestep; |
---|
| 453 | CTimer::get("XIOS").suspend(); |
---|
[325] | 454 | } |
---|
[581] | 455 | |
---|
| 456 | bool cxios_is_defined_filegroup_split_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 457 | { |
---|
| 458 | CTimer::get("XIOS").resume(); |
---|
[581] | 459 | bool isDefined = filegroup_hdl->split_freq.hasInheritedValue(); |
---|
[432] | 460 | CTimer::get("XIOS").suspend(); |
---|
[581] | 461 | return isDefined; |
---|
[432] | 462 | } |
---|
[581] | 463 | |
---|
| 464 | |
---|
[432] | 465 | void cxios_set_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
| 466 | { |
---|
| 467 | std::string split_freq_format_str; |
---|
[581] | 468 | if (!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
| 469 | CTimer::get("XIOS").resume(); |
---|
[432] | 470 | filegroup_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
[581] | 471 | CTimer::get("XIOS").suspend(); |
---|
[432] | 472 | } |
---|
[581] | 473 | |
---|
[432] | 474 | void cxios_get_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, char * split_freq_format, int split_freq_format_size) |
---|
| 475 | { |
---|
[581] | 476 | CTimer::get("XIOS").resume(); |
---|
| 477 | if (!string_copy(filegroup_hdl->split_freq_format.getInheritedValue(), split_freq_format, split_freq_format_size)) |
---|
| 478 | ERROR("void cxios_get_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, char * split_freq_format, int split_freq_format_size)", << "Input string is too short"); |
---|
| 479 | CTimer::get("XIOS").suspend(); |
---|
[432] | 480 | } |
---|
[581] | 481 | |
---|
| 482 | bool cxios_is_defined_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl) |
---|
[432] | 483 | { |
---|
| 484 | CTimer::get("XIOS").resume(); |
---|
[581] | 485 | bool isDefined = filegroup_hdl->split_freq_format.hasInheritedValue(); |
---|
[432] | 486 | CTimer::get("XIOS").suspend(); |
---|
[581] | 487 | return isDefined; |
---|
[432] | 488 | } |
---|
[581] | 489 | |
---|
| 490 | |
---|
[538] | 491 | void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, cxios_duration sync_freq_c) |
---|
[325] | 492 | { |
---|
[538] | 493 | CTimer::get("XIOS").resume(); |
---|
| 494 | filegroup_hdl->sync_freq.allocate(); |
---|
| 495 | CDuration& sync_freq = filegroup_hdl->sync_freq.get(); |
---|
| 496 | sync_freq.year = sync_freq_c.year; |
---|
| 497 | sync_freq.month = sync_freq_c.month; |
---|
| 498 | sync_freq.day = sync_freq_c.day; |
---|
| 499 | sync_freq.hour = sync_freq_c.hour; |
---|
| 500 | sync_freq.minute = sync_freq_c.minute; |
---|
| 501 | sync_freq.second = sync_freq_c.second; |
---|
| 502 | sync_freq.timestep = sync_freq_c.timestep; |
---|
| 503 | CTimer::get("XIOS").suspend(); |
---|
[325] | 504 | } |
---|
[581] | 505 | |
---|
[538] | 506 | void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, cxios_duration* sync_freq_c) |
---|
[325] | 507 | { |
---|
[538] | 508 | CTimer::get("XIOS").resume(); |
---|
| 509 | CDuration sync_freq = filegroup_hdl->sync_freq.getInheritedValue(); |
---|
| 510 | sync_freq_c->year = sync_freq.year; |
---|
| 511 | sync_freq_c->month = sync_freq.month; |
---|
| 512 | sync_freq_c->day = sync_freq.day; |
---|
| 513 | sync_freq_c->hour = sync_freq.hour; |
---|
| 514 | sync_freq_c->minute = sync_freq.minute; |
---|
| 515 | sync_freq_c->second = sync_freq.second; |
---|
| 516 | sync_freq_c->timestep = sync_freq.timestep; |
---|
| 517 | CTimer::get("XIOS").suspend(); |
---|
[325] | 518 | } |
---|
[581] | 519 | |
---|
| 520 | bool cxios_is_defined_filegroup_sync_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 521 | { |
---|
| 522 | CTimer::get("XIOS").resume(); |
---|
[581] | 523 | bool isDefined = filegroup_hdl->sync_freq.hasInheritedValue(); |
---|
[432] | 524 | CTimer::get("XIOS").suspend(); |
---|
[581] | 525 | return isDefined; |
---|
[432] | 526 | } |
---|
[581] | 527 | |
---|
| 528 | |
---|
[699] | 529 | void cxios_set_filegroup_time_counter(filegroup_Ptr filegroup_hdl, const char * time_counter, int time_counter_size) |
---|
| 530 | { |
---|
| 531 | std::string time_counter_str; |
---|
| 532 | if (!cstr2string(time_counter, time_counter_size, time_counter_str)) return; |
---|
| 533 | CTimer::get("XIOS").resume(); |
---|
| 534 | filegroup_hdl->time_counter.fromString(time_counter_str); |
---|
| 535 | CTimer::get("XIOS").suspend(); |
---|
| 536 | } |
---|
| 537 | |
---|
| 538 | void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size) |
---|
| 539 | { |
---|
| 540 | CTimer::get("XIOS").resume(); |
---|
| 541 | if (!string_copy(filegroup_hdl->time_counter.getInheritedStringValue(), time_counter, time_counter_size)) |
---|
| 542 | ERROR("void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size)", << "Input string is too short"); |
---|
| 543 | CTimer::get("XIOS").suspend(); |
---|
| 544 | } |
---|
| 545 | |
---|
| 546 | bool cxios_is_defined_filegroup_time_counter(filegroup_Ptr filegroup_hdl) |
---|
| 547 | { |
---|
| 548 | CTimer::get("XIOS").resume(); |
---|
| 549 | bool isDefined = filegroup_hdl->time_counter.hasInheritedValue(); |
---|
| 550 | CTimer::get("XIOS").suspend(); |
---|
| 551 | return isDefined; |
---|
| 552 | } |
---|
| 553 | |
---|
| 554 | |
---|
[802] | 555 | void cxios_set_filegroup_time_counter_name(filegroup_Ptr filegroup_hdl, const char * time_counter_name, int time_counter_name_size) |
---|
| 556 | { |
---|
| 557 | std::string time_counter_name_str; |
---|
| 558 | if (!cstr2string(time_counter_name, time_counter_name_size, time_counter_name_str)) return; |
---|
| 559 | CTimer::get("XIOS").resume(); |
---|
| 560 | filegroup_hdl->time_counter_name.setValue(time_counter_name_str); |
---|
| 561 | CTimer::get("XIOS").suspend(); |
---|
| 562 | } |
---|
| 563 | |
---|
| 564 | void cxios_get_filegroup_time_counter_name(filegroup_Ptr filegroup_hdl, char * time_counter_name, int time_counter_name_size) |
---|
| 565 | { |
---|
| 566 | CTimer::get("XIOS").resume(); |
---|
| 567 | if (!string_copy(filegroup_hdl->time_counter_name.getInheritedValue(), time_counter_name, time_counter_name_size)) |
---|
| 568 | ERROR("void cxios_get_filegroup_time_counter_name(filegroup_Ptr filegroup_hdl, char * time_counter_name, int time_counter_name_size)", << "Input string is too short"); |
---|
| 569 | CTimer::get("XIOS").suspend(); |
---|
| 570 | } |
---|
| 571 | |
---|
| 572 | bool cxios_is_defined_filegroup_time_counter_name(filegroup_Ptr filegroup_hdl) |
---|
| 573 | { |
---|
| 574 | CTimer::get("XIOS").resume(); |
---|
| 575 | bool isDefined = filegroup_hdl->time_counter_name.hasInheritedValue(); |
---|
| 576 | CTimer::get("XIOS").suspend(); |
---|
| 577 | return isDefined; |
---|
| 578 | } |
---|
| 579 | |
---|
| 580 | |
---|
[711] | 581 | void cxios_set_filegroup_timeseries(filegroup_Ptr filegroup_hdl, const char * timeseries, int timeseries_size) |
---|
| 582 | { |
---|
| 583 | std::string timeseries_str; |
---|
| 584 | if (!cstr2string(timeseries, timeseries_size, timeseries_str)) return; |
---|
| 585 | CTimer::get("XIOS").resume(); |
---|
| 586 | filegroup_hdl->timeseries.fromString(timeseries_str); |
---|
| 587 | CTimer::get("XIOS").suspend(); |
---|
| 588 | } |
---|
| 589 | |
---|
| 590 | void cxios_get_filegroup_timeseries(filegroup_Ptr filegroup_hdl, char * timeseries, int timeseries_size) |
---|
| 591 | { |
---|
| 592 | CTimer::get("XIOS").resume(); |
---|
| 593 | if (!string_copy(filegroup_hdl->timeseries.getInheritedStringValue(), timeseries, timeseries_size)) |
---|
| 594 | ERROR("void cxios_get_filegroup_timeseries(filegroup_Ptr filegroup_hdl, char * timeseries, int timeseries_size)", << "Input string is too short"); |
---|
| 595 | CTimer::get("XIOS").suspend(); |
---|
| 596 | } |
---|
| 597 | |
---|
| 598 | bool cxios_is_defined_filegroup_timeseries(filegroup_Ptr filegroup_hdl) |
---|
| 599 | { |
---|
| 600 | CTimer::get("XIOS").resume(); |
---|
| 601 | bool isDefined = filegroup_hdl->timeseries.hasInheritedValue(); |
---|
| 602 | CTimer::get("XIOS").suspend(); |
---|
| 603 | return isDefined; |
---|
| 604 | } |
---|
| 605 | |
---|
| 606 | |
---|
| 607 | void cxios_set_filegroup_ts_prefix(filegroup_Ptr filegroup_hdl, const char * ts_prefix, int ts_prefix_size) |
---|
| 608 | { |
---|
| 609 | std::string ts_prefix_str; |
---|
| 610 | if (!cstr2string(ts_prefix, ts_prefix_size, ts_prefix_str)) return; |
---|
| 611 | CTimer::get("XIOS").resume(); |
---|
| 612 | filegroup_hdl->ts_prefix.setValue(ts_prefix_str); |
---|
| 613 | CTimer::get("XIOS").suspend(); |
---|
| 614 | } |
---|
| 615 | |
---|
| 616 | void cxios_get_filegroup_ts_prefix(filegroup_Ptr filegroup_hdl, char * ts_prefix, int ts_prefix_size) |
---|
| 617 | { |
---|
| 618 | CTimer::get("XIOS").resume(); |
---|
| 619 | if (!string_copy(filegroup_hdl->ts_prefix.getInheritedValue(), ts_prefix, ts_prefix_size)) |
---|
| 620 | ERROR("void cxios_get_filegroup_ts_prefix(filegroup_Ptr filegroup_hdl, char * ts_prefix, int ts_prefix_size)", << "Input string is too short"); |
---|
| 621 | CTimer::get("XIOS").suspend(); |
---|
| 622 | } |
---|
| 623 | |
---|
| 624 | bool cxios_is_defined_filegroup_ts_prefix(filegroup_Ptr filegroup_hdl) |
---|
| 625 | { |
---|
| 626 | CTimer::get("XIOS").resume(); |
---|
| 627 | bool isDefined = filegroup_hdl->ts_prefix.hasInheritedValue(); |
---|
| 628 | CTimer::get("XIOS").suspend(); |
---|
| 629 | return isDefined; |
---|
| 630 | } |
---|
| 631 | |
---|
| 632 | |
---|
[325] | 633 | void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) |
---|
| 634 | { |
---|
| 635 | std::string type_str; |
---|
[581] | 636 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 637 | CTimer::get("XIOS").resume(); |
---|
[369] | 638 | filegroup_hdl->type.fromString(type_str); |
---|
[581] | 639 | CTimer::get("XIOS").suspend(); |
---|
[325] | 640 | } |
---|
[581] | 641 | |
---|
[325] | 642 | void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) |
---|
| 643 | { |
---|
[581] | 644 | CTimer::get("XIOS").resume(); |
---|
| 645 | if (!string_copy(filegroup_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
| 646 | ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 647 | CTimer::get("XIOS").suspend(); |
---|
[325] | 648 | } |
---|
[581] | 649 | |
---|
| 650 | bool cxios_is_defined_filegroup_type(filegroup_Ptr filegroup_hdl) |
---|
[432] | 651 | { |
---|
| 652 | CTimer::get("XIOS").resume(); |
---|
[581] | 653 | bool isDefined = filegroup_hdl->type.hasInheritedValue(); |
---|
[432] | 654 | CTimer::get("XIOS").suspend(); |
---|
[581] | 655 | return isDefined; |
---|
[432] | 656 | } |
---|
[325] | 657 | } |
---|