source: XIOS/trunk/src/interface/c_attr/icaxisgroup_attr.cpp @ 581

Last change on this file since 581 was 581, checked in by rlacroix, 9 years ago

Fix the Fortran interface generation to avoid generating dead code that caused a timer not to be stopped.

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
  • Property svn:eol-style set to native
File size: 14.9 KB
Line 
1/* ************************************************************************** *
2 *               Interface auto generated - do not modify                     *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6#include <boost/shared_ptr.hpp>
7#include "xmlioserver.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
16extern "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_data_begin(axisgroup_Ptr axisgroup_hdl, int data_begin)
47  {
48    CTimer::get("XIOS").resume();
49    axisgroup_hdl->data_begin.setValue(data_begin);
50    CTimer::get("XIOS").suspend();
51  }
52
53  void cxios_get_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int* data_begin)
54  {
55    CTimer::get("XIOS").resume();
56    *data_begin = axisgroup_hdl->data_begin.getInheritedValue();
57    CTimer::get("XIOS").suspend();
58  }
59
60  bool cxios_is_defined_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl)
61  {
62     CTimer::get("XIOS").resume();
63     bool isDefined = axisgroup_hdl->data_begin.hasInheritedValue();
64     CTimer::get("XIOS").suspend();
65     return isDefined;
66  }
67
68
69  void cxios_set_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1)
70  {
71    CTimer::get("XIOS").resume();
72    CArray<int,1> tmp(data_index, shape(extent1), neverDeleteData);
73    axisgroup_hdl->data_index.reference(tmp.copy());
74     CTimer::get("XIOS").suspend();
75  }
76
77  void cxios_get_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1)
78  {
79    CTimer::get("XIOS").resume();
80    CArray<int,1> tmp(data_index, shape(extent1), neverDeleteData);
81    tmp=axisgroup_hdl->data_index.getInheritedValue();
82     CTimer::get("XIOS").suspend();
83  }
84
85  bool cxios_is_defined_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl)
86  {
87     CTimer::get("XIOS").resume();
88     bool isDefined = axisgroup_hdl->data_index.hasInheritedValue();
89     CTimer::get("XIOS").suspend();
90     return isDefined;
91  }
92
93
94  void cxios_set_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int data_n)
95  {
96    CTimer::get("XIOS").resume();
97    axisgroup_hdl->data_n.setValue(data_n);
98    CTimer::get("XIOS").suspend();
99  }
100
101  void cxios_get_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int* data_n)
102  {
103    CTimer::get("XIOS").resume();
104    *data_n = axisgroup_hdl->data_n.getInheritedValue();
105    CTimer::get("XIOS").suspend();
106  }
107
108  bool cxios_is_defined_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl)
109  {
110     CTimer::get("XIOS").resume();
111     bool isDefined = axisgroup_hdl->data_n.hasInheritedValue();
112     CTimer::get("XIOS").suspend();
113     return isDefined;
114  }
115
116
117  void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size)
118  {
119    std::string group_ref_str;
120    if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
121    CTimer::get("XIOS").resume();
122    axisgroup_hdl->group_ref.setValue(group_ref_str);
123    CTimer::get("XIOS").suspend();
124  }
125
126  void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)
127  {
128    CTimer::get("XIOS").resume();
129    if (!string_copy(axisgroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size))
130      ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short");
131    CTimer::get("XIOS").suspend();
132  }
133
134  bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl)
135  {
136     CTimer::get("XIOS").resume();
137     bool isDefined = axisgroup_hdl->group_ref.hasInheritedValue();
138     CTimer::get("XIOS").suspend();
139     return isDefined;
140  }
141
142
143  void cxios_set_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int ibegin)
144  {
145    CTimer::get("XIOS").resume();
146    axisgroup_hdl->ibegin.setValue(ibegin);
147    CTimer::get("XIOS").suspend();
148  }
149
150  void cxios_get_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int* ibegin)
151  {
152    CTimer::get("XIOS").resume();
153    *ibegin = axisgroup_hdl->ibegin.getInheritedValue();
154    CTimer::get("XIOS").suspend();
155  }
156
157  bool cxios_is_defined_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl)
158  {
159     CTimer::get("XIOS").resume();
160     bool isDefined = axisgroup_hdl->ibegin.hasInheritedValue();
161     CTimer::get("XIOS").suspend();
162     return isDefined;
163  }
164
165
166  void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size)
167  {
168    std::string long_name_str;
169    if (!cstr2string(long_name, long_name_size, long_name_str)) return;
170    CTimer::get("XIOS").resume();
171    axisgroup_hdl->long_name.setValue(long_name_str);
172    CTimer::get("XIOS").suspend();
173  }
174
175  void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)
176  {
177    CTimer::get("XIOS").resume();
178    if (!string_copy(axisgroup_hdl->long_name.getInheritedValue(), long_name, long_name_size))
179      ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", << "Input string is too short");
180    CTimer::get("XIOS").suspend();
181  }
182
183  bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl)
184  {
185     CTimer::get("XIOS").resume();
186     bool isDefined = axisgroup_hdl->long_name.hasInheritedValue();
187     CTimer::get("XIOS").suspend();
188     return isDefined;
189  }
190
191
192  void cxios_set_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1)
193  {
194    CTimer::get("XIOS").resume();
195    CArray<bool,1> tmp(mask, shape(extent1), neverDeleteData);
196    axisgroup_hdl->mask.reference(tmp.copy());
197     CTimer::get("XIOS").suspend();
198  }
199
200  void cxios_get_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1)
201  {
202    CTimer::get("XIOS").resume();
203    CArray<bool,1> tmp(mask, shape(extent1), neverDeleteData);
204    tmp=axisgroup_hdl->mask.getInheritedValue();
205     CTimer::get("XIOS").suspend();
206  }
207
208  bool cxios_is_defined_axisgroup_mask(axisgroup_Ptr axisgroup_hdl)
209  {
210     CTimer::get("XIOS").resume();
211     bool isDefined = axisgroup_hdl->mask.hasInheritedValue();
212     CTimer::get("XIOS").suspend();
213     return isDefined;
214  }
215
216
217  void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size)
218  {
219    std::string name_str;
220    if (!cstr2string(name, name_size, name_str)) return;
221    CTimer::get("XIOS").resume();
222    axisgroup_hdl->name.setValue(name_str);
223    CTimer::get("XIOS").suspend();
224  }
225
226  void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)
227  {
228    CTimer::get("XIOS").resume();
229    if (!string_copy(axisgroup_hdl->name.getInheritedValue(), name, name_size))
230      ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", << "Input string is too short");
231    CTimer::get("XIOS").suspend();
232  }
233
234  bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl)
235  {
236     CTimer::get("XIOS").resume();
237     bool isDefined = axisgroup_hdl->name.hasInheritedValue();
238     CTimer::get("XIOS").suspend();
239     return isDefined;
240  }
241
242
243  void cxios_set_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int ni)
244  {
245    CTimer::get("XIOS").resume();
246    axisgroup_hdl->ni.setValue(ni);
247    CTimer::get("XIOS").suspend();
248  }
249
250  void cxios_get_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int* ni)
251  {
252    CTimer::get("XIOS").resume();
253    *ni = axisgroup_hdl->ni.getInheritedValue();
254    CTimer::get("XIOS").suspend();
255  }
256
257  bool cxios_is_defined_axisgroup_ni(axisgroup_Ptr axisgroup_hdl)
258  {
259     CTimer::get("XIOS").resume();
260     bool isDefined = axisgroup_hdl->ni.hasInheritedValue();
261     CTimer::get("XIOS").suspend();
262     return isDefined;
263  }
264
265
266  void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size)
267  {
268    std::string positive_str;
269    if (!cstr2string(positive, positive_size, positive_str)) return;
270    CTimer::get("XIOS").resume();
271    axisgroup_hdl->positive.fromString(positive_str);
272    CTimer::get("XIOS").suspend();
273  }
274
275  void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)
276  {
277    CTimer::get("XIOS").resume();
278    if (!string_copy(axisgroup_hdl->positive.getInheritedStringValue(), positive, positive_size))
279      ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", << "Input string is too short");
280    CTimer::get("XIOS").suspend();
281  }
282
283  bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl)
284  {
285     CTimer::get("XIOS").resume();
286     bool isDefined = axisgroup_hdl->positive.hasInheritedValue();
287     CTimer::get("XIOS").suspend();
288     return isDefined;
289  }
290
291
292  void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size)
293  {
294    CTimer::get("XIOS").resume();
295    axisgroup_hdl->size.setValue(size);
296    CTimer::get("XIOS").suspend();
297  }
298
299  void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size)
300  {
301    CTimer::get("XIOS").resume();
302    *size = axisgroup_hdl->size.getInheritedValue();
303    CTimer::get("XIOS").suspend();
304  }
305
306  bool cxios_is_defined_axisgroup_size(axisgroup_Ptr axisgroup_hdl)
307  {
308     CTimer::get("XIOS").resume();
309     bool isDefined = axisgroup_hdl->size.hasInheritedValue();
310     CTimer::get("XIOS").suspend();
311     return isDefined;
312  }
313
314
315  void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size)
316  {
317    std::string standard_name_str;
318    if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return;
319    CTimer::get("XIOS").resume();
320    axisgroup_hdl->standard_name.setValue(standard_name_str);
321    CTimer::get("XIOS").suspend();
322  }
323
324  void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)
325  {
326    CTimer::get("XIOS").resume();
327    if (!string_copy(axisgroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size))
328      ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short");
329    CTimer::get("XIOS").suspend();
330  }
331
332  bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl)
333  {
334     CTimer::get("XIOS").resume();
335     bool isDefined = axisgroup_hdl->standard_name.hasInheritedValue();
336     CTimer::get("XIOS").suspend();
337     return isDefined;
338  }
339
340
341  void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size)
342  {
343    std::string unit_str;
344    if (!cstr2string(unit, unit_size, unit_str)) return;
345    CTimer::get("XIOS").resume();
346    axisgroup_hdl->unit.setValue(unit_str);
347    CTimer::get("XIOS").suspend();
348  }
349
350  void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)
351  {
352    CTimer::get("XIOS").resume();
353    if (!string_copy(axisgroup_hdl->unit.getInheritedValue(), unit, unit_size))
354      ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", << "Input string is too short");
355    CTimer::get("XIOS").suspend();
356  }
357
358  bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl)
359  {
360     CTimer::get("XIOS").resume();
361     bool isDefined = axisgroup_hdl->unit.hasInheritedValue();
362     CTimer::get("XIOS").suspend();
363     return isDefined;
364  }
365
366
367  void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
368  {
369    CTimer::get("XIOS").resume();
370    CArray<double,1> tmp(value, shape(extent1), neverDeleteData);
371    axisgroup_hdl->value.reference(tmp.copy());
372     CTimer::get("XIOS").suspend();
373  }
374
375  void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
376  {
377    CTimer::get("XIOS").resume();
378    CArray<double,1> tmp(value, shape(extent1), neverDeleteData);
379    tmp=axisgroup_hdl->value.getInheritedValue();
380     CTimer::get("XIOS").suspend();
381  }
382
383  bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl)
384  {
385     CTimer::get("XIOS").resume();
386     bool isDefined = axisgroup_hdl->value.hasInheritedValue();
387     CTimer::get("XIOS").suspend();
388     return isDefined;
389  }
390
391
392  void cxios_set_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int zoom_begin)
393  {
394    CTimer::get("XIOS").resume();
395    axisgroup_hdl->zoom_begin.setValue(zoom_begin);
396    CTimer::get("XIOS").suspend();
397  }
398
399  void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin)
400  {
401    CTimer::get("XIOS").resume();
402    *zoom_begin = axisgroup_hdl->zoom_begin.getInheritedValue();
403    CTimer::get("XIOS").suspend();
404  }
405
406  bool cxios_is_defined_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl)
407  {
408     CTimer::get("XIOS").resume();
409     bool isDefined = axisgroup_hdl->zoom_begin.hasInheritedValue();
410     CTimer::get("XIOS").suspend();
411     return isDefined;
412  }
413
414
415  void cxios_set_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int zoom_end)
416  {
417    CTimer::get("XIOS").resume();
418    axisgroup_hdl->zoom_end.setValue(zoom_end);
419    CTimer::get("XIOS").suspend();
420  }
421
422  void cxios_get_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int* zoom_end)
423  {
424    CTimer::get("XIOS").resume();
425    *zoom_end = axisgroup_hdl->zoom_end.getInheritedValue();
426    CTimer::get("XIOS").suspend();
427  }
428
429  bool cxios_is_defined_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl)
430  {
431     CTimer::get("XIOS").resume();
432     bool isDefined = axisgroup_hdl->zoom_end.hasInheritedValue();
433     CTimer::get("XIOS").suspend();
434     return isDefined;
435  }
436
437
438  void cxios_set_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int zoom_size)
439  {
440    CTimer::get("XIOS").resume();
441    axisgroup_hdl->zoom_size.setValue(zoom_size);
442    CTimer::get("XIOS").suspend();
443  }
444
445  void cxios_get_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int* zoom_size)
446  {
447    CTimer::get("XIOS").resume();
448    *zoom_size = axisgroup_hdl->zoom_size.getInheritedValue();
449    CTimer::get("XIOS").suspend();
450  }
451
452  bool cxios_is_defined_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl)
453  {
454     CTimer::get("XIOS").resume();
455     bool isDefined = axisgroup_hdl->zoom_size.hasInheritedValue();
456     CTimer::get("XIOS").suspend();
457     return isDefined;
458  }
459}
Note: See TracBrowser for help on using the repository browser.