[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 | |
---|
[325] | 43 | void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size) |
---|
| 44 | { |
---|
| 45 | std::string description_str; |
---|
[581] | 46 | if (!cstr2string(description, description_size, description_str)) return; |
---|
| 47 | CTimer::get("XIOS").resume(); |
---|
[325] | 48 | filegroup_hdl->description.setValue(description_str); |
---|
[581] | 49 | CTimer::get("XIOS").suspend(); |
---|
[325] | 50 | } |
---|
[581] | 51 | |
---|
[325] | 52 | void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) |
---|
| 53 | { |
---|
[581] | 54 | CTimer::get("XIOS").resume(); |
---|
| 55 | if (!string_copy(filegroup_hdl->description.getInheritedValue(), description, description_size)) |
---|
| 56 | ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", << "Input string is too short"); |
---|
| 57 | CTimer::get("XIOS").suspend(); |
---|
[325] | 58 | } |
---|
[581] | 59 | |
---|
| 60 | bool cxios_is_defined_filegroup_description(filegroup_Ptr filegroup_hdl) |
---|
[432] | 61 | { |
---|
| 62 | CTimer::get("XIOS").resume(); |
---|
[581] | 63 | bool isDefined = filegroup_hdl->description.hasInheritedValue(); |
---|
[432] | 64 | CTimer::get("XIOS").suspend(); |
---|
[581] | 65 | return isDefined; |
---|
[432] | 66 | } |
---|
[581] | 67 | |
---|
| 68 | |
---|
[325] | 69 | void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) |
---|
| 70 | { |
---|
[581] | 71 | CTimer::get("XIOS").resume(); |
---|
[325] | 72 | filegroup_hdl->enabled.setValue(enabled); |
---|
[581] | 73 | CTimer::get("XIOS").suspend(); |
---|
[325] | 74 | } |
---|
[581] | 75 | |
---|
[325] | 76 | void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled) |
---|
| 77 | { |
---|
[581] | 78 | CTimer::get("XIOS").resume(); |
---|
[445] | 79 | *enabled = filegroup_hdl->enabled.getInheritedValue(); |
---|
[581] | 80 | CTimer::get("XIOS").suspend(); |
---|
[325] | 81 | } |
---|
[581] | 82 | |
---|
| 83 | bool cxios_is_defined_filegroup_enabled(filegroup_Ptr filegroup_hdl) |
---|
[432] | 84 | { |
---|
| 85 | CTimer::get("XIOS").resume(); |
---|
[581] | 86 | bool isDefined = filegroup_hdl->enabled.hasInheritedValue(); |
---|
[432] | 87 | CTimer::get("XIOS").suspend(); |
---|
[581] | 88 | return isDefined; |
---|
[432] | 89 | } |
---|
[581] | 90 | |
---|
| 91 | |
---|
[517] | 92 | void cxios_set_filegroup_format(filegroup_Ptr filegroup_hdl, const char * format, int format_size) |
---|
| 93 | { |
---|
| 94 | std::string format_str; |
---|
[581] | 95 | if (!cstr2string(format, format_size, format_str)) return; |
---|
| 96 | CTimer::get("XIOS").resume(); |
---|
[517] | 97 | filegroup_hdl->format.fromString(format_str); |
---|
[581] | 98 | CTimer::get("XIOS").suspend(); |
---|
[517] | 99 | } |
---|
[581] | 100 | |
---|
[517] | 101 | void cxios_get_filegroup_format(filegroup_Ptr filegroup_hdl, char * format, int format_size) |
---|
| 102 | { |
---|
[581] | 103 | CTimer::get("XIOS").resume(); |
---|
| 104 | if (!string_copy(filegroup_hdl->format.getInheritedStringValue(), format, format_size)) |
---|
| 105 | ERROR("void cxios_get_filegroup_format(filegroup_Ptr filegroup_hdl, char * format, int format_size)", << "Input string is too short"); |
---|
| 106 | CTimer::get("XIOS").suspend(); |
---|
[517] | 107 | } |
---|
[581] | 108 | |
---|
| 109 | bool cxios_is_defined_filegroup_format(filegroup_Ptr filegroup_hdl) |
---|
[517] | 110 | { |
---|
| 111 | CTimer::get("XIOS").resume(); |
---|
[581] | 112 | bool isDefined = filegroup_hdl->format.hasInheritedValue(); |
---|
[517] | 113 | CTimer::get("XIOS").suspend(); |
---|
[581] | 114 | return isDefined; |
---|
[517] | 115 | } |
---|
[581] | 116 | |
---|
| 117 | |
---|
[325] | 118 | void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 119 | { |
---|
| 120 | std::string group_ref_str; |
---|
[581] | 121 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 122 | CTimer::get("XIOS").resume(); |
---|
[325] | 123 | filegroup_hdl->group_ref.setValue(group_ref_str); |
---|
[581] | 124 | CTimer::get("XIOS").suspend(); |
---|
[325] | 125 | } |
---|
[581] | 126 | |
---|
[325] | 127 | void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) |
---|
| 128 | { |
---|
[581] | 129 | CTimer::get("XIOS").resume(); |
---|
| 130 | if (!string_copy(filegroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
| 131 | ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
| 132 | CTimer::get("XIOS").suspend(); |
---|
[325] | 133 | } |
---|
[581] | 134 | |
---|
| 135 | bool cxios_is_defined_filegroup_group_ref(filegroup_Ptr filegroup_hdl) |
---|
[432] | 136 | { |
---|
| 137 | CTimer::get("XIOS").resume(); |
---|
[581] | 138 | bool isDefined = filegroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 139 | CTimer::get("XIOS").suspend(); |
---|
[581] | 140 | return isDefined; |
---|
[432] | 141 | } |
---|
[581] | 142 | |
---|
| 143 | |
---|
[415] | 144 | void cxios_set_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int min_digits) |
---|
| 145 | { |
---|
[581] | 146 | CTimer::get("XIOS").resume(); |
---|
[415] | 147 | filegroup_hdl->min_digits.setValue(min_digits); |
---|
[581] | 148 | CTimer::get("XIOS").suspend(); |
---|
[415] | 149 | } |
---|
[581] | 150 | |
---|
[415] | 151 | void cxios_get_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int* min_digits) |
---|
| 152 | { |
---|
[581] | 153 | CTimer::get("XIOS").resume(); |
---|
[445] | 154 | *min_digits = filegroup_hdl->min_digits.getInheritedValue(); |
---|
[581] | 155 | CTimer::get("XIOS").suspend(); |
---|
[415] | 156 | } |
---|
[581] | 157 | |
---|
| 158 | bool cxios_is_defined_filegroup_min_digits(filegroup_Ptr filegroup_hdl) |
---|
[432] | 159 | { |
---|
| 160 | CTimer::get("XIOS").resume(); |
---|
[581] | 161 | bool isDefined = filegroup_hdl->min_digits.hasInheritedValue(); |
---|
[432] | 162 | CTimer::get("XIOS").suspend(); |
---|
[581] | 163 | return isDefined; |
---|
[432] | 164 | } |
---|
[581] | 165 | |
---|
| 166 | |
---|
[325] | 167 | void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) |
---|
| 168 | { |
---|
| 169 | std::string name_str; |
---|
[581] | 170 | if (!cstr2string(name, name_size, name_str)) return; |
---|
| 171 | CTimer::get("XIOS").resume(); |
---|
[325] | 172 | filegroup_hdl->name.setValue(name_str); |
---|
[581] | 173 | CTimer::get("XIOS").suspend(); |
---|
[325] | 174 | } |
---|
[581] | 175 | |
---|
[325] | 176 | void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) |
---|
| 177 | { |
---|
[581] | 178 | CTimer::get("XIOS").resume(); |
---|
| 179 | if (!string_copy(filegroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
| 180 | ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
| 181 | CTimer::get("XIOS").suspend(); |
---|
[325] | 182 | } |
---|
[581] | 183 | |
---|
| 184 | bool cxios_is_defined_filegroup_name(filegroup_Ptr filegroup_hdl) |
---|
[432] | 185 | { |
---|
| 186 | CTimer::get("XIOS").resume(); |
---|
[581] | 187 | bool isDefined = filegroup_hdl->name.hasInheritedValue(); |
---|
[432] | 188 | CTimer::get("XIOS").suspend(); |
---|
[581] | 189 | return isDefined; |
---|
[432] | 190 | } |
---|
[581] | 191 | |
---|
| 192 | |
---|
[325] | 193 | void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 194 | { |
---|
| 195 | std::string name_suffix_str; |
---|
[581] | 196 | if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
| 197 | CTimer::get("XIOS").resume(); |
---|
[325] | 198 | filegroup_hdl->name_suffix.setValue(name_suffix_str); |
---|
[581] | 199 | CTimer::get("XIOS").suspend(); |
---|
[325] | 200 | } |
---|
[581] | 201 | |
---|
[325] | 202 | void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) |
---|
| 203 | { |
---|
[581] | 204 | CTimer::get("XIOS").resume(); |
---|
| 205 | if (!string_copy(filegroup_hdl->name_suffix.getInheritedValue(), name_suffix, name_suffix_size)) |
---|
| 206 | ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", << "Input string is too short"); |
---|
| 207 | CTimer::get("XIOS").suspend(); |
---|
[325] | 208 | } |
---|
[581] | 209 | |
---|
| 210 | bool cxios_is_defined_filegroup_name_suffix(filegroup_Ptr filegroup_hdl) |
---|
[432] | 211 | { |
---|
| 212 | CTimer::get("XIOS").resume(); |
---|
[581] | 213 | bool isDefined = filegroup_hdl->name_suffix.hasInheritedValue(); |
---|
[432] | 214 | CTimer::get("XIOS").suspend(); |
---|
[581] | 215 | return isDefined; |
---|
[432] | 216 | } |
---|
[581] | 217 | |
---|
| 218 | |
---|
[538] | 219 | void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, cxios_duration output_freq_c) |
---|
[325] | 220 | { |
---|
[538] | 221 | CTimer::get("XIOS").resume(); |
---|
| 222 | filegroup_hdl->output_freq.allocate(); |
---|
| 223 | CDuration& output_freq = filegroup_hdl->output_freq.get(); |
---|
| 224 | output_freq.year = output_freq_c.year; |
---|
| 225 | output_freq.month = output_freq_c.month; |
---|
| 226 | output_freq.day = output_freq_c.day; |
---|
| 227 | output_freq.hour = output_freq_c.hour; |
---|
| 228 | output_freq.minute = output_freq_c.minute; |
---|
| 229 | output_freq.second = output_freq_c.second; |
---|
| 230 | output_freq.timestep = output_freq_c.timestep; |
---|
| 231 | CTimer::get("XIOS").suspend(); |
---|
[325] | 232 | } |
---|
[581] | 233 | |
---|
[538] | 234 | void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, cxios_duration* output_freq_c) |
---|
[325] | 235 | { |
---|
[538] | 236 | CTimer::get("XIOS").resume(); |
---|
| 237 | CDuration output_freq = filegroup_hdl->output_freq.getInheritedValue(); |
---|
| 238 | output_freq_c->year = output_freq.year; |
---|
| 239 | output_freq_c->month = output_freq.month; |
---|
| 240 | output_freq_c->day = output_freq.day; |
---|
| 241 | output_freq_c->hour = output_freq.hour; |
---|
| 242 | output_freq_c->minute = output_freq.minute; |
---|
| 243 | output_freq_c->second = output_freq.second; |
---|
| 244 | output_freq_c->timestep = output_freq.timestep; |
---|
| 245 | CTimer::get("XIOS").suspend(); |
---|
[325] | 246 | } |
---|
[581] | 247 | |
---|
| 248 | bool cxios_is_defined_filegroup_output_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 249 | { |
---|
| 250 | CTimer::get("XIOS").resume(); |
---|
[581] | 251 | bool isDefined = filegroup_hdl->output_freq.hasInheritedValue(); |
---|
[432] | 252 | CTimer::get("XIOS").suspend(); |
---|
[581] | 253 | return isDefined; |
---|
[432] | 254 | } |
---|
[581] | 255 | |
---|
| 256 | |
---|
[325] | 257 | void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) |
---|
| 258 | { |
---|
[581] | 259 | CTimer::get("XIOS").resume(); |
---|
[325] | 260 | filegroup_hdl->output_level.setValue(output_level); |
---|
[581] | 261 | CTimer::get("XIOS").suspend(); |
---|
[325] | 262 | } |
---|
[581] | 263 | |
---|
[325] | 264 | void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level) |
---|
| 265 | { |
---|
[581] | 266 | CTimer::get("XIOS").resume(); |
---|
[445] | 267 | *output_level = filegroup_hdl->output_level.getInheritedValue(); |
---|
[581] | 268 | CTimer::get("XIOS").suspend(); |
---|
[325] | 269 | } |
---|
[581] | 270 | |
---|
| 271 | bool cxios_is_defined_filegroup_output_level(filegroup_Ptr filegroup_hdl) |
---|
[432] | 272 | { |
---|
| 273 | CTimer::get("XIOS").resume(); |
---|
[581] | 274 | bool isDefined = filegroup_hdl->output_level.hasInheritedValue(); |
---|
[432] | 275 | CTimer::get("XIOS").suspend(); |
---|
[581] | 276 | return isDefined; |
---|
[432] | 277 | } |
---|
[581] | 278 | |
---|
| 279 | |
---|
[336] | 280 | void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size) |
---|
| 281 | { |
---|
| 282 | std::string par_access_str; |
---|
[581] | 283 | if (!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
| 284 | CTimer::get("XIOS").resume(); |
---|
[526] | 285 | filegroup_hdl->par_access.fromString(par_access_str); |
---|
[581] | 286 | CTimer::get("XIOS").suspend(); |
---|
[336] | 287 | } |
---|
[581] | 288 | |
---|
[336] | 289 | void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) |
---|
| 290 | { |
---|
[581] | 291 | CTimer::get("XIOS").resume(); |
---|
| 292 | if (!string_copy(filegroup_hdl->par_access.getInheritedStringValue(), par_access, par_access_size)) |
---|
| 293 | ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", << "Input string is too short"); |
---|
| 294 | CTimer::get("XIOS").suspend(); |
---|
[336] | 295 | } |
---|
[581] | 296 | |
---|
| 297 | bool cxios_is_defined_filegroup_par_access(filegroup_Ptr filegroup_hdl) |
---|
[432] | 298 | { |
---|
| 299 | CTimer::get("XIOS").resume(); |
---|
[581] | 300 | bool isDefined = filegroup_hdl->par_access.hasInheritedValue(); |
---|
[432] | 301 | CTimer::get("XIOS").suspend(); |
---|
[581] | 302 | return isDefined; |
---|
[432] | 303 | } |
---|
[581] | 304 | |
---|
| 305 | |
---|
[538] | 306 | void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, cxios_duration split_freq_c) |
---|
[325] | 307 | { |
---|
[538] | 308 | CTimer::get("XIOS").resume(); |
---|
| 309 | filegroup_hdl->split_freq.allocate(); |
---|
| 310 | CDuration& split_freq = filegroup_hdl->split_freq.get(); |
---|
| 311 | split_freq.year = split_freq_c.year; |
---|
| 312 | split_freq.month = split_freq_c.month; |
---|
| 313 | split_freq.day = split_freq_c.day; |
---|
| 314 | split_freq.hour = split_freq_c.hour; |
---|
| 315 | split_freq.minute = split_freq_c.minute; |
---|
| 316 | split_freq.second = split_freq_c.second; |
---|
| 317 | split_freq.timestep = split_freq_c.timestep; |
---|
| 318 | CTimer::get("XIOS").suspend(); |
---|
[325] | 319 | } |
---|
[581] | 320 | |
---|
[538] | 321 | void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, cxios_duration* split_freq_c) |
---|
[325] | 322 | { |
---|
[538] | 323 | CTimer::get("XIOS").resume(); |
---|
| 324 | CDuration split_freq = filegroup_hdl->split_freq.getInheritedValue(); |
---|
| 325 | split_freq_c->year = split_freq.year; |
---|
| 326 | split_freq_c->month = split_freq.month; |
---|
| 327 | split_freq_c->day = split_freq.day; |
---|
| 328 | split_freq_c->hour = split_freq.hour; |
---|
| 329 | split_freq_c->minute = split_freq.minute; |
---|
| 330 | split_freq_c->second = split_freq.second; |
---|
| 331 | split_freq_c->timestep = split_freq.timestep; |
---|
| 332 | CTimer::get("XIOS").suspend(); |
---|
[325] | 333 | } |
---|
[581] | 334 | |
---|
| 335 | bool cxios_is_defined_filegroup_split_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 336 | { |
---|
| 337 | CTimer::get("XIOS").resume(); |
---|
[581] | 338 | bool isDefined = filegroup_hdl->split_freq.hasInheritedValue(); |
---|
[432] | 339 | CTimer::get("XIOS").suspend(); |
---|
[581] | 340 | return isDefined; |
---|
[432] | 341 | } |
---|
[581] | 342 | |
---|
| 343 | |
---|
[432] | 344 | void cxios_set_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
| 345 | { |
---|
| 346 | std::string split_freq_format_str; |
---|
[581] | 347 | if (!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
| 348 | CTimer::get("XIOS").resume(); |
---|
[432] | 349 | filegroup_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
[581] | 350 | CTimer::get("XIOS").suspend(); |
---|
[432] | 351 | } |
---|
[581] | 352 | |
---|
[432] | 353 | void cxios_get_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, char * split_freq_format, int split_freq_format_size) |
---|
| 354 | { |
---|
[581] | 355 | CTimer::get("XIOS").resume(); |
---|
| 356 | if (!string_copy(filegroup_hdl->split_freq_format.getInheritedValue(), split_freq_format, split_freq_format_size)) |
---|
| 357 | 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"); |
---|
| 358 | CTimer::get("XIOS").suspend(); |
---|
[432] | 359 | } |
---|
[581] | 360 | |
---|
| 361 | bool cxios_is_defined_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl) |
---|
[432] | 362 | { |
---|
| 363 | CTimer::get("XIOS").resume(); |
---|
[581] | 364 | bool isDefined = filegroup_hdl->split_freq_format.hasInheritedValue(); |
---|
[432] | 365 | CTimer::get("XIOS").suspend(); |
---|
[581] | 366 | return isDefined; |
---|
[432] | 367 | } |
---|
[581] | 368 | |
---|
| 369 | |
---|
[538] | 370 | void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, cxios_duration sync_freq_c) |
---|
[325] | 371 | { |
---|
[538] | 372 | CTimer::get("XIOS").resume(); |
---|
| 373 | filegroup_hdl->sync_freq.allocate(); |
---|
| 374 | CDuration& sync_freq = filegroup_hdl->sync_freq.get(); |
---|
| 375 | sync_freq.year = sync_freq_c.year; |
---|
| 376 | sync_freq.month = sync_freq_c.month; |
---|
| 377 | sync_freq.day = sync_freq_c.day; |
---|
| 378 | sync_freq.hour = sync_freq_c.hour; |
---|
| 379 | sync_freq.minute = sync_freq_c.minute; |
---|
| 380 | sync_freq.second = sync_freq_c.second; |
---|
| 381 | sync_freq.timestep = sync_freq_c.timestep; |
---|
| 382 | CTimer::get("XIOS").suspend(); |
---|
[325] | 383 | } |
---|
[581] | 384 | |
---|
[538] | 385 | void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, cxios_duration* sync_freq_c) |
---|
[325] | 386 | { |
---|
[538] | 387 | CTimer::get("XIOS").resume(); |
---|
| 388 | CDuration sync_freq = filegroup_hdl->sync_freq.getInheritedValue(); |
---|
| 389 | sync_freq_c->year = sync_freq.year; |
---|
| 390 | sync_freq_c->month = sync_freq.month; |
---|
| 391 | sync_freq_c->day = sync_freq.day; |
---|
| 392 | sync_freq_c->hour = sync_freq.hour; |
---|
| 393 | sync_freq_c->minute = sync_freq.minute; |
---|
| 394 | sync_freq_c->second = sync_freq.second; |
---|
| 395 | sync_freq_c->timestep = sync_freq.timestep; |
---|
| 396 | CTimer::get("XIOS").suspend(); |
---|
[325] | 397 | } |
---|
[581] | 398 | |
---|
| 399 | bool cxios_is_defined_filegroup_sync_freq(filegroup_Ptr filegroup_hdl) |
---|
[432] | 400 | { |
---|
| 401 | CTimer::get("XIOS").resume(); |
---|
[581] | 402 | bool isDefined = filegroup_hdl->sync_freq.hasInheritedValue(); |
---|
[432] | 403 | CTimer::get("XIOS").suspend(); |
---|
[581] | 404 | return isDefined; |
---|
[432] | 405 | } |
---|
[581] | 406 | |
---|
| 407 | |
---|
[325] | 408 | void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) |
---|
| 409 | { |
---|
| 410 | std::string type_str; |
---|
[581] | 411 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 412 | CTimer::get("XIOS").resume(); |
---|
[369] | 413 | filegroup_hdl->type.fromString(type_str); |
---|
[581] | 414 | CTimer::get("XIOS").suspend(); |
---|
[325] | 415 | } |
---|
[581] | 416 | |
---|
[325] | 417 | void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) |
---|
| 418 | { |
---|
[581] | 419 | CTimer::get("XIOS").resume(); |
---|
| 420 | if (!string_copy(filegroup_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
| 421 | ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 422 | CTimer::get("XIOS").suspend(); |
---|
[325] | 423 | } |
---|
[581] | 424 | |
---|
| 425 | bool cxios_is_defined_filegroup_type(filegroup_Ptr filegroup_hdl) |
---|
[432] | 426 | { |
---|
| 427 | CTimer::get("XIOS").resume(); |
---|
[581] | 428 | bool isDefined = filegroup_hdl->type.hasInheritedValue(); |
---|
[432] | 429 | CTimer::get("XIOS").suspend(); |
---|
[581] | 430 | return isDefined; |
---|
[432] | 431 | } |
---|
[325] | 432 | } |
---|