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