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::CAxisGroup* axisgroup_Ptr; |
---|
18 | |
---|
19 | void cxios_set_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
20 | { |
---|
21 | std::string axis_ref_str; |
---|
22 | if (!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | axisgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
25 | CTimer::get("XIOS").suspend(); |
---|
26 | } |
---|
27 | |
---|
28 | void cxios_get_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
29 | { |
---|
30 | CTimer::get("XIOS").resume(); |
---|
31 | if (!string_copy(axisgroup_hdl->axis_ref.getInheritedValue(), axis_ref, axis_ref_size)) |
---|
32 | ERROR("void cxios_get_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, char * axis_ref, int axis_ref_size)", << "Input string is too short"); |
---|
33 | CTimer::get("XIOS").suspend(); |
---|
34 | } |
---|
35 | |
---|
36 | bool cxios_is_defined_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl) |
---|
37 | { |
---|
38 | CTimer::get("XIOS").resume(); |
---|
39 | bool isDefined = axisgroup_hdl->axis_ref.hasInheritedValue(); |
---|
40 | CTimer::get("XIOS").suspend(); |
---|
41 | return isDefined; |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | void cxios_set_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, const char * axis_type, int axis_type_size) |
---|
46 | { |
---|
47 | std::string axis_type_str; |
---|
48 | if (!cstr2string(axis_type, axis_type_size, axis_type_str)) return; |
---|
49 | CTimer::get("XIOS").resume(); |
---|
50 | axisgroup_hdl->axis_type.fromString(axis_type_str); |
---|
51 | CTimer::get("XIOS").suspend(); |
---|
52 | } |
---|
53 | |
---|
54 | void cxios_get_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, char * axis_type, int axis_type_size) |
---|
55 | { |
---|
56 | CTimer::get("XIOS").resume(); |
---|
57 | if (!string_copy(axisgroup_hdl->axis_type.getInheritedStringValue(), axis_type, axis_type_size)) |
---|
58 | ERROR("void cxios_get_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl, char * axis_type, int axis_type_size)", << "Input string is too short"); |
---|
59 | CTimer::get("XIOS").suspend(); |
---|
60 | } |
---|
61 | |
---|
62 | bool cxios_is_defined_axisgroup_axis_type(axisgroup_Ptr axisgroup_hdl) |
---|
63 | { |
---|
64 | CTimer::get("XIOS").resume(); |
---|
65 | bool isDefined = axisgroup_hdl->axis_type.hasInheritedValue(); |
---|
66 | CTimer::get("XIOS").suspend(); |
---|
67 | return isDefined; |
---|
68 | } |
---|
69 | |
---|
70 | |
---|
71 | void cxios_set_axisgroup_begin(axisgroup_Ptr axisgroup_hdl, int begin) |
---|
72 | { |
---|
73 | CTimer::get("XIOS").resume(); |
---|
74 | axisgroup_hdl->begin.setValue(begin); |
---|
75 | CTimer::get("XIOS").suspend(); |
---|
76 | } |
---|
77 | |
---|
78 | void cxios_get_axisgroup_begin(axisgroup_Ptr axisgroup_hdl, int* begin) |
---|
79 | { |
---|
80 | CTimer::get("XIOS").resume(); |
---|
81 | *begin = axisgroup_hdl->begin.getInheritedValue(); |
---|
82 | CTimer::get("XIOS").suspend(); |
---|
83 | } |
---|
84 | |
---|
85 | bool cxios_is_defined_axisgroup_begin(axisgroup_Ptr axisgroup_hdl) |
---|
86 | { |
---|
87 | CTimer::get("XIOS").resume(); |
---|
88 | bool isDefined = axisgroup_hdl->begin.hasInheritedValue(); |
---|
89 | CTimer::get("XIOS").suspend(); |
---|
90 | return isDefined; |
---|
91 | } |
---|
92 | |
---|
93 | |
---|
94 | void cxios_set_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl, double* bounds, int* extent) |
---|
95 | { |
---|
96 | CTimer::get("XIOS").resume(); |
---|
97 | CArray<double,2> tmp(bounds, shape(extent[0], extent[1]), neverDeleteData); |
---|
98 | axisgroup_hdl->bounds.reference(tmp.copy()); |
---|
99 | CTimer::get("XIOS").suspend(); |
---|
100 | } |
---|
101 | |
---|
102 | void cxios_get_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl, double* bounds, int* extent) |
---|
103 | { |
---|
104 | CTimer::get("XIOS").resume(); |
---|
105 | CArray<double,2> tmp(bounds, shape(extent[0], extent[1]), neverDeleteData); |
---|
106 | tmp=axisgroup_hdl->bounds.getInheritedValue(); |
---|
107 | CTimer::get("XIOS").suspend(); |
---|
108 | } |
---|
109 | |
---|
110 | bool cxios_is_defined_axisgroup_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
111 | { |
---|
112 | CTimer::get("XIOS").resume(); |
---|
113 | bool isDefined = axisgroup_hdl->bounds.hasInheritedValue(); |
---|
114 | CTimer::get("XIOS").suspend(); |
---|
115 | return isDefined; |
---|
116 | } |
---|
117 | |
---|
118 | |
---|
119 | void cxios_set_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, const char * bounds_name, int bounds_name_size) |
---|
120 | { |
---|
121 | std::string bounds_name_str; |
---|
122 | if (!cstr2string(bounds_name, bounds_name_size, bounds_name_str)) return; |
---|
123 | CTimer::get("XIOS").resume(); |
---|
124 | axisgroup_hdl->bounds_name.setValue(bounds_name_str); |
---|
125 | CTimer::get("XIOS").suspend(); |
---|
126 | } |
---|
127 | |
---|
128 | void cxios_get_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, char * bounds_name, int bounds_name_size) |
---|
129 | { |
---|
130 | CTimer::get("XIOS").resume(); |
---|
131 | if (!string_copy(axisgroup_hdl->bounds_name.getInheritedValue(), bounds_name, bounds_name_size)) |
---|
132 | ERROR("void cxios_get_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl, char * bounds_name, int bounds_name_size)", << "Input string is too short"); |
---|
133 | CTimer::get("XIOS").suspend(); |
---|
134 | } |
---|
135 | |
---|
136 | bool cxios_is_defined_axisgroup_bounds_name(axisgroup_Ptr axisgroup_hdl) |
---|
137 | { |
---|
138 | CTimer::get("XIOS").resume(); |
---|
139 | bool isDefined = axisgroup_hdl->bounds_name.hasInheritedValue(); |
---|
140 | CTimer::get("XIOS").suspend(); |
---|
141 | return isDefined; |
---|
142 | } |
---|
143 | |
---|
144 | |
---|
145 | void cxios_set_axisgroup_chunking_weight(axisgroup_Ptr axisgroup_hdl, double chunking_weight) |
---|
146 | { |
---|
147 | CTimer::get("XIOS").resume(); |
---|
148 | axisgroup_hdl->chunking_weight.setValue(chunking_weight); |
---|
149 | CTimer::get("XIOS").suspend(); |
---|
150 | } |
---|
151 | |
---|
152 | void cxios_get_axisgroup_chunking_weight(axisgroup_Ptr axisgroup_hdl, double* chunking_weight) |
---|
153 | { |
---|
154 | CTimer::get("XIOS").resume(); |
---|
155 | *chunking_weight = axisgroup_hdl->chunking_weight.getInheritedValue(); |
---|
156 | CTimer::get("XIOS").suspend(); |
---|
157 | } |
---|
158 | |
---|
159 | bool cxios_is_defined_axisgroup_chunking_weight(axisgroup_Ptr axisgroup_hdl) |
---|
160 | { |
---|
161 | CTimer::get("XIOS").resume(); |
---|
162 | bool isDefined = axisgroup_hdl->chunking_weight.hasInheritedValue(); |
---|
163 | CTimer::get("XIOS").suspend(); |
---|
164 | return isDefined; |
---|
165 | } |
---|
166 | |
---|
167 | |
---|
168 | void cxios_set_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, const char * comment, int comment_size) |
---|
169 | { |
---|
170 | std::string comment_str; |
---|
171 | if (!cstr2string(comment, comment_size, comment_str)) return; |
---|
172 | CTimer::get("XIOS").resume(); |
---|
173 | axisgroup_hdl->comment.setValue(comment_str); |
---|
174 | CTimer::get("XIOS").suspend(); |
---|
175 | } |
---|
176 | |
---|
177 | void cxios_get_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, char * comment, int comment_size) |
---|
178 | { |
---|
179 | CTimer::get("XIOS").resume(); |
---|
180 | if (!string_copy(axisgroup_hdl->comment.getInheritedValue(), comment, comment_size)) |
---|
181 | ERROR("void cxios_get_axisgroup_comment(axisgroup_Ptr axisgroup_hdl, char * comment, int comment_size)", << "Input string is too short"); |
---|
182 | CTimer::get("XIOS").suspend(); |
---|
183 | } |
---|
184 | |
---|
185 | bool cxios_is_defined_axisgroup_comment(axisgroup_Ptr axisgroup_hdl) |
---|
186 | { |
---|
187 | CTimer::get("XIOS").resume(); |
---|
188 | bool isDefined = axisgroup_hdl->comment.hasInheritedValue(); |
---|
189 | CTimer::get("XIOS").suspend(); |
---|
190 | return isDefined; |
---|
191 | } |
---|
192 | |
---|
193 | |
---|
194 | void cxios_set_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int data_begin) |
---|
195 | { |
---|
196 | CTimer::get("XIOS").resume(); |
---|
197 | axisgroup_hdl->data_begin.setValue(data_begin); |
---|
198 | CTimer::get("XIOS").suspend(); |
---|
199 | } |
---|
200 | |
---|
201 | void cxios_get_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int* data_begin) |
---|
202 | { |
---|
203 | CTimer::get("XIOS").resume(); |
---|
204 | *data_begin = axisgroup_hdl->data_begin.getInheritedValue(); |
---|
205 | CTimer::get("XIOS").suspend(); |
---|
206 | } |
---|
207 | |
---|
208 | bool cxios_is_defined_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl) |
---|
209 | { |
---|
210 | CTimer::get("XIOS").resume(); |
---|
211 | bool isDefined = axisgroup_hdl->data_begin.hasInheritedValue(); |
---|
212 | CTimer::get("XIOS").suspend(); |
---|
213 | return isDefined; |
---|
214 | } |
---|
215 | |
---|
216 | |
---|
217 | void cxios_set_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int* extent) |
---|
218 | { |
---|
219 | CTimer::get("XIOS").resume(); |
---|
220 | CArray<int,1> tmp(data_index, shape(extent[0]), neverDeleteData); |
---|
221 | axisgroup_hdl->data_index.reference(tmp.copy()); |
---|
222 | CTimer::get("XIOS").suspend(); |
---|
223 | } |
---|
224 | |
---|
225 | void cxios_get_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int* extent) |
---|
226 | { |
---|
227 | CTimer::get("XIOS").resume(); |
---|
228 | CArray<int,1> tmp(data_index, shape(extent[0]), neverDeleteData); |
---|
229 | tmp=axisgroup_hdl->data_index.getInheritedValue(); |
---|
230 | CTimer::get("XIOS").suspend(); |
---|
231 | } |
---|
232 | |
---|
233 | bool cxios_is_defined_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl) |
---|
234 | { |
---|
235 | CTimer::get("XIOS").resume(); |
---|
236 | bool isDefined = axisgroup_hdl->data_index.hasInheritedValue(); |
---|
237 | CTimer::get("XIOS").suspend(); |
---|
238 | return isDefined; |
---|
239 | } |
---|
240 | |
---|
241 | |
---|
242 | void cxios_set_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int data_n) |
---|
243 | { |
---|
244 | CTimer::get("XIOS").resume(); |
---|
245 | axisgroup_hdl->data_n.setValue(data_n); |
---|
246 | CTimer::get("XIOS").suspend(); |
---|
247 | } |
---|
248 | |
---|
249 | void cxios_get_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int* data_n) |
---|
250 | { |
---|
251 | CTimer::get("XIOS").resume(); |
---|
252 | *data_n = axisgroup_hdl->data_n.getInheritedValue(); |
---|
253 | CTimer::get("XIOS").suspend(); |
---|
254 | } |
---|
255 | |
---|
256 | bool cxios_is_defined_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl) |
---|
257 | { |
---|
258 | CTimer::get("XIOS").resume(); |
---|
259 | bool isDefined = axisgroup_hdl->data_n.hasInheritedValue(); |
---|
260 | CTimer::get("XIOS").suspend(); |
---|
261 | return isDefined; |
---|
262 | } |
---|
263 | |
---|
264 | |
---|
265 | void cxios_set_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, const char * dim_name, int dim_name_size) |
---|
266 | { |
---|
267 | std::string dim_name_str; |
---|
268 | if (!cstr2string(dim_name, dim_name_size, dim_name_str)) return; |
---|
269 | CTimer::get("XIOS").resume(); |
---|
270 | axisgroup_hdl->dim_name.setValue(dim_name_str); |
---|
271 | CTimer::get("XIOS").suspend(); |
---|
272 | } |
---|
273 | |
---|
274 | void cxios_get_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, char * dim_name, int dim_name_size) |
---|
275 | { |
---|
276 | CTimer::get("XIOS").resume(); |
---|
277 | if (!string_copy(axisgroup_hdl->dim_name.getInheritedValue(), dim_name, dim_name_size)) |
---|
278 | ERROR("void cxios_get_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl, char * dim_name, int dim_name_size)", << "Input string is too short"); |
---|
279 | CTimer::get("XIOS").suspend(); |
---|
280 | } |
---|
281 | |
---|
282 | bool cxios_is_defined_axisgroup_dim_name(axisgroup_Ptr axisgroup_hdl) |
---|
283 | { |
---|
284 | CTimer::get("XIOS").resume(); |
---|
285 | bool isDefined = axisgroup_hdl->dim_name.hasInheritedValue(); |
---|
286 | CTimer::get("XIOS").suspend(); |
---|
287 | return isDefined; |
---|
288 | } |
---|
289 | |
---|
290 | |
---|
291 | void cxios_set_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, const char * formula, int formula_size) |
---|
292 | { |
---|
293 | std::string formula_str; |
---|
294 | if (!cstr2string(formula, formula_size, formula_str)) return; |
---|
295 | CTimer::get("XIOS").resume(); |
---|
296 | axisgroup_hdl->formula.setValue(formula_str); |
---|
297 | CTimer::get("XIOS").suspend(); |
---|
298 | } |
---|
299 | |
---|
300 | void cxios_get_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, char * formula, int formula_size) |
---|
301 | { |
---|
302 | CTimer::get("XIOS").resume(); |
---|
303 | if (!string_copy(axisgroup_hdl->formula.getInheritedValue(), formula, formula_size)) |
---|
304 | ERROR("void cxios_get_axisgroup_formula(axisgroup_Ptr axisgroup_hdl, char * formula, int formula_size)", << "Input string is too short"); |
---|
305 | CTimer::get("XIOS").suspend(); |
---|
306 | } |
---|
307 | |
---|
308 | bool cxios_is_defined_axisgroup_formula(axisgroup_Ptr axisgroup_hdl) |
---|
309 | { |
---|
310 | CTimer::get("XIOS").resume(); |
---|
311 | bool isDefined = axisgroup_hdl->formula.hasInheritedValue(); |
---|
312 | CTimer::get("XIOS").suspend(); |
---|
313 | return isDefined; |
---|
314 | } |
---|
315 | |
---|
316 | |
---|
317 | void cxios_set_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, const char * formula_bounds, int formula_bounds_size) |
---|
318 | { |
---|
319 | std::string formula_bounds_str; |
---|
320 | if (!cstr2string(formula_bounds, formula_bounds_size, formula_bounds_str)) return; |
---|
321 | CTimer::get("XIOS").resume(); |
---|
322 | axisgroup_hdl->formula_bounds.setValue(formula_bounds_str); |
---|
323 | CTimer::get("XIOS").suspend(); |
---|
324 | } |
---|
325 | |
---|
326 | void cxios_get_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_bounds, int formula_bounds_size) |
---|
327 | { |
---|
328 | CTimer::get("XIOS").resume(); |
---|
329 | if (!string_copy(axisgroup_hdl->formula_bounds.getInheritedValue(), formula_bounds, formula_bounds_size)) |
---|
330 | ERROR("void cxios_get_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_bounds, int formula_bounds_size)", << "Input string is too short"); |
---|
331 | CTimer::get("XIOS").suspend(); |
---|
332 | } |
---|
333 | |
---|
334 | bool cxios_is_defined_axisgroup_formula_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
335 | { |
---|
336 | CTimer::get("XIOS").resume(); |
---|
337 | bool isDefined = axisgroup_hdl->formula_bounds.hasInheritedValue(); |
---|
338 | CTimer::get("XIOS").suspend(); |
---|
339 | return isDefined; |
---|
340 | } |
---|
341 | |
---|
342 | |
---|
343 | void cxios_set_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, const char * formula_term, int formula_term_size) |
---|
344 | { |
---|
345 | std::string formula_term_str; |
---|
346 | if (!cstr2string(formula_term, formula_term_size, formula_term_str)) return; |
---|
347 | CTimer::get("XIOS").resume(); |
---|
348 | axisgroup_hdl->formula_term.setValue(formula_term_str); |
---|
349 | CTimer::get("XIOS").suspend(); |
---|
350 | } |
---|
351 | |
---|
352 | void cxios_get_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, char * formula_term, int formula_term_size) |
---|
353 | { |
---|
354 | CTimer::get("XIOS").resume(); |
---|
355 | if (!string_copy(axisgroup_hdl->formula_term.getInheritedValue(), formula_term, formula_term_size)) |
---|
356 | ERROR("void cxios_get_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl, char * formula_term, int formula_term_size)", << "Input string is too short"); |
---|
357 | CTimer::get("XIOS").suspend(); |
---|
358 | } |
---|
359 | |
---|
360 | bool cxios_is_defined_axisgroup_formula_term(axisgroup_Ptr axisgroup_hdl) |
---|
361 | { |
---|
362 | CTimer::get("XIOS").resume(); |
---|
363 | bool isDefined = axisgroup_hdl->formula_term.hasInheritedValue(); |
---|
364 | CTimer::get("XIOS").suspend(); |
---|
365 | return isDefined; |
---|
366 | } |
---|
367 | |
---|
368 | |
---|
369 | void cxios_set_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, const char * formula_term_bounds, int formula_term_bounds_size) |
---|
370 | { |
---|
371 | std::string formula_term_bounds_str; |
---|
372 | if (!cstr2string(formula_term_bounds, formula_term_bounds_size, formula_term_bounds_str)) return; |
---|
373 | CTimer::get("XIOS").resume(); |
---|
374 | axisgroup_hdl->formula_term_bounds.setValue(formula_term_bounds_str); |
---|
375 | CTimer::get("XIOS").suspend(); |
---|
376 | } |
---|
377 | |
---|
378 | void cxios_get_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_term_bounds, int formula_term_bounds_size) |
---|
379 | { |
---|
380 | CTimer::get("XIOS").resume(); |
---|
381 | if (!string_copy(axisgroup_hdl->formula_term_bounds.getInheritedValue(), formula_term_bounds, formula_term_bounds_size)) |
---|
382 | ERROR("void cxios_get_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl, char * formula_term_bounds, int formula_term_bounds_size)", << "Input string is too short"); |
---|
383 | CTimer::get("XIOS").suspend(); |
---|
384 | } |
---|
385 | |
---|
386 | bool cxios_is_defined_axisgroup_formula_term_bounds(axisgroup_Ptr axisgroup_hdl) |
---|
387 | { |
---|
388 | CTimer::get("XIOS").resume(); |
---|
389 | bool isDefined = axisgroup_hdl->formula_term_bounds.hasInheritedValue(); |
---|
390 | CTimer::get("XIOS").suspend(); |
---|
391 | return isDefined; |
---|
392 | } |
---|
393 | |
---|
394 | |
---|
395 | void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size) |
---|
396 | { |
---|
397 | std::string group_ref_str; |
---|
398 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
399 | CTimer::get("XIOS").resume(); |
---|
400 | axisgroup_hdl->group_ref.setValue(group_ref_str); |
---|
401 | CTimer::get("XIOS").suspend(); |
---|
402 | } |
---|
403 | |
---|
404 | void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size) |
---|
405 | { |
---|
406 | CTimer::get("XIOS").resume(); |
---|
407 | if (!string_copy(axisgroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) |
---|
408 | ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); |
---|
409 | CTimer::get("XIOS").suspend(); |
---|
410 | } |
---|
411 | |
---|
412 | bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl) |
---|
413 | { |
---|
414 | CTimer::get("XIOS").resume(); |
---|
415 | bool isDefined = axisgroup_hdl->group_ref.hasInheritedValue(); |
---|
416 | CTimer::get("XIOS").suspend(); |
---|
417 | return isDefined; |
---|
418 | } |
---|
419 | |
---|
420 | |
---|
421 | void cxios_set_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) |
---|
422 | { |
---|
423 | CTimer::get("XIOS").resume(); |
---|
424 | CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); |
---|
425 | axisgroup_hdl->index.reference(tmp.copy()); |
---|
426 | CTimer::get("XIOS").suspend(); |
---|
427 | } |
---|
428 | |
---|
429 | void cxios_get_axisgroup_index(axisgroup_Ptr axisgroup_hdl, int* index, int* extent) |
---|
430 | { |
---|
431 | CTimer::get("XIOS").resume(); |
---|
432 | CArray<int,1> tmp(index, shape(extent[0]), neverDeleteData); |
---|
433 | tmp=axisgroup_hdl->index.getInheritedValue(); |
---|
434 | CTimer::get("XIOS").suspend(); |
---|
435 | } |
---|
436 | |
---|
437 | bool cxios_is_defined_axisgroup_index(axisgroup_Ptr axisgroup_hdl) |
---|
438 | { |
---|
439 | CTimer::get("XIOS").resume(); |
---|
440 | bool isDefined = axisgroup_hdl->index.hasInheritedValue(); |
---|
441 | CTimer::get("XIOS").suspend(); |
---|
442 | return isDefined; |
---|
443 | } |
---|
444 | |
---|
445 | |
---|
446 | void cxios_set_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_len, int* str_size, int* extent) |
---|
447 | { |
---|
448 | CTimer::get("XIOS").resume(); |
---|
449 | axisgroup_hdl->label.resize(shape(extent[0])); |
---|
450 | Array<StdString,1>::iterator it, itb=axisgroup_hdl->label.begin(), ite=axisgroup_hdl->label.end() ; |
---|
451 | int i, n ; |
---|
452 | for(it=itb, i=0, n=0 ; it!=ite ; ++it,n+=str_len,++i) *it=StdString(&label[n],str_size[i]) ; |
---|
453 | CTimer::get("XIOS").suspend(); |
---|
454 | } |
---|
455 | |
---|
456 | void cxios_get_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_size, int* extent) |
---|
457 | { |
---|
458 | CTimer::get("XIOS").resume(); |
---|
459 | Array<StdString,1>::const_iterator it, itb=axisgroup_hdl->label.getInheritedValue().begin(), ite=axisgroup_hdl->label.getInheritedValue().end() ; |
---|
460 | int n ; |
---|
461 | for(it=itb, n=0 ; it!=ite ; ++it, n+=str_size) it->copy(&label[n],it->size()) ; |
---|
462 | CTimer::get("XIOS").suspend(); |
---|
463 | } |
---|
464 | |
---|
465 | bool cxios_is_defined_axisgroup_label(axisgroup_Ptr axisgroup_hdl) |
---|
466 | { |
---|
467 | CTimer::get("XIOS").resume(); |
---|
468 | bool isDefined = axisgroup_hdl->label.hasInheritedValue(); |
---|
469 | CTimer::get("XIOS").suspend(); |
---|
470 | return isDefined; |
---|
471 | } |
---|
472 | |
---|
473 | |
---|
474 | void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) |
---|
475 | { |
---|
476 | std::string long_name_str; |
---|
477 | if (!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
478 | CTimer::get("XIOS").resume(); |
---|
479 | axisgroup_hdl->long_name.setValue(long_name_str); |
---|
480 | CTimer::get("XIOS").suspend(); |
---|
481 | } |
---|
482 | |
---|
483 | void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size) |
---|
484 | { |
---|
485 | CTimer::get("XIOS").resume(); |
---|
486 | if (!string_copy(axisgroup_hdl->long_name.getInheritedValue(), long_name, long_name_size)) |
---|
487 | ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", << "Input string is too short"); |
---|
488 | CTimer::get("XIOS").suspend(); |
---|
489 | } |
---|
490 | |
---|
491 | bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl) |
---|
492 | { |
---|
493 | CTimer::get("XIOS").resume(); |
---|
494 | bool isDefined = axisgroup_hdl->long_name.hasInheritedValue(); |
---|
495 | CTimer::get("XIOS").suspend(); |
---|
496 | return isDefined; |
---|
497 | } |
---|
498 | |
---|
499 | |
---|
500 | void cxios_set_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int* extent) |
---|
501 | { |
---|
502 | CTimer::get("XIOS").resume(); |
---|
503 | CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData); |
---|
504 | axisgroup_hdl->mask.reference(tmp.copy()); |
---|
505 | CTimer::get("XIOS").suspend(); |
---|
506 | } |
---|
507 | |
---|
508 | void cxios_get_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int* extent) |
---|
509 | { |
---|
510 | CTimer::get("XIOS").resume(); |
---|
511 | CArray<bool,1> tmp(mask, shape(extent[0]), neverDeleteData); |
---|
512 | tmp=axisgroup_hdl->mask.getInheritedValue(); |
---|
513 | CTimer::get("XIOS").suspend(); |
---|
514 | } |
---|
515 | |
---|
516 | bool cxios_is_defined_axisgroup_mask(axisgroup_Ptr axisgroup_hdl) |
---|
517 | { |
---|
518 | CTimer::get("XIOS").resume(); |
---|
519 | bool isDefined = axisgroup_hdl->mask.hasInheritedValue(); |
---|
520 | CTimer::get("XIOS").suspend(); |
---|
521 | return isDefined; |
---|
522 | } |
---|
523 | |
---|
524 | |
---|
525 | void cxios_set_axisgroup_n(axisgroup_Ptr axisgroup_hdl, int n) |
---|
526 | { |
---|
527 | CTimer::get("XIOS").resume(); |
---|
528 | axisgroup_hdl->n.setValue(n); |
---|
529 | CTimer::get("XIOS").suspend(); |
---|
530 | } |
---|
531 | |
---|
532 | void cxios_get_axisgroup_n(axisgroup_Ptr axisgroup_hdl, int* n) |
---|
533 | { |
---|
534 | CTimer::get("XIOS").resume(); |
---|
535 | *n = axisgroup_hdl->n.getInheritedValue(); |
---|
536 | CTimer::get("XIOS").suspend(); |
---|
537 | } |
---|
538 | |
---|
539 | bool cxios_is_defined_axisgroup_n(axisgroup_Ptr axisgroup_hdl) |
---|
540 | { |
---|
541 | CTimer::get("XIOS").resume(); |
---|
542 | bool isDefined = axisgroup_hdl->n.hasInheritedValue(); |
---|
543 | CTimer::get("XIOS").suspend(); |
---|
544 | return isDefined; |
---|
545 | } |
---|
546 | |
---|
547 | |
---|
548 | void cxios_set_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl, int n_distributed_partition) |
---|
549 | { |
---|
550 | CTimer::get("XIOS").resume(); |
---|
551 | axisgroup_hdl->n_distributed_partition.setValue(n_distributed_partition); |
---|
552 | CTimer::get("XIOS").suspend(); |
---|
553 | } |
---|
554 | |
---|
555 | void cxios_get_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl, int* n_distributed_partition) |
---|
556 | { |
---|
557 | CTimer::get("XIOS").resume(); |
---|
558 | *n_distributed_partition = axisgroup_hdl->n_distributed_partition.getInheritedValue(); |
---|
559 | CTimer::get("XIOS").suspend(); |
---|
560 | } |
---|
561 | |
---|
562 | bool cxios_is_defined_axisgroup_n_distributed_partition(axisgroup_Ptr axisgroup_hdl) |
---|
563 | { |
---|
564 | CTimer::get("XIOS").resume(); |
---|
565 | bool isDefined = axisgroup_hdl->n_distributed_partition.hasInheritedValue(); |
---|
566 | CTimer::get("XIOS").suspend(); |
---|
567 | return isDefined; |
---|
568 | } |
---|
569 | |
---|
570 | |
---|
571 | void cxios_set_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl, int n_glo) |
---|
572 | { |
---|
573 | CTimer::get("XIOS").resume(); |
---|
574 | axisgroup_hdl->n_glo.setValue(n_glo); |
---|
575 | CTimer::get("XIOS").suspend(); |
---|
576 | } |
---|
577 | |
---|
578 | void cxios_get_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl, int* n_glo) |
---|
579 | { |
---|
580 | CTimer::get("XIOS").resume(); |
---|
581 | *n_glo = axisgroup_hdl->n_glo.getInheritedValue(); |
---|
582 | CTimer::get("XIOS").suspend(); |
---|
583 | } |
---|
584 | |
---|
585 | bool cxios_is_defined_axisgroup_n_glo(axisgroup_Ptr axisgroup_hdl) |
---|
586 | { |
---|
587 | CTimer::get("XIOS").resume(); |
---|
588 | bool isDefined = axisgroup_hdl->n_glo.hasInheritedValue(); |
---|
589 | CTimer::get("XIOS").suspend(); |
---|
590 | return isDefined; |
---|
591 | } |
---|
592 | |
---|
593 | |
---|
594 | void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size) |
---|
595 | { |
---|
596 | std::string name_str; |
---|
597 | if (!cstr2string(name, name_size, name_str)) return; |
---|
598 | CTimer::get("XIOS").resume(); |
---|
599 | axisgroup_hdl->name.setValue(name_str); |
---|
600 | CTimer::get("XIOS").suspend(); |
---|
601 | } |
---|
602 | |
---|
603 | void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size) |
---|
604 | { |
---|
605 | CTimer::get("XIOS").resume(); |
---|
606 | if (!string_copy(axisgroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
607 | ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
608 | CTimer::get("XIOS").suspend(); |
---|
609 | } |
---|
610 | |
---|
611 | bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl) |
---|
612 | { |
---|
613 | CTimer::get("XIOS").resume(); |
---|
614 | bool isDefined = axisgroup_hdl->name.hasInheritedValue(); |
---|
615 | CTimer::get("XIOS").suspend(); |
---|
616 | return isDefined; |
---|
617 | } |
---|
618 | |
---|
619 | |
---|
620 | void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) |
---|
621 | { |
---|
622 | std::string positive_str; |
---|
623 | if (!cstr2string(positive, positive_size, positive_str)) return; |
---|
624 | CTimer::get("XIOS").resume(); |
---|
625 | axisgroup_hdl->positive.fromString(positive_str); |
---|
626 | CTimer::get("XIOS").suspend(); |
---|
627 | } |
---|
628 | |
---|
629 | void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size) |
---|
630 | { |
---|
631 | CTimer::get("XIOS").resume(); |
---|
632 | if (!string_copy(axisgroup_hdl->positive.getInheritedStringValue(), positive, positive_size)) |
---|
633 | ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", << "Input string is too short"); |
---|
634 | CTimer::get("XIOS").suspend(); |
---|
635 | } |
---|
636 | |
---|
637 | bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl) |
---|
638 | { |
---|
639 | CTimer::get("XIOS").resume(); |
---|
640 | bool isDefined = axisgroup_hdl->positive.hasInheritedValue(); |
---|
641 | CTimer::get("XIOS").suspend(); |
---|
642 | return isDefined; |
---|
643 | } |
---|
644 | |
---|
645 | |
---|
646 | void cxios_set_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int prec) |
---|
647 | { |
---|
648 | CTimer::get("XIOS").resume(); |
---|
649 | axisgroup_hdl->prec.setValue(prec); |
---|
650 | CTimer::get("XIOS").suspend(); |
---|
651 | } |
---|
652 | |
---|
653 | void cxios_get_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int* prec) |
---|
654 | { |
---|
655 | CTimer::get("XIOS").resume(); |
---|
656 | *prec = axisgroup_hdl->prec.getInheritedValue(); |
---|
657 | CTimer::get("XIOS").suspend(); |
---|
658 | } |
---|
659 | |
---|
660 | bool cxios_is_defined_axisgroup_prec(axisgroup_Ptr axisgroup_hdl) |
---|
661 | { |
---|
662 | CTimer::get("XIOS").resume(); |
---|
663 | bool isDefined = axisgroup_hdl->prec.hasInheritedValue(); |
---|
664 | CTimer::get("XIOS").suspend(); |
---|
665 | return isDefined; |
---|
666 | } |
---|
667 | |
---|
668 | |
---|
669 | void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size) |
---|
670 | { |
---|
671 | std::string standard_name_str; |
---|
672 | if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
673 | CTimer::get("XIOS").resume(); |
---|
674 | axisgroup_hdl->standard_name.setValue(standard_name_str); |
---|
675 | CTimer::get("XIOS").suspend(); |
---|
676 | } |
---|
677 | |
---|
678 | void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size) |
---|
679 | { |
---|
680 | CTimer::get("XIOS").resume(); |
---|
681 | if (!string_copy(axisgroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size)) |
---|
682 | ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short"); |
---|
683 | CTimer::get("XIOS").suspend(); |
---|
684 | } |
---|
685 | |
---|
686 | bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl) |
---|
687 | { |
---|
688 | CTimer::get("XIOS").resume(); |
---|
689 | bool isDefined = axisgroup_hdl->standard_name.hasInheritedValue(); |
---|
690 | CTimer::get("XIOS").suspend(); |
---|
691 | return isDefined; |
---|
692 | } |
---|
693 | |
---|
694 | |
---|
695 | void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size) |
---|
696 | { |
---|
697 | std::string unit_str; |
---|
698 | if (!cstr2string(unit, unit_size, unit_str)) return; |
---|
699 | CTimer::get("XIOS").resume(); |
---|
700 | axisgroup_hdl->unit.setValue(unit_str); |
---|
701 | CTimer::get("XIOS").suspend(); |
---|
702 | } |
---|
703 | |
---|
704 | void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size) |
---|
705 | { |
---|
706 | CTimer::get("XIOS").resume(); |
---|
707 | if (!string_copy(axisgroup_hdl->unit.getInheritedValue(), unit, unit_size)) |
---|
708 | ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", << "Input string is too short"); |
---|
709 | CTimer::get("XIOS").suspend(); |
---|
710 | } |
---|
711 | |
---|
712 | bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl) |
---|
713 | { |
---|
714 | CTimer::get("XIOS").resume(); |
---|
715 | bool isDefined = axisgroup_hdl->unit.hasInheritedValue(); |
---|
716 | CTimer::get("XIOS").suspend(); |
---|
717 | return isDefined; |
---|
718 | } |
---|
719 | |
---|
720 | |
---|
721 | void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int* extent) |
---|
722 | { |
---|
723 | CTimer::get("XIOS").resume(); |
---|
724 | CArray<double,1> tmp(value, shape(extent[0]), neverDeleteData); |
---|
725 | axisgroup_hdl->value.reference(tmp.copy()); |
---|
726 | CTimer::get("XIOS").suspend(); |
---|
727 | } |
---|
728 | |
---|
729 | void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int* extent) |
---|
730 | { |
---|
731 | CTimer::get("XIOS").resume(); |
---|
732 | CArray<double,1> tmp(value, shape(extent[0]), neverDeleteData); |
---|
733 | tmp=axisgroup_hdl->value.getInheritedValue(); |
---|
734 | CTimer::get("XIOS").suspend(); |
---|
735 | } |
---|
736 | |
---|
737 | bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl) |
---|
738 | { |
---|
739 | CTimer::get("XIOS").resume(); |
---|
740 | bool isDefined = axisgroup_hdl->value.hasInheritedValue(); |
---|
741 | CTimer::get("XIOS").suspend(); |
---|
742 | return isDefined; |
---|
743 | } |
---|
744 | } |
---|