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

Last change on this file since 501 was 501, checked in by ymipsl, 10 years ago

Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src

XIOS is now officialy under CeCILL licence

YM

  • 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: 10.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"
[347]12#include "timer.hpp"
[369]13#include "node_type.hpp"
[325]14
15extern "C"
16{
[345]17  typedef xios::CAxisGroup*  axisgroup_Ptr;
[325]18 
19  void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size)
20  {
21    std::string group_ref_str;
22    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
[347]23     CTimer::get("XIOS").resume();
[325]24    axisgroup_hdl->group_ref.setValue(group_ref_str);
25    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->group_ref);
[347]26     CTimer::get("XIOS").suspend();
[325]27  }
28 
29  void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)
30  {
[347]31     CTimer::get("XIOS").resume();
[445]32    if(!string_copy(axisgroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size))
[325]33      ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
[347]34     CTimer::get("XIOS").suspend();
[325]35  }
36 
[432]37  bool cxios_is_defined_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl )
38  {
39     CTimer::get("XIOS").resume();
[445]40    return axisgroup_hdl->group_ref.hasInheritedValue();
[432]41     CTimer::get("XIOS").suspend();
42  }
[325]43 
[432]44 
45 
[325]46  void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size)
47  {
48    std::string long_name_str;
49    if(!cstr2string(long_name, long_name_size, long_name_str)) return;
[347]50     CTimer::get("XIOS").resume();
[325]51    axisgroup_hdl->long_name.setValue(long_name_str);
52    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->long_name);
[347]53     CTimer::get("XIOS").suspend();
[325]54  }
55 
56  void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)
57  {
[347]58     CTimer::get("XIOS").resume();
[445]59    if(!string_copy(axisgroup_hdl->long_name.getInheritedValue(),long_name , long_name_size))
[325]60      ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short");
[347]61     CTimer::get("XIOS").suspend();
[325]62  }
63 
[432]64  bool cxios_is_defined_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl )
65  {
66     CTimer::get("XIOS").resume();
[445]67    return axisgroup_hdl->long_name.hasInheritedValue();
[432]68     CTimer::get("XIOS").suspend();
69  }
[325]70 
[432]71 
72 
[325]73  void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size)
74  {
75    std::string name_str;
76    if(!cstr2string(name, name_size, name_str)) return;
[347]77     CTimer::get("XIOS").resume();
[325]78    axisgroup_hdl->name.setValue(name_str);
79    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->name);
[347]80     CTimer::get("XIOS").suspend();
[325]81  }
82 
83  void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)
84  {
[347]85     CTimer::get("XIOS").resume();
[445]86    if(!string_copy(axisgroup_hdl->name.getInheritedValue(),name , name_size))
[325]87      ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", <<"Input string is to short");
[347]88     CTimer::get("XIOS").suspend();
[325]89  }
90 
[432]91  bool cxios_is_defined_axisgroup_name(axisgroup_Ptr axisgroup_hdl )
92  {
93     CTimer::get("XIOS").resume();
[445]94    return axisgroup_hdl->name.hasInheritedValue();
[432]95     CTimer::get("XIOS").suspend();
96  }
[325]97 
[432]98 
99 
[415]100  void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size)
101  {
102    std::string positive_str;
103    if(!cstr2string(positive, positive_size, positive_str)) return;
104     CTimer::get("XIOS").resume();
105    axisgroup_hdl->positive.fromString(positive_str);
106    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->positive);
107     CTimer::get("XIOS").suspend();
108  }
109 
110  void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)
111  {
112     CTimer::get("XIOS").resume();
[445]113    if(!string_copy(axisgroup_hdl->positive.getInheritedStringValue(),positive , positive_size))
[415]114      ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", <<"Input string is to short");
115     CTimer::get("XIOS").suspend();
116  }
117 
[432]118  bool cxios_is_defined_axisgroup_positive(axisgroup_Ptr axisgroup_hdl )
119  {
120     CTimer::get("XIOS").resume();
[445]121    return axisgroup_hdl->positive.hasInheritedValue();
[432]122     CTimer::get("XIOS").suspend();
123  }
[415]124 
[432]125 
126 
[325]127  void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size)
128  {
[347]129     CTimer::get("XIOS").resume();
[325]130    axisgroup_hdl->size.setValue(size);
131    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->size);
[347]132     CTimer::get("XIOS").suspend();
[325]133  }
134 
135  void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size)
136  {
[445]137    *size = axisgroup_hdl->size.getInheritedValue();
[325]138  }
139 
[432]140  bool cxios_is_defined_axisgroup_size(axisgroup_Ptr axisgroup_hdl )
141  {
142     CTimer::get("XIOS").resume();
[445]143    return axisgroup_hdl->size.hasInheritedValue();
[432]144     CTimer::get("XIOS").suspend();
145  }
[325]146 
[432]147 
148 
[325]149  void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size)
150  {
151    std::string standard_name_str;
152    if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return;
[347]153     CTimer::get("XIOS").resume();
[325]154    axisgroup_hdl->standard_name.setValue(standard_name_str);
155    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->standard_name);
[347]156     CTimer::get("XIOS").suspend();
[325]157  }
158 
159  void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)
160  {
[347]161     CTimer::get("XIOS").resume();
[445]162    if(!string_copy(axisgroup_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size))
[325]163      ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short");
[347]164     CTimer::get("XIOS").suspend();
[325]165  }
166 
[432]167  bool cxios_is_defined_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl )
168  {
169     CTimer::get("XIOS").resume();
[445]170    return axisgroup_hdl->standard_name.hasInheritedValue();
[432]171     CTimer::get("XIOS").suspend();
172  }
[325]173 
[432]174 
175 
[325]176  void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size)
177  {
178    std::string unit_str;
179    if(!cstr2string(unit, unit_size, unit_str)) return;
[347]180     CTimer::get("XIOS").resume();
[325]181    axisgroup_hdl->unit.setValue(unit_str);
182    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->unit);
[347]183     CTimer::get("XIOS").suspend();
[325]184  }
185 
186  void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)
187  {
[347]188     CTimer::get("XIOS").resume();
[445]189    if(!string_copy(axisgroup_hdl->unit.getInheritedValue(),unit , unit_size))
[325]190      ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", <<"Input string is to short");
[347]191     CTimer::get("XIOS").suspend();
[325]192  }
193 
[432]194  bool cxios_is_defined_axisgroup_unit(axisgroup_Ptr axisgroup_hdl )
195  {
196     CTimer::get("XIOS").resume();
[445]197    return axisgroup_hdl->unit.hasInheritedValue();
[432]198     CTimer::get("XIOS").suspend();
199  }
[325]200 
[432]201 
202 
[325]203  void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
204  {
[369]205    CTimer::get("XIOS").resume();
206    CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ;
207    axisgroup_hdl->value.reference(tmp.copy());
[325]208    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->value);
[416]209     CTimer::get("XIOS").suspend();
[325]210  }
211 
212  void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)
213  {
[416]214    CTimer::get("XIOS").resume();
[369]215    CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ;
[445]216    tmp=axisgroup_hdl->value.getInheritedValue() ;
[347]217     CTimer::get("XIOS").suspend();
[325]218  }
219 
[432]220  bool cxios_is_defined_axisgroup_value(axisgroup_Ptr axisgroup_hdl )
221  {
222     CTimer::get("XIOS").resume();
[445]223    return axisgroup_hdl->value.hasInheritedValue();
[432]224     CTimer::get("XIOS").suspend();
225  }
[325]226 
[432]227 
228 
[369]229  void cxios_set_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int zoom_begin)
230  {
231     CTimer::get("XIOS").resume();
232    axisgroup_hdl->zoom_begin.setValue(zoom_begin);
233    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_begin);
234     CTimer::get("XIOS").suspend();
235  }
[325]236 
[369]237  void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin)
238  {
[445]239    *zoom_begin = axisgroup_hdl->zoom_begin.getInheritedValue();
[369]240  }
241 
[432]242  bool cxios_is_defined_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl )
243  {
244     CTimer::get("XIOS").resume();
[445]245    return axisgroup_hdl->zoom_begin.hasInheritedValue();
[432]246     CTimer::get("XIOS").suspend();
247  }
[369]248 
[432]249 
250 
[369]251  void cxios_set_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int zoom_end)
252  {
253     CTimer::get("XIOS").resume();
254    axisgroup_hdl->zoom_end.setValue(zoom_end);
255    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_end);
256     CTimer::get("XIOS").suspend();
257  }
258 
259  void cxios_get_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int* zoom_end)
260  {
[445]261    *zoom_end = axisgroup_hdl->zoom_end.getInheritedValue();
[369]262  }
263 
[432]264  bool cxios_is_defined_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl )
265  {
266     CTimer::get("XIOS").resume();
[445]267    return axisgroup_hdl->zoom_end.hasInheritedValue();
[432]268     CTimer::get("XIOS").suspend();
269  }
[369]270 
[432]271 
272 
[369]273  void cxios_set_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int zoom_size)
274  {
275     CTimer::get("XIOS").resume();
276    axisgroup_hdl->zoom_size.setValue(zoom_size);
277    axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_size);
278     CTimer::get("XIOS").suspend();
279  }
280 
281  void cxios_get_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int* zoom_size)
282  {
[445]283    *zoom_size = axisgroup_hdl->zoom_size.getInheritedValue();
[369]284  }
285 
[432]286  bool cxios_is_defined_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl )
287  {
288     CTimer::get("XIOS").resume();
[445]289    return axisgroup_hdl->zoom_size.hasInheritedValue();
[432]290     CTimer::get("XIOS").suspend();
291  }
[369]292 
293 
[432]294 
295 
[325]296}
Note: See TracBrowser for help on using the repository browser.