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

Last change on this file since 567 was 555, checked in by mhnguyen, 9 years ago

Updating some Fortran interface files

+) Update some Fortran interface files generated by generate_fortran_interface.exe

Test
+) No test

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