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