1 | /* ************************************************************************** * |
---|
2 | * Interface auto generated - do not modify * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | #include "xios.hpp" |
---|
8 | #include "attribute_template.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "icdate.hpp" |
---|
13 | #include "timer.hpp" |
---|
14 | #include "node_type.hpp" |
---|
15 | |
---|
16 | extern "C" |
---|
17 | { |
---|
18 | typedef xios::CFile* file_Ptr; |
---|
19 | |
---|
20 | void cxios_set_file_append(file_Ptr file_hdl, bool append) |
---|
21 | { |
---|
22 | CTimer::get("XIOS").resume(); |
---|
23 | file_hdl->append.setValue(append); |
---|
24 | CTimer::get("XIOS").suspend(); |
---|
25 | } |
---|
26 | |
---|
27 | void cxios_get_file_append(file_Ptr file_hdl, bool* append) |
---|
28 | { |
---|
29 | CTimer::get("XIOS").resume(); |
---|
30 | *append = file_hdl->append.getInheritedValue(); |
---|
31 | CTimer::get("XIOS").suspend(); |
---|
32 | } |
---|
33 | |
---|
34 | bool cxios_is_defined_file_append(file_Ptr file_hdl) |
---|
35 | { |
---|
36 | CTimer::get("XIOS").resume(); |
---|
37 | bool isDefined = file_hdl->append.hasInheritedValue(); |
---|
38 | CTimer::get("XIOS").suspend(); |
---|
39 | return isDefined; |
---|
40 | } |
---|
41 | |
---|
42 | |
---|
43 | void cxios_set_file_compression_level(file_Ptr file_hdl, int compression_level) |
---|
44 | { |
---|
45 | CTimer::get("XIOS").resume(); |
---|
46 | file_hdl->compression_level.setValue(compression_level); |
---|
47 | CTimer::get("XIOS").suspend(); |
---|
48 | } |
---|
49 | |
---|
50 | void cxios_get_file_compression_level(file_Ptr file_hdl, int* compression_level) |
---|
51 | { |
---|
52 | CTimer::get("XIOS").resume(); |
---|
53 | *compression_level = file_hdl->compression_level.getInheritedValue(); |
---|
54 | CTimer::get("XIOS").suspend(); |
---|
55 | } |
---|
56 | |
---|
57 | bool cxios_is_defined_file_compression_level(file_Ptr file_hdl) |
---|
58 | { |
---|
59 | CTimer::get("XIOS").resume(); |
---|
60 | bool isDefined = file_hdl->compression_level.hasInheritedValue(); |
---|
61 | CTimer::get("XIOS").suspend(); |
---|
62 | return isDefined; |
---|
63 | } |
---|
64 | |
---|
65 | |
---|
66 | void cxios_set_file_cyclic(file_Ptr file_hdl, bool cyclic) |
---|
67 | { |
---|
68 | CTimer::get("XIOS").resume(); |
---|
69 | file_hdl->cyclic.setValue(cyclic); |
---|
70 | CTimer::get("XIOS").suspend(); |
---|
71 | } |
---|
72 | |
---|
73 | void cxios_get_file_cyclic(file_Ptr file_hdl, bool* cyclic) |
---|
74 | { |
---|
75 | CTimer::get("XIOS").resume(); |
---|
76 | *cyclic = file_hdl->cyclic.getInheritedValue(); |
---|
77 | CTimer::get("XIOS").suspend(); |
---|
78 | } |
---|
79 | |
---|
80 | bool cxios_is_defined_file_cyclic(file_Ptr file_hdl) |
---|
81 | { |
---|
82 | CTimer::get("XIOS").resume(); |
---|
83 | bool isDefined = file_hdl->cyclic.hasInheritedValue(); |
---|
84 | CTimer::get("XIOS").suspend(); |
---|
85 | return isDefined; |
---|
86 | } |
---|
87 | |
---|
88 | |
---|
89 | void cxios_set_file_description(file_Ptr file_hdl, const char * description, int description_size) |
---|
90 | { |
---|
91 | std::string description_str; |
---|
92 | if (!cstr2string(description, description_size, description_str)) return; |
---|
93 | CTimer::get("XIOS").resume(); |
---|
94 | file_hdl->description.setValue(description_str); |
---|
95 | CTimer::get("XIOS").suspend(); |
---|
96 | } |
---|
97 | |
---|
98 | void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size) |
---|
99 | { |
---|
100 | CTimer::get("XIOS").resume(); |
---|
101 | if (!string_copy(file_hdl->description.getInheritedValue(), description, description_size)) |
---|
102 | ERROR("void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size)", << "Input string is too short"); |
---|
103 | CTimer::get("XIOS").suspend(); |
---|
104 | } |
---|
105 | |
---|
106 | bool cxios_is_defined_file_description(file_Ptr file_hdl) |
---|
107 | { |
---|
108 | CTimer::get("XIOS").resume(); |
---|
109 | bool isDefined = file_hdl->description.hasInheritedValue(); |
---|
110 | CTimer::get("XIOS").suspend(); |
---|
111 | return isDefined; |
---|
112 | } |
---|
113 | |
---|
114 | |
---|
115 | void cxios_set_file_enabled(file_Ptr file_hdl, bool enabled) |
---|
116 | { |
---|
117 | CTimer::get("XIOS").resume(); |
---|
118 | file_hdl->enabled.setValue(enabled); |
---|
119 | CTimer::get("XIOS").suspend(); |
---|
120 | } |
---|
121 | |
---|
122 | void cxios_get_file_enabled(file_Ptr file_hdl, bool* enabled) |
---|
123 | { |
---|
124 | CTimer::get("XIOS").resume(); |
---|
125 | *enabled = file_hdl->enabled.getInheritedValue(); |
---|
126 | CTimer::get("XIOS").suspend(); |
---|
127 | } |
---|
128 | |
---|
129 | bool cxios_is_defined_file_enabled(file_Ptr file_hdl) |
---|
130 | { |
---|
131 | CTimer::get("XIOS").resume(); |
---|
132 | bool isDefined = file_hdl->enabled.hasInheritedValue(); |
---|
133 | CTimer::get("XIOS").suspend(); |
---|
134 | return isDefined; |
---|
135 | } |
---|
136 | |
---|
137 | |
---|
138 | void cxios_set_file_format(file_Ptr file_hdl, const char * format, int format_size) |
---|
139 | { |
---|
140 | std::string format_str; |
---|
141 | if (!cstr2string(format, format_size, format_str)) return; |
---|
142 | CTimer::get("XIOS").resume(); |
---|
143 | file_hdl->format.fromString(format_str); |
---|
144 | CTimer::get("XIOS").suspend(); |
---|
145 | } |
---|
146 | |
---|
147 | void cxios_get_file_format(file_Ptr file_hdl, char * format, int format_size) |
---|
148 | { |
---|
149 | CTimer::get("XIOS").resume(); |
---|
150 | if (!string_copy(file_hdl->format.getInheritedStringValue(), format, format_size)) |
---|
151 | ERROR("void cxios_get_file_format(file_Ptr file_hdl, char * format, int format_size)", << "Input string is too short"); |
---|
152 | CTimer::get("XIOS").suspend(); |
---|
153 | } |
---|
154 | |
---|
155 | bool cxios_is_defined_file_format(file_Ptr file_hdl) |
---|
156 | { |
---|
157 | CTimer::get("XIOS").resume(); |
---|
158 | bool isDefined = file_hdl->format.hasInheritedValue(); |
---|
159 | CTimer::get("XIOS").suspend(); |
---|
160 | return isDefined; |
---|
161 | } |
---|
162 | |
---|
163 | |
---|
164 | void cxios_set_file_min_digits(file_Ptr file_hdl, int min_digits) |
---|
165 | { |
---|
166 | CTimer::get("XIOS").resume(); |
---|
167 | file_hdl->min_digits.setValue(min_digits); |
---|
168 | CTimer::get("XIOS").suspend(); |
---|
169 | } |
---|
170 | |
---|
171 | void cxios_get_file_min_digits(file_Ptr file_hdl, int* min_digits) |
---|
172 | { |
---|
173 | CTimer::get("XIOS").resume(); |
---|
174 | *min_digits = file_hdl->min_digits.getInheritedValue(); |
---|
175 | CTimer::get("XIOS").suspend(); |
---|
176 | } |
---|
177 | |
---|
178 | bool cxios_is_defined_file_min_digits(file_Ptr file_hdl) |
---|
179 | { |
---|
180 | CTimer::get("XIOS").resume(); |
---|
181 | bool isDefined = file_hdl->min_digits.hasInheritedValue(); |
---|
182 | CTimer::get("XIOS").suspend(); |
---|
183 | return isDefined; |
---|
184 | } |
---|
185 | |
---|
186 | |
---|
187 | void cxios_set_file_mode(file_Ptr file_hdl, const char * mode, int mode_size) |
---|
188 | { |
---|
189 | std::string mode_str; |
---|
190 | if (!cstr2string(mode, mode_size, mode_str)) return; |
---|
191 | CTimer::get("XIOS").resume(); |
---|
192 | file_hdl->mode.fromString(mode_str); |
---|
193 | CTimer::get("XIOS").suspend(); |
---|
194 | } |
---|
195 | |
---|
196 | void cxios_get_file_mode(file_Ptr file_hdl, char * mode, int mode_size) |
---|
197 | { |
---|
198 | CTimer::get("XIOS").resume(); |
---|
199 | if (!string_copy(file_hdl->mode.getInheritedStringValue(), mode, mode_size)) |
---|
200 | ERROR("void cxios_get_file_mode(file_Ptr file_hdl, char * mode, int mode_size)", << "Input string is too short"); |
---|
201 | CTimer::get("XIOS").suspend(); |
---|
202 | } |
---|
203 | |
---|
204 | bool cxios_is_defined_file_mode(file_Ptr file_hdl) |
---|
205 | { |
---|
206 | CTimer::get("XIOS").resume(); |
---|
207 | bool isDefined = file_hdl->mode.hasInheritedValue(); |
---|
208 | CTimer::get("XIOS").suspend(); |
---|
209 | return isDefined; |
---|
210 | } |
---|
211 | |
---|
212 | |
---|
213 | void cxios_set_file_name(file_Ptr file_hdl, const char * name, int name_size) |
---|
214 | { |
---|
215 | std::string name_str; |
---|
216 | if (!cstr2string(name, name_size, name_str)) return; |
---|
217 | CTimer::get("XIOS").resume(); |
---|
218 | file_hdl->name.setValue(name_str); |
---|
219 | CTimer::get("XIOS").suspend(); |
---|
220 | } |
---|
221 | |
---|
222 | void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size) |
---|
223 | { |
---|
224 | CTimer::get("XIOS").resume(); |
---|
225 | if (!string_copy(file_hdl->name.getInheritedValue(), name, name_size)) |
---|
226 | ERROR("void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
227 | CTimer::get("XIOS").suspend(); |
---|
228 | } |
---|
229 | |
---|
230 | bool cxios_is_defined_file_name(file_Ptr file_hdl) |
---|
231 | { |
---|
232 | CTimer::get("XIOS").resume(); |
---|
233 | bool isDefined = file_hdl->name.hasInheritedValue(); |
---|
234 | CTimer::get("XIOS").suspend(); |
---|
235 | return isDefined; |
---|
236 | } |
---|
237 | |
---|
238 | |
---|
239 | void cxios_set_file_name_suffix(file_Ptr file_hdl, const char * name_suffix, int name_suffix_size) |
---|
240 | { |
---|
241 | std::string name_suffix_str; |
---|
242 | if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
243 | CTimer::get("XIOS").resume(); |
---|
244 | file_hdl->name_suffix.setValue(name_suffix_str); |
---|
245 | CTimer::get("XIOS").suspend(); |
---|
246 | } |
---|
247 | |
---|
248 | void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size) |
---|
249 | { |
---|
250 | CTimer::get("XIOS").resume(); |
---|
251 | if (!string_copy(file_hdl->name_suffix.getInheritedValue(), name_suffix, name_suffix_size)) |
---|
252 | ERROR("void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size)", << "Input string is too short"); |
---|
253 | CTimer::get("XIOS").suspend(); |
---|
254 | } |
---|
255 | |
---|
256 | bool cxios_is_defined_file_name_suffix(file_Ptr file_hdl) |
---|
257 | { |
---|
258 | CTimer::get("XIOS").resume(); |
---|
259 | bool isDefined = file_hdl->name_suffix.hasInheritedValue(); |
---|
260 | CTimer::get("XIOS").suspend(); |
---|
261 | return isDefined; |
---|
262 | } |
---|
263 | |
---|
264 | |
---|
265 | void cxios_set_file_output_freq(file_Ptr file_hdl, cxios_duration output_freq_c) |
---|
266 | { |
---|
267 | CTimer::get("XIOS").resume(); |
---|
268 | file_hdl->output_freq.allocate(); |
---|
269 | CDuration& output_freq = file_hdl->output_freq.get(); |
---|
270 | output_freq.year = output_freq_c.year; |
---|
271 | output_freq.month = output_freq_c.month; |
---|
272 | output_freq.day = output_freq_c.day; |
---|
273 | output_freq.hour = output_freq_c.hour; |
---|
274 | output_freq.minute = output_freq_c.minute; |
---|
275 | output_freq.second = output_freq_c.second; |
---|
276 | output_freq.timestep = output_freq_c.timestep; |
---|
277 | CTimer::get("XIOS").suspend(); |
---|
278 | } |
---|
279 | |
---|
280 | void cxios_get_file_output_freq(file_Ptr file_hdl, cxios_duration* output_freq_c) |
---|
281 | { |
---|
282 | CTimer::get("XIOS").resume(); |
---|
283 | CDuration output_freq = file_hdl->output_freq.getInheritedValue(); |
---|
284 | output_freq_c->year = output_freq.year; |
---|
285 | output_freq_c->month = output_freq.month; |
---|
286 | output_freq_c->day = output_freq.day; |
---|
287 | output_freq_c->hour = output_freq.hour; |
---|
288 | output_freq_c->minute = output_freq.minute; |
---|
289 | output_freq_c->second = output_freq.second; |
---|
290 | output_freq_c->timestep = output_freq.timestep; |
---|
291 | CTimer::get("XIOS").suspend(); |
---|
292 | } |
---|
293 | |
---|
294 | bool cxios_is_defined_file_output_freq(file_Ptr file_hdl) |
---|
295 | { |
---|
296 | CTimer::get("XIOS").resume(); |
---|
297 | bool isDefined = file_hdl->output_freq.hasInheritedValue(); |
---|
298 | CTimer::get("XIOS").suspend(); |
---|
299 | return isDefined; |
---|
300 | } |
---|
301 | |
---|
302 | |
---|
303 | void cxios_set_file_output_level(file_Ptr file_hdl, int output_level) |
---|
304 | { |
---|
305 | CTimer::get("XIOS").resume(); |
---|
306 | file_hdl->output_level.setValue(output_level); |
---|
307 | CTimer::get("XIOS").suspend(); |
---|
308 | } |
---|
309 | |
---|
310 | void cxios_get_file_output_level(file_Ptr file_hdl, int* output_level) |
---|
311 | { |
---|
312 | CTimer::get("XIOS").resume(); |
---|
313 | *output_level = file_hdl->output_level.getInheritedValue(); |
---|
314 | CTimer::get("XIOS").suspend(); |
---|
315 | } |
---|
316 | |
---|
317 | bool cxios_is_defined_file_output_level(file_Ptr file_hdl) |
---|
318 | { |
---|
319 | CTimer::get("XIOS").resume(); |
---|
320 | bool isDefined = file_hdl->output_level.hasInheritedValue(); |
---|
321 | CTimer::get("XIOS").suspend(); |
---|
322 | return isDefined; |
---|
323 | } |
---|
324 | |
---|
325 | |
---|
326 | void cxios_set_file_par_access(file_Ptr file_hdl, const char * par_access, int par_access_size) |
---|
327 | { |
---|
328 | std::string par_access_str; |
---|
329 | if (!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
330 | CTimer::get("XIOS").resume(); |
---|
331 | file_hdl->par_access.fromString(par_access_str); |
---|
332 | CTimer::get("XIOS").suspend(); |
---|
333 | } |
---|
334 | |
---|
335 | void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size) |
---|
336 | { |
---|
337 | CTimer::get("XIOS").resume(); |
---|
338 | if (!string_copy(file_hdl->par_access.getInheritedStringValue(), par_access, par_access_size)) |
---|
339 | ERROR("void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size)", << "Input string is too short"); |
---|
340 | CTimer::get("XIOS").suspend(); |
---|
341 | } |
---|
342 | |
---|
343 | bool cxios_is_defined_file_par_access(file_Ptr file_hdl) |
---|
344 | { |
---|
345 | CTimer::get("XIOS").resume(); |
---|
346 | bool isDefined = file_hdl->par_access.hasInheritedValue(); |
---|
347 | CTimer::get("XIOS").suspend(); |
---|
348 | return isDefined; |
---|
349 | } |
---|
350 | |
---|
351 | |
---|
352 | void cxios_set_file_record_offset(file_Ptr file_hdl, int record_offset) |
---|
353 | { |
---|
354 | CTimer::get("XIOS").resume(); |
---|
355 | file_hdl->record_offset.setValue(record_offset); |
---|
356 | CTimer::get("XIOS").suspend(); |
---|
357 | } |
---|
358 | |
---|
359 | void cxios_get_file_record_offset(file_Ptr file_hdl, int* record_offset) |
---|
360 | { |
---|
361 | CTimer::get("XIOS").resume(); |
---|
362 | *record_offset = file_hdl->record_offset.getInheritedValue(); |
---|
363 | CTimer::get("XIOS").suspend(); |
---|
364 | } |
---|
365 | |
---|
366 | bool cxios_is_defined_file_record_offset(file_Ptr file_hdl) |
---|
367 | { |
---|
368 | CTimer::get("XIOS").resume(); |
---|
369 | bool isDefined = file_hdl->record_offset.hasInheritedValue(); |
---|
370 | CTimer::get("XIOS").suspend(); |
---|
371 | return isDefined; |
---|
372 | } |
---|
373 | |
---|
374 | |
---|
375 | void cxios_set_file_split_freq(file_Ptr file_hdl, cxios_duration split_freq_c) |
---|
376 | { |
---|
377 | CTimer::get("XIOS").resume(); |
---|
378 | file_hdl->split_freq.allocate(); |
---|
379 | CDuration& split_freq = file_hdl->split_freq.get(); |
---|
380 | split_freq.year = split_freq_c.year; |
---|
381 | split_freq.month = split_freq_c.month; |
---|
382 | split_freq.day = split_freq_c.day; |
---|
383 | split_freq.hour = split_freq_c.hour; |
---|
384 | split_freq.minute = split_freq_c.minute; |
---|
385 | split_freq.second = split_freq_c.second; |
---|
386 | split_freq.timestep = split_freq_c.timestep; |
---|
387 | CTimer::get("XIOS").suspend(); |
---|
388 | } |
---|
389 | |
---|
390 | void cxios_get_file_split_freq(file_Ptr file_hdl, cxios_duration* split_freq_c) |
---|
391 | { |
---|
392 | CTimer::get("XIOS").resume(); |
---|
393 | CDuration split_freq = file_hdl->split_freq.getInheritedValue(); |
---|
394 | split_freq_c->year = split_freq.year; |
---|
395 | split_freq_c->month = split_freq.month; |
---|
396 | split_freq_c->day = split_freq.day; |
---|
397 | split_freq_c->hour = split_freq.hour; |
---|
398 | split_freq_c->minute = split_freq.minute; |
---|
399 | split_freq_c->second = split_freq.second; |
---|
400 | split_freq_c->timestep = split_freq.timestep; |
---|
401 | CTimer::get("XIOS").suspend(); |
---|
402 | } |
---|
403 | |
---|
404 | bool cxios_is_defined_file_split_freq(file_Ptr file_hdl) |
---|
405 | { |
---|
406 | CTimer::get("XIOS").resume(); |
---|
407 | bool isDefined = file_hdl->split_freq.hasInheritedValue(); |
---|
408 | CTimer::get("XIOS").suspend(); |
---|
409 | return isDefined; |
---|
410 | } |
---|
411 | |
---|
412 | |
---|
413 | void cxios_set_file_split_freq_format(file_Ptr file_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
414 | { |
---|
415 | std::string split_freq_format_str; |
---|
416 | if (!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
417 | CTimer::get("XIOS").resume(); |
---|
418 | file_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
419 | CTimer::get("XIOS").suspend(); |
---|
420 | } |
---|
421 | |
---|
422 | void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size) |
---|
423 | { |
---|
424 | CTimer::get("XIOS").resume(); |
---|
425 | if (!string_copy(file_hdl->split_freq_format.getInheritedValue(), split_freq_format, split_freq_format_size)) |
---|
426 | ERROR("void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size)", << "Input string is too short"); |
---|
427 | CTimer::get("XIOS").suspend(); |
---|
428 | } |
---|
429 | |
---|
430 | bool cxios_is_defined_file_split_freq_format(file_Ptr file_hdl) |
---|
431 | { |
---|
432 | CTimer::get("XIOS").resume(); |
---|
433 | bool isDefined = file_hdl->split_freq_format.hasInheritedValue(); |
---|
434 | CTimer::get("XIOS").suspend(); |
---|
435 | return isDefined; |
---|
436 | } |
---|
437 | |
---|
438 | |
---|
439 | void cxios_set_file_sync_freq(file_Ptr file_hdl, cxios_duration sync_freq_c) |
---|
440 | { |
---|
441 | CTimer::get("XIOS").resume(); |
---|
442 | file_hdl->sync_freq.allocate(); |
---|
443 | CDuration& sync_freq = file_hdl->sync_freq.get(); |
---|
444 | sync_freq.year = sync_freq_c.year; |
---|
445 | sync_freq.month = sync_freq_c.month; |
---|
446 | sync_freq.day = sync_freq_c.day; |
---|
447 | sync_freq.hour = sync_freq_c.hour; |
---|
448 | sync_freq.minute = sync_freq_c.minute; |
---|
449 | sync_freq.second = sync_freq_c.second; |
---|
450 | sync_freq.timestep = sync_freq_c.timestep; |
---|
451 | CTimer::get("XIOS").suspend(); |
---|
452 | } |
---|
453 | |
---|
454 | void cxios_get_file_sync_freq(file_Ptr file_hdl, cxios_duration* sync_freq_c) |
---|
455 | { |
---|
456 | CTimer::get("XIOS").resume(); |
---|
457 | CDuration sync_freq = file_hdl->sync_freq.getInheritedValue(); |
---|
458 | sync_freq_c->year = sync_freq.year; |
---|
459 | sync_freq_c->month = sync_freq.month; |
---|
460 | sync_freq_c->day = sync_freq.day; |
---|
461 | sync_freq_c->hour = sync_freq.hour; |
---|
462 | sync_freq_c->minute = sync_freq.minute; |
---|
463 | sync_freq_c->second = sync_freq.second; |
---|
464 | sync_freq_c->timestep = sync_freq.timestep; |
---|
465 | CTimer::get("XIOS").suspend(); |
---|
466 | } |
---|
467 | |
---|
468 | bool cxios_is_defined_file_sync_freq(file_Ptr file_hdl) |
---|
469 | { |
---|
470 | CTimer::get("XIOS").resume(); |
---|
471 | bool isDefined = file_hdl->sync_freq.hasInheritedValue(); |
---|
472 | CTimer::get("XIOS").suspend(); |
---|
473 | return isDefined; |
---|
474 | } |
---|
475 | |
---|
476 | |
---|
477 | void cxios_set_file_time_counter(file_Ptr file_hdl, const char * time_counter, int time_counter_size) |
---|
478 | { |
---|
479 | std::string time_counter_str; |
---|
480 | if (!cstr2string(time_counter, time_counter_size, time_counter_str)) return; |
---|
481 | CTimer::get("XIOS").resume(); |
---|
482 | file_hdl->time_counter.fromString(time_counter_str); |
---|
483 | CTimer::get("XIOS").suspend(); |
---|
484 | } |
---|
485 | |
---|
486 | void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size) |
---|
487 | { |
---|
488 | CTimer::get("XIOS").resume(); |
---|
489 | if (!string_copy(file_hdl->time_counter.getInheritedStringValue(), time_counter, time_counter_size)) |
---|
490 | ERROR("void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size)", << "Input string is too short"); |
---|
491 | CTimer::get("XIOS").suspend(); |
---|
492 | } |
---|
493 | |
---|
494 | bool cxios_is_defined_file_time_counter(file_Ptr file_hdl) |
---|
495 | { |
---|
496 | CTimer::get("XIOS").resume(); |
---|
497 | bool isDefined = file_hdl->time_counter.hasInheritedValue(); |
---|
498 | CTimer::get("XIOS").suspend(); |
---|
499 | return isDefined; |
---|
500 | } |
---|
501 | |
---|
502 | |
---|
503 | void cxios_set_file_time_counter_name(file_Ptr file_hdl, const char * time_counter_name, int time_counter_name_size) |
---|
504 | { |
---|
505 | std::string time_counter_name_str; |
---|
506 | if (!cstr2string(time_counter_name, time_counter_name_size, time_counter_name_str)) return; |
---|
507 | CTimer::get("XIOS").resume(); |
---|
508 | file_hdl->time_counter_name.setValue(time_counter_name_str); |
---|
509 | CTimer::get("XIOS").suspend(); |
---|
510 | } |
---|
511 | |
---|
512 | void cxios_get_file_time_counter_name(file_Ptr file_hdl, char * time_counter_name, int time_counter_name_size) |
---|
513 | { |
---|
514 | CTimer::get("XIOS").resume(); |
---|
515 | if (!string_copy(file_hdl->time_counter_name.getInheritedValue(), time_counter_name, time_counter_name_size)) |
---|
516 | ERROR("void cxios_get_file_time_counter_name(file_Ptr file_hdl, char * time_counter_name, int time_counter_name_size)", << "Input string is too short"); |
---|
517 | CTimer::get("XIOS").suspend(); |
---|
518 | } |
---|
519 | |
---|
520 | bool cxios_is_defined_file_time_counter_name(file_Ptr file_hdl) |
---|
521 | { |
---|
522 | CTimer::get("XIOS").resume(); |
---|
523 | bool isDefined = file_hdl->time_counter_name.hasInheritedValue(); |
---|
524 | CTimer::get("XIOS").suspend(); |
---|
525 | return isDefined; |
---|
526 | } |
---|
527 | |
---|
528 | |
---|
529 | void cxios_set_file_timeseries(file_Ptr file_hdl, const char * timeseries, int timeseries_size) |
---|
530 | { |
---|
531 | std::string timeseries_str; |
---|
532 | if (!cstr2string(timeseries, timeseries_size, timeseries_str)) return; |
---|
533 | CTimer::get("XIOS").resume(); |
---|
534 | file_hdl->timeseries.fromString(timeseries_str); |
---|
535 | CTimer::get("XIOS").suspend(); |
---|
536 | } |
---|
537 | |
---|
538 | void cxios_get_file_timeseries(file_Ptr file_hdl, char * timeseries, int timeseries_size) |
---|
539 | { |
---|
540 | CTimer::get("XIOS").resume(); |
---|
541 | if (!string_copy(file_hdl->timeseries.getInheritedStringValue(), timeseries, timeseries_size)) |
---|
542 | ERROR("void cxios_get_file_timeseries(file_Ptr file_hdl, char * timeseries, int timeseries_size)", << "Input string is too short"); |
---|
543 | CTimer::get("XIOS").suspend(); |
---|
544 | } |
---|
545 | |
---|
546 | bool cxios_is_defined_file_timeseries(file_Ptr file_hdl) |
---|
547 | { |
---|
548 | CTimer::get("XIOS").resume(); |
---|
549 | bool isDefined = file_hdl->timeseries.hasInheritedValue(); |
---|
550 | CTimer::get("XIOS").suspend(); |
---|
551 | return isDefined; |
---|
552 | } |
---|
553 | |
---|
554 | |
---|
555 | void cxios_set_file_ts_prefix(file_Ptr file_hdl, const char * ts_prefix, int ts_prefix_size) |
---|
556 | { |
---|
557 | std::string ts_prefix_str; |
---|
558 | if (!cstr2string(ts_prefix, ts_prefix_size, ts_prefix_str)) return; |
---|
559 | CTimer::get("XIOS").resume(); |
---|
560 | file_hdl->ts_prefix.setValue(ts_prefix_str); |
---|
561 | CTimer::get("XIOS").suspend(); |
---|
562 | } |
---|
563 | |
---|
564 | void cxios_get_file_ts_prefix(file_Ptr file_hdl, char * ts_prefix, int ts_prefix_size) |
---|
565 | { |
---|
566 | CTimer::get("XIOS").resume(); |
---|
567 | if (!string_copy(file_hdl->ts_prefix.getInheritedValue(), ts_prefix, ts_prefix_size)) |
---|
568 | ERROR("void cxios_get_file_ts_prefix(file_Ptr file_hdl, char * ts_prefix, int ts_prefix_size)", << "Input string is too short"); |
---|
569 | CTimer::get("XIOS").suspend(); |
---|
570 | } |
---|
571 | |
---|
572 | bool cxios_is_defined_file_ts_prefix(file_Ptr file_hdl) |
---|
573 | { |
---|
574 | CTimer::get("XIOS").resume(); |
---|
575 | bool isDefined = file_hdl->ts_prefix.hasInheritedValue(); |
---|
576 | CTimer::get("XIOS").suspend(); |
---|
577 | return isDefined; |
---|
578 | } |
---|
579 | |
---|
580 | |
---|
581 | void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) |
---|
582 | { |
---|
583 | std::string type_str; |
---|
584 | if (!cstr2string(type, type_size, type_str)) return; |
---|
585 | CTimer::get("XIOS").resume(); |
---|
586 | file_hdl->type.fromString(type_str); |
---|
587 | CTimer::get("XIOS").suspend(); |
---|
588 | } |
---|
589 | |
---|
590 | void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size) |
---|
591 | { |
---|
592 | CTimer::get("XIOS").resume(); |
---|
593 | if (!string_copy(file_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
594 | ERROR("void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
595 | CTimer::get("XIOS").suspend(); |
---|
596 | } |
---|
597 | |
---|
598 | bool cxios_is_defined_file_type(file_Ptr file_hdl) |
---|
599 | { |
---|
600 | CTimer::get("XIOS").resume(); |
---|
601 | bool isDefined = file_hdl->type.hasInheritedValue(); |
---|
602 | CTimer::get("XIOS").suspend(); |
---|
603 | return isDefined; |
---|
604 | } |
---|
605 | } |
---|