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

Last change on this file since 555 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
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 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 
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 
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;
117     CTimer::get("XIOS").resume();
118    axisgroup_hdl->group_ref.setValue(group_ref_str);
119     CTimer::get("XIOS").suspend();
120  }
121 
122  void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)
123  {
124     CTimer::get("XIOS").resume();
125    if(!string_copy(axisgroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size))
126      ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
127     CTimer::get("XIOS").suspend();
128  }
129 
130  bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl )
131  {
132     CTimer::get("XIOS").resume();
133    return axisgroup_hdl->group_ref.hasInheritedValue();
134     CTimer::get("XIOS").suspend();
135  }
136 
137 
138 
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 
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;
164     CTimer::get("XIOS").resume();
165    axisgroup_hdl->long_name.setValue(long_name_str);
166     CTimer::get("XIOS").suspend();
167  }
168 
169  void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)
170  {
171     CTimer::get("XIOS").resume();
172    if(!string_copy(axisgroup_hdl->long_name.getInheritedValue(),long_name , long_name_size))
173      ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short");
174     CTimer::get("XIOS").suspend();
175  }
176 
177  bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl )
178  {
179     CTimer::get("XIOS").resume();
180    return axisgroup_hdl->long_name.hasInheritedValue();
181     CTimer::get("XIOS").suspend();
182  }
183 
184 
185 
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 
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;
215     CTimer::get("XIOS").resume();
216    axisgroup_hdl->name.setValue(name_str);
217     CTimer::get("XIOS").suspend();
218  }
219 
220  void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)
221  {
222     CTimer::get("XIOS").resume();
223    if(!string_copy(axisgroup_hdl->name.getInheritedValue(),name , name_size))
224      ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", <<"Input string is to short");
225     CTimer::get("XIOS").suspend();
226  }
227 
228  bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl )
229  {
230     CTimer::get("XIOS").resume();
231    return axisgroup_hdl->name.hasInheritedValue();
232     CTimer::get("XIOS").suspend();
233  }
234 
235 
236 
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 
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();
270    if(!string_copy(axisgroup_hdl->positive.getInheritedStringValue(),positive , positive_size))
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 
275  bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl )
276  {
277     CTimer::get("XIOS").resume();
278    return axisgroup_hdl->positive.hasInheritedValue();
279     CTimer::get("XIOS").suspend();
280  }
281 
282 
283 
284  void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size)
285  {
286     CTimer::get("XIOS").resume();
287    axisgroup_hdl->size.setValue(size);
288     CTimer::get("XIOS").suspend();
289  }
290 
291  void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size)
292  {
293    *size = axisgroup_hdl->size.getInheritedValue();
294  }
295 
296  bool cxios_is_defined_axisgroup_size(axisgroup_Ptr axisgroup_hdl )
297  {
298     CTimer::get("XIOS").resume();
299    return axisgroup_hdl->size.hasInheritedValue();
300     CTimer::get("XIOS").suspend();
301  }
302 
303 
304 
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;
309     CTimer::get("XIOS").resume();
310    axisgroup_hdl->standard_name.setValue(standard_name_str);
311     CTimer::get("XIOS").suspend();
312  }
313 
314  void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)
315  {
316     CTimer::get("XIOS").resume();
317    if(!string_copy(axisgroup_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size))
318      ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short");
319     CTimer::get("XIOS").suspend();
320  }
321 
322  bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl )
323  {
324     CTimer::get("XIOS").resume();
325    return axisgroup_hdl->standard_name.hasInheritedValue();
326     CTimer::get("XIOS").suspend();
327  }
328 
329 
330 
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;
335     CTimer::get("XIOS").resume();
336    axisgroup_hdl->unit.setValue(unit_str);
337     CTimer::get("XIOS").suspend();
338  }
339 
340  void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)
341  {
342     CTimer::get("XIOS").resume();
343    if(!string_copy(axisgroup_hdl->unit.getInheritedValue(),unit , unit_size))
344      ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", <<"Input string is to short");
345     CTimer::get("XIOS").suspend();
346  }
347 
348  bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl )
349  {
350     CTimer::get("XIOS").resume();
351    return axisgroup_hdl->unit.hasInheritedValue();
352     CTimer::get("XIOS").suspend();
353  }
354 
355 
356 
357  void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
358  {
359    CTimer::get("XIOS").resume();
360    CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ;
361    axisgroup_hdl->value.reference(tmp.copy());
362     CTimer::get("XIOS").suspend();
363  }
364 
365  void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
366  {
367    CTimer::get("XIOS").resume();
368    CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ;
369    tmp=axisgroup_hdl->value.getInheritedValue() ;
370     CTimer::get("XIOS").suspend();
371  }
372 
373  bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl )
374  {
375     CTimer::get("XIOS").resume();
376    return axisgroup_hdl->value.hasInheritedValue();
377     CTimer::get("XIOS").suspend();
378  }
379 
380 
381 
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  }
388 
389  void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin)
390  {
391    *zoom_begin = axisgroup_hdl->zoom_begin.getInheritedValue();
392  }
393 
394  bool cxios_is_defined_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl )
395  {
396     CTimer::get("XIOS").resume();
397    return axisgroup_hdl->zoom_begin.hasInheritedValue();
398     CTimer::get("XIOS").suspend();
399  }
400 
401 
402 
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  {
412    *zoom_end = axisgroup_hdl->zoom_end.getInheritedValue();
413  }
414 
415  bool cxios_is_defined_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl )
416  {
417     CTimer::get("XIOS").resume();
418    return axisgroup_hdl->zoom_end.hasInheritedValue();
419     CTimer::get("XIOS").suspend();
420  }
421 
422 
423 
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  {
433    *zoom_size = axisgroup_hdl->zoom_size.getInheritedValue();
434  }
435 
436  bool cxios_is_defined_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl )
437  {
438     CTimer::get("XIOS").resume();
439    return axisgroup_hdl->zoom_size.hasInheritedValue();
440     CTimer::get("XIOS").suspend();
441  }
442 
443 
444 
445 
446}
Note: See TracBrowser for help on using the repository browser.