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
RevLine 
[325]1/* ************************************************************************** *
[581]2 *               Interface auto generated - do not modify                     *
[325]3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6#include <boost/shared_ptr.hpp>
7#include "xmlioserver.hpp"
[352]8#include "attribute_template.hpp"
9#include "object_template.hpp"
10#include "group_template.hpp"
[325]11#include "icutil.hpp"
[532]12#include "icdate.hpp"
[347]13#include "timer.hpp"
[369]14#include "node_type.hpp"
[325]15
16extern "C"
17{
[581]18  typedef xios::CAxisGroup* axisgroup_Ptr;
19
[546]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;
[581]23    if (!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return;
24    CTimer::get("XIOS").resume();
[546]25    axisgroup_hdl->axis_ref.setValue(axis_ref_str);
[581]26    CTimer::get("XIOS").suspend();
[546]27  }
[581]28
[546]29  void cxios_get_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl, char * axis_ref, int axis_ref_size)
30  {
[581]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();
[546]35  }
[581]36
37  bool cxios_is_defined_axisgroup_axis_ref(axisgroup_Ptr axisgroup_hdl)
[546]38  {
39     CTimer::get("XIOS").resume();
[581]40     bool isDefined = axisgroup_hdl->axis_ref.hasInheritedValue();
[546]41     CTimer::get("XIOS").suspend();
[581]42     return isDefined;
[546]43  }
[581]44
45
[555]46  void cxios_set_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int data_begin)
47  {
[581]48    CTimer::get("XIOS").resume();
[555]49    axisgroup_hdl->data_begin.setValue(data_begin);
[581]50    CTimer::get("XIOS").suspend();
[555]51  }
[581]52
[555]53  void cxios_get_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int* data_begin)
54  {
[581]55    CTimer::get("XIOS").resume();
[555]56    *data_begin = axisgroup_hdl->data_begin.getInheritedValue();
[581]57    CTimer::get("XIOS").suspend();
[555]58  }
[581]59
60  bool cxios_is_defined_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl)
[555]61  {
62     CTimer::get("XIOS").resume();
[581]63     bool isDefined = axisgroup_hdl->data_begin.hasInheritedValue();
[555]64     CTimer::get("XIOS").suspend();
[581]65     return isDefined;
[555]66  }
[581]67
68
[555]69  void cxios_set_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1)
70  {
71    CTimer::get("XIOS").resume();
[581]72    CArray<int,1> tmp(data_index, shape(extent1), neverDeleteData);
[555]73    axisgroup_hdl->data_index.reference(tmp.copy());
74     CTimer::get("XIOS").suspend();
75  }
[581]76
[555]77  void cxios_get_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1)
78  {
79    CTimer::get("XIOS").resume();
[581]80    CArray<int,1> tmp(data_index, shape(extent1), neverDeleteData);
81    tmp=axisgroup_hdl->data_index.getInheritedValue();
[555]82     CTimer::get("XIOS").suspend();
83  }
[581]84
85  bool cxios_is_defined_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl)
[555]86  {
87     CTimer::get("XIOS").resume();
[581]88     bool isDefined = axisgroup_hdl->data_index.hasInheritedValue();
[555]89     CTimer::get("XIOS").suspend();
[581]90     return isDefined;
[555]91  }
[581]92
93
[555]94  void cxios_set_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int data_n)
95  {
[581]96    CTimer::get("XIOS").resume();
[555]97    axisgroup_hdl->data_n.setValue(data_n);
[581]98    CTimer::get("XIOS").suspend();
[555]99  }
[581]100
[555]101  void cxios_get_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int* data_n)
102  {
[581]103    CTimer::get("XIOS").resume();
[555]104    *data_n = axisgroup_hdl->data_n.getInheritedValue();
[581]105    CTimer::get("XIOS").suspend();
[555]106  }
[581]107
108  bool cxios_is_defined_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl)
[555]109  {
110     CTimer::get("XIOS").resume();
[581]111     bool isDefined = axisgroup_hdl->data_n.hasInheritedValue();
[555]112     CTimer::get("XIOS").suspend();
[581]113     return isDefined;
[555]114  }
[581]115
116
[325]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;
[581]120    if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
121    CTimer::get("XIOS").resume();
[325]122    axisgroup_hdl->group_ref.setValue(group_ref_str);
[581]123    CTimer::get("XIOS").suspend();
[325]124  }
[581]125
[325]126  void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)
127  {
[581]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();
[325]132  }
[581]133
134  bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl)
[432]135  {
136     CTimer::get("XIOS").resume();
[581]137     bool isDefined = axisgroup_hdl->group_ref.hasInheritedValue();
[432]138     CTimer::get("XIOS").suspend();
[581]139     return isDefined;
[432]140  }
[581]141
142
[555]143  void cxios_set_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int ibegin)
144  {
[581]145    CTimer::get("XIOS").resume();
[555]146    axisgroup_hdl->ibegin.setValue(ibegin);
[581]147    CTimer::get("XIOS").suspend();
[555]148  }
[581]149
[555]150  void cxios_get_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int* ibegin)
151  {
[581]152    CTimer::get("XIOS").resume();
[555]153    *ibegin = axisgroup_hdl->ibegin.getInheritedValue();
[581]154    CTimer::get("XIOS").suspend();
[555]155  }
[581]156
157  bool cxios_is_defined_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl)
[555]158  {
159     CTimer::get("XIOS").resume();
[581]160     bool isDefined = axisgroup_hdl->ibegin.hasInheritedValue();
[555]161     CTimer::get("XIOS").suspend();
[581]162     return isDefined;
[555]163  }
[581]164
165
[325]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;
[581]169    if (!cstr2string(long_name, long_name_size, long_name_str)) return;
170    CTimer::get("XIOS").resume();
[325]171    axisgroup_hdl->long_name.setValue(long_name_str);
[581]172    CTimer::get("XIOS").suspend();
[325]173  }
[581]174
[325]175  void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)
176  {
[581]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();
[325]181  }
[581]182
183  bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl)
[432]184  {
185     CTimer::get("XIOS").resume();
[581]186     bool isDefined = axisgroup_hdl->long_name.hasInheritedValue();
[432]187     CTimer::get("XIOS").suspend();
[581]188     return isDefined;
[432]189  }
[581]190
191
[555]192  void cxios_set_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1)
193  {
194    CTimer::get("XIOS").resume();
[581]195    CArray<bool,1> tmp(mask, shape(extent1), neverDeleteData);
[555]196    axisgroup_hdl->mask.reference(tmp.copy());
197     CTimer::get("XIOS").suspend();
198  }
[581]199
[555]200  void cxios_get_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1)
201  {
202    CTimer::get("XIOS").resume();
[581]203    CArray<bool,1> tmp(mask, shape(extent1), neverDeleteData);
204    tmp=axisgroup_hdl->mask.getInheritedValue();
[555]205     CTimer::get("XIOS").suspend();
206  }
[581]207
208  bool cxios_is_defined_axisgroup_mask(axisgroup_Ptr axisgroup_hdl)
[555]209  {
210     CTimer::get("XIOS").resume();
[581]211     bool isDefined = axisgroup_hdl->mask.hasInheritedValue();
[555]212     CTimer::get("XIOS").suspend();
[581]213     return isDefined;
[555]214  }
[581]215
216
[325]217  void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size)
218  {
219    std::string name_str;
[581]220    if (!cstr2string(name, name_size, name_str)) return;
221    CTimer::get("XIOS").resume();
[325]222    axisgroup_hdl->name.setValue(name_str);
[581]223    CTimer::get("XIOS").suspend();
[325]224  }
[581]225
[325]226  void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)
227  {
[581]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();
[325]232  }
[581]233
234  bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl)
[432]235  {
236     CTimer::get("XIOS").resume();
[581]237     bool isDefined = axisgroup_hdl->name.hasInheritedValue();
[432]238     CTimer::get("XIOS").suspend();
[581]239     return isDefined;
[432]240  }
[581]241
242
[555]243  void cxios_set_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int ni)
244  {
[581]245    CTimer::get("XIOS").resume();
[555]246    axisgroup_hdl->ni.setValue(ni);
[581]247    CTimer::get("XIOS").suspend();
[555]248  }
[581]249
[555]250  void cxios_get_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int* ni)
251  {
[581]252    CTimer::get("XIOS").resume();
[555]253    *ni = axisgroup_hdl->ni.getInheritedValue();
[581]254    CTimer::get("XIOS").suspend();
[555]255  }
[581]256
257  bool cxios_is_defined_axisgroup_ni(axisgroup_Ptr axisgroup_hdl)
[555]258  {
259     CTimer::get("XIOS").resume();
[581]260     bool isDefined = axisgroup_hdl->ni.hasInheritedValue();
[555]261     CTimer::get("XIOS").suspend();
[581]262     return isDefined;
[555]263  }
[581]264
265
[415]266  void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size)
267  {
268    std::string positive_str;
[581]269    if (!cstr2string(positive, positive_size, positive_str)) return;
270    CTimer::get("XIOS").resume();
[415]271    axisgroup_hdl->positive.fromString(positive_str);
[581]272    CTimer::get("XIOS").suspend();
[415]273  }
[581]274
[415]275  void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)
276  {
[581]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();
[415]281  }
[581]282
283  bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl)
[432]284  {
285     CTimer::get("XIOS").resume();
[581]286     bool isDefined = axisgroup_hdl->positive.hasInheritedValue();
[432]287     CTimer::get("XIOS").suspend();
[581]288     return isDefined;
[432]289  }
[581]290
291
[325]292  void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size)
293  {
[581]294    CTimer::get("XIOS").resume();
[325]295    axisgroup_hdl->size.setValue(size);
[581]296    CTimer::get("XIOS").suspend();
[325]297  }
[581]298
[325]299  void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size)
300  {
[581]301    CTimer::get("XIOS").resume();
[445]302    *size = axisgroup_hdl->size.getInheritedValue();
[581]303    CTimer::get("XIOS").suspend();
[325]304  }
[581]305
306  bool cxios_is_defined_axisgroup_size(axisgroup_Ptr axisgroup_hdl)
[432]307  {
308     CTimer::get("XIOS").resume();
[581]309     bool isDefined = axisgroup_hdl->size.hasInheritedValue();
[432]310     CTimer::get("XIOS").suspend();
[581]311     return isDefined;
[432]312  }
[581]313
314
[325]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;
[581]318    if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return;
319    CTimer::get("XIOS").resume();
[325]320    axisgroup_hdl->standard_name.setValue(standard_name_str);
[581]321    CTimer::get("XIOS").suspend();
[325]322  }
[581]323
[325]324  void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)
325  {
[581]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();
[325]330  }
[581]331
332  bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl)
[432]333  {
334     CTimer::get("XIOS").resume();
[581]335     bool isDefined = axisgroup_hdl->standard_name.hasInheritedValue();
[432]336     CTimer::get("XIOS").suspend();
[581]337     return isDefined;
[432]338  }
[581]339
340
[325]341  void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size)
342  {
343    std::string unit_str;
[581]344    if (!cstr2string(unit, unit_size, unit_str)) return;
345    CTimer::get("XIOS").resume();
[325]346    axisgroup_hdl->unit.setValue(unit_str);
[581]347    CTimer::get("XIOS").suspend();
[325]348  }
[581]349
[325]350  void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)
351  {
[581]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();
[325]356  }
[581]357
358  bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl)
[432]359  {
360     CTimer::get("XIOS").resume();
[581]361     bool isDefined = axisgroup_hdl->unit.hasInheritedValue();
[432]362     CTimer::get("XIOS").suspend();
[581]363     return isDefined;
[432]364  }
[581]365
366
[325]367  void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
368  {
[369]369    CTimer::get("XIOS").resume();
[581]370    CArray<double,1> tmp(value, shape(extent1), neverDeleteData);
[369]371    axisgroup_hdl->value.reference(tmp.copy());
[416]372     CTimer::get("XIOS").suspend();
[325]373  }
[581]374
[325]375  void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
376  {
[416]377    CTimer::get("XIOS").resume();
[581]378    CArray<double,1> tmp(value, shape(extent1), neverDeleteData);
379    tmp=axisgroup_hdl->value.getInheritedValue();
[347]380     CTimer::get("XIOS").suspend();
[325]381  }
[581]382
383  bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl)
[432]384  {
385     CTimer::get("XIOS").resume();
[581]386     bool isDefined = axisgroup_hdl->value.hasInheritedValue();
[432]387     CTimer::get("XIOS").suspend();
[581]388     return isDefined;
[432]389  }
[581]390
391
[369]392  void cxios_set_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int zoom_begin)
393  {
[581]394    CTimer::get("XIOS").resume();
[369]395    axisgroup_hdl->zoom_begin.setValue(zoom_begin);
[581]396    CTimer::get("XIOS").suspend();
[369]397  }
[581]398
[369]399  void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin)
400  {
[581]401    CTimer::get("XIOS").resume();
[445]402    *zoom_begin = axisgroup_hdl->zoom_begin.getInheritedValue();
[581]403    CTimer::get("XIOS").suspend();
[369]404  }
[581]405
406  bool cxios_is_defined_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl)
[432]407  {
408     CTimer::get("XIOS").resume();
[581]409     bool isDefined = axisgroup_hdl->zoom_begin.hasInheritedValue();
[432]410     CTimer::get("XIOS").suspend();
[581]411     return isDefined;
[432]412  }
[581]413
414
[369]415  void cxios_set_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int zoom_end)
416  {
[581]417    CTimer::get("XIOS").resume();
[369]418    axisgroup_hdl->zoom_end.setValue(zoom_end);
[581]419    CTimer::get("XIOS").suspend();
[369]420  }
[581]421
[369]422  void cxios_get_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int* zoom_end)
423  {
[581]424    CTimer::get("XIOS").resume();
[445]425    *zoom_end = axisgroup_hdl->zoom_end.getInheritedValue();
[581]426    CTimer::get("XIOS").suspend();
[369]427  }
[581]428
429  bool cxios_is_defined_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl)
[432]430  {
431     CTimer::get("XIOS").resume();
[581]432     bool isDefined = axisgroup_hdl->zoom_end.hasInheritedValue();
[432]433     CTimer::get("XIOS").suspend();
[581]434     return isDefined;
[432]435  }
[581]436
437
[369]438  void cxios_set_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int zoom_size)
439  {
[581]440    CTimer::get("XIOS").resume();
[369]441    axisgroup_hdl->zoom_size.setValue(zoom_size);
[581]442    CTimer::get("XIOS").suspend();
[369]443  }
[581]444
[369]445  void cxios_get_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int* zoom_size)
446  {
[581]447    CTimer::get("XIOS").resume();
[445]448    *zoom_size = axisgroup_hdl->zoom_size.getInheritedValue();
[581]449    CTimer::get("XIOS").suspend();
[369]450  }
[581]451
452  bool cxios_is_defined_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl)
[432]453  {
454     CTimer::get("XIOS").resume();
[581]455     bool isDefined = axisgroup_hdl->zoom_size.hasInheritedValue();
[432]456     CTimer::get("XIOS").suspend();
[581]457     return isDefined;
[432]458  }
[325]459}
Note: See TracBrowser for help on using the repository browser.