source: XIOS/trunk/src/interface/c_attr/icfieldgroup_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: 19.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::CFieldGroup*  fieldgroup_Ptr;
[325]18 
[464]19  void cxios_set_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl, double add_offset)
20  {
21     CTimer::get("XIOS").resume();
22    fieldgroup_hdl->add_offset.setValue(add_offset);
23    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->add_offset);
24     CTimer::get("XIOS").suspend();
25  }
26 
27  void cxios_get_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl, double* add_offset)
28  {
29    *add_offset = fieldgroup_hdl->add_offset.getInheritedValue();
30  }
31 
32  bool cxios_is_defined_fieldgroup_add_offset(fieldgroup_Ptr fieldgroup_hdl )
33  {
34     CTimer::get("XIOS").resume();
35    return fieldgroup_hdl->add_offset.hasInheritedValue();
36     CTimer::get("XIOS").suspend();
37  }
38 
39 
40 
[325]41  void cxios_set_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, const char * axis_ref, int axis_ref_size)
42  {
43    std::string axis_ref_str;
44    if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return;
[347]45     CTimer::get("XIOS").resume();
[325]46    fieldgroup_hdl->axis_ref.setValue(axis_ref_str);
47    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->axis_ref);
[347]48     CTimer::get("XIOS").suspend();
[325]49  }
50 
51  void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size)
52  {
[347]53     CTimer::get("XIOS").resume();
[445]54    if(!string_copy(fieldgroup_hdl->axis_ref.getInheritedValue(),axis_ref , axis_ref_size))
[325]55      ERROR("void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short");
[347]56     CTimer::get("XIOS").suspend();
[325]57  }
58 
[432]59  bool cxios_is_defined_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl )
60  {
61     CTimer::get("XIOS").resume();
[445]62    return fieldgroup_hdl->axis_ref.hasInheritedValue();
[432]63     CTimer::get("XIOS").suspend();
64  }
[325]65 
[432]66 
67 
[325]68  void cxios_set_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double default_value)
69  {
[347]70     CTimer::get("XIOS").resume();
[325]71    fieldgroup_hdl->default_value.setValue(default_value);
72    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->default_value);
[347]73     CTimer::get("XIOS").suspend();
[325]74  }
75 
76  void cxios_get_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double* default_value)
77  {
[445]78    *default_value = fieldgroup_hdl->default_value.getInheritedValue();
[325]79  }
80 
[432]81  bool cxios_is_defined_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl )
82  {
83     CTimer::get("XIOS").resume();
[445]84    return fieldgroup_hdl->default_value.hasInheritedValue();
[432]85     CTimer::get("XIOS").suspend();
86  }
[325]87 
[432]88 
89 
[472]90  void cxios_set_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool detect_missing_value)
91  {
92     CTimer::get("XIOS").resume();
93    fieldgroup_hdl->detect_missing_value.setValue(detect_missing_value);
94    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->detect_missing_value);
95     CTimer::get("XIOS").suspend();
96  }
97 
98  void cxios_get_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl, bool* detect_missing_value)
99  {
100    *detect_missing_value = fieldgroup_hdl->detect_missing_value.getInheritedValue();
101  }
102 
103  bool cxios_is_defined_fieldgroup_detect_missing_value(fieldgroup_Ptr fieldgroup_hdl )
104  {
105     CTimer::get("XIOS").resume();
106    return fieldgroup_hdl->detect_missing_value.hasInheritedValue();
107     CTimer::get("XIOS").suspend();
108  }
109 
110 
111 
[325]112  void cxios_set_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, const char * domain_ref, int domain_ref_size)
113  {
114    std::string domain_ref_str;
115    if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return;
[347]116     CTimer::get("XIOS").resume();
[325]117    fieldgroup_hdl->domain_ref.setValue(domain_ref_str);
118    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->domain_ref);
[347]119     CTimer::get("XIOS").suspend();
[325]120  }
121 
122  void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)
123  {
[347]124     CTimer::get("XIOS").resume();
[445]125    if(!string_copy(fieldgroup_hdl->domain_ref.getInheritedValue(),domain_ref , domain_ref_size))
[325]126      ERROR("void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short");
[347]127     CTimer::get("XIOS").suspend();
[325]128  }
129 
[432]130  bool cxios_is_defined_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl )
131  {
132     CTimer::get("XIOS").resume();
[445]133    return fieldgroup_hdl->domain_ref.hasInheritedValue();
[432]134     CTimer::get("XIOS").suspend();
135  }
[325]136 
[432]137 
138 
[325]139  void cxios_set_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool enabled)
140  {
[347]141     CTimer::get("XIOS").resume();
[325]142    fieldgroup_hdl->enabled.setValue(enabled);
143    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->enabled);
[347]144     CTimer::get("XIOS").suspend();
[325]145  }
146 
147  void cxios_get_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool* enabled)
148  {
[445]149    *enabled = fieldgroup_hdl->enabled.getInheritedValue();
[325]150  }
151 
[432]152  bool cxios_is_defined_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl )
153  {
154     CTimer::get("XIOS").resume();
[445]155    return fieldgroup_hdl->enabled.hasInheritedValue();
[432]156     CTimer::get("XIOS").suspend();
157  }
[325]158 
[432]159 
160 
[325]161  void cxios_set_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, const char * field_ref, int field_ref_size)
162  {
163    std::string field_ref_str;
164    if(!cstr2string(field_ref, field_ref_size, field_ref_str)) return;
[347]165     CTimer::get("XIOS").resume();
[325]166    fieldgroup_hdl->field_ref.setValue(field_ref_str);
167    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->field_ref);
[347]168     CTimer::get("XIOS").suspend();
[325]169  }
170 
171  void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)
172  {
[347]173     CTimer::get("XIOS").resume();
[445]174    if(!string_copy(fieldgroup_hdl->field_ref.getInheritedValue(),field_ref , field_ref_size))
[325]175      ERROR("void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)", <<"Input string is to short");
[347]176     CTimer::get("XIOS").suspend();
[325]177  }
178 
[432]179  bool cxios_is_defined_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl )
180  {
181     CTimer::get("XIOS").resume();
[445]182    return fieldgroup_hdl->field_ref.hasInheritedValue();
[432]183     CTimer::get("XIOS").suspend();
184  }
[325]185 
[432]186 
187 
[325]188  void cxios_set_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, const char * freq_offset, int freq_offset_size)
189  {
190    std::string freq_offset_str;
191    if(!cstr2string(freq_offset, freq_offset_size, freq_offset_str)) return;
[347]192     CTimer::get("XIOS").resume();
[325]193    fieldgroup_hdl->freq_offset.setValue(freq_offset_str);
194    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_offset);
[347]195     CTimer::get("XIOS").suspend();
[325]196  }
197 
198  void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size)
199  {
[347]200     CTimer::get("XIOS").resume();
[445]201    if(!string_copy(fieldgroup_hdl->freq_offset.getInheritedValue(),freq_offset , freq_offset_size))
[325]202      ERROR("void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size)", <<"Input string is to short");
[347]203     CTimer::get("XIOS").suspend();
[325]204  }
205 
[432]206  bool cxios_is_defined_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl )
207  {
208     CTimer::get("XIOS").resume();
[445]209    return fieldgroup_hdl->freq_offset.hasInheritedValue();
[432]210     CTimer::get("XIOS").suspend();
211  }
[325]212 
[432]213 
214 
[325]215  void cxios_set_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, const char * freq_op, int freq_op_size)
216  {
217    std::string freq_op_str;
218    if(!cstr2string(freq_op, freq_op_size, freq_op_str)) return;
[347]219     CTimer::get("XIOS").resume();
[325]220    fieldgroup_hdl->freq_op.setValue(freq_op_str);
221    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_op);
[347]222     CTimer::get("XIOS").suspend();
[325]223  }
224 
225  void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size)
226  {
[347]227     CTimer::get("XIOS").resume();
[445]228    if(!string_copy(fieldgroup_hdl->freq_op.getInheritedValue(),freq_op , freq_op_size))
[325]229      ERROR("void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size)", <<"Input string is to short");
[347]230     CTimer::get("XIOS").suspend();
[325]231  }
232 
[432]233  bool cxios_is_defined_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl )
234  {
235     CTimer::get("XIOS").resume();
[445]236    return fieldgroup_hdl->freq_op.hasInheritedValue();
[432]237     CTimer::get("XIOS").suspend();
238  }
[325]239 
[432]240 
241 
[325]242  void cxios_set_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, const char * grid_ref, int grid_ref_size)
243  {
244    std::string grid_ref_str;
245    if(!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return;
[347]246     CTimer::get("XIOS").resume();
[325]247    fieldgroup_hdl->grid_ref.setValue(grid_ref_str);
248    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->grid_ref);
[347]249     CTimer::get("XIOS").suspend();
[325]250  }
251 
252  void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)
253  {
[347]254     CTimer::get("XIOS").resume();
[445]255    if(!string_copy(fieldgroup_hdl->grid_ref.getInheritedValue(),grid_ref , grid_ref_size))
[325]256      ERROR("void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)", <<"Input string is to short");
[347]257     CTimer::get("XIOS").suspend();
[325]258  }
259 
[432]260  bool cxios_is_defined_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl )
261  {
262     CTimer::get("XIOS").resume();
[445]263    return fieldgroup_hdl->grid_ref.hasInheritedValue();
[432]264     CTimer::get("XIOS").suspend();
265  }
[325]266 
[432]267 
268 
[325]269  void cxios_set_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, const char * group_ref, int group_ref_size)
270  {
271    std::string group_ref_str;
272    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
[347]273     CTimer::get("XIOS").resume();
[325]274    fieldgroup_hdl->group_ref.setValue(group_ref_str);
275    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->group_ref);
[347]276     CTimer::get("XIOS").suspend();
[325]277  }
278 
279  void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)
280  {
[347]281     CTimer::get("XIOS").resume();
[445]282    if(!string_copy(fieldgroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size))
[325]283      ERROR("void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
[347]284     CTimer::get("XIOS").suspend();
[325]285  }
286 
[432]287  bool cxios_is_defined_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl )
288  {
289     CTimer::get("XIOS").resume();
[445]290    return fieldgroup_hdl->group_ref.hasInheritedValue();
[432]291     CTimer::get("XIOS").suspend();
292  }
[325]293 
[432]294 
295 
[325]296  void cxios_set_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int level)
297  {
[347]298     CTimer::get("XIOS").resume();
[325]299    fieldgroup_hdl->level.setValue(level);
300    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->level);
[347]301     CTimer::get("XIOS").suspend();
[325]302  }
303 
304  void cxios_get_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int* level)
305  {
[445]306    *level = fieldgroup_hdl->level.getInheritedValue();
[325]307  }
308 
[432]309  bool cxios_is_defined_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl )
310  {
311     CTimer::get("XIOS").resume();
[445]312    return fieldgroup_hdl->level.hasInheritedValue();
[432]313     CTimer::get("XIOS").suspend();
314  }
[325]315 
[432]316 
317 
[325]318  void cxios_set_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, const char * long_name, int long_name_size)
319  {
320    std::string long_name_str;
321    if(!cstr2string(long_name, long_name_size, long_name_str)) return;
[347]322     CTimer::get("XIOS").resume();
[325]323    fieldgroup_hdl->long_name.setValue(long_name_str);
324    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->long_name);
[347]325     CTimer::get("XIOS").suspend();
[325]326  }
327 
328  void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)
329  {
[347]330     CTimer::get("XIOS").resume();
[445]331    if(!string_copy(fieldgroup_hdl->long_name.getInheritedValue(),long_name , long_name_size))
[325]332      ERROR("void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short");
[347]333     CTimer::get("XIOS").suspend();
[325]334  }
335 
[432]336  bool cxios_is_defined_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl )
337  {
338     CTimer::get("XIOS").resume();
[445]339    return fieldgroup_hdl->long_name.hasInheritedValue();
[432]340     CTimer::get("XIOS").suspend();
341  }
[325]342 
[432]343 
344 
[325]345  void cxios_set_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, const char * name, int name_size)
346  {
347    std::string name_str;
348    if(!cstr2string(name, name_size, name_str)) return;
[347]349     CTimer::get("XIOS").resume();
[325]350    fieldgroup_hdl->name.setValue(name_str);
351    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->name);
[347]352     CTimer::get("XIOS").suspend();
[325]353  }
354 
355  void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)
356  {
[347]357     CTimer::get("XIOS").resume();
[445]358    if(!string_copy(fieldgroup_hdl->name.getInheritedValue(),name , name_size))
[325]359      ERROR("void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)", <<"Input string is to short");
[347]360     CTimer::get("XIOS").suspend();
[325]361  }
362 
[432]363  bool cxios_is_defined_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl )
364  {
365     CTimer::get("XIOS").resume();
[445]366    return fieldgroup_hdl->name.hasInheritedValue();
[432]367     CTimer::get("XIOS").suspend();
368  }
[325]369 
[432]370 
371 
[325]372  void cxios_set_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, const char * operation, int operation_size)
373  {
374    std::string operation_str;
375    if(!cstr2string(operation, operation_size, operation_str)) return;
[347]376     CTimer::get("XIOS").resume();
[325]377    fieldgroup_hdl->operation.setValue(operation_str);
378    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->operation);
[347]379     CTimer::get("XIOS").suspend();
[325]380  }
381 
382  void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)
383  {
[347]384     CTimer::get("XIOS").resume();
[445]385    if(!string_copy(fieldgroup_hdl->operation.getInheritedValue(),operation , operation_size))
[325]386      ERROR("void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)", <<"Input string is to short");
[347]387     CTimer::get("XIOS").suspend();
[325]388  }
389 
[432]390  bool cxios_is_defined_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl )
391  {
392     CTimer::get("XIOS").resume();
[445]393    return fieldgroup_hdl->operation.hasInheritedValue();
[432]394     CTimer::get("XIOS").suspend();
395  }
[325]396 
[432]397 
398 
[325]399  void cxios_set_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int prec)
400  {
[347]401     CTimer::get("XIOS").resume();
[325]402    fieldgroup_hdl->prec.setValue(prec);
403    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->prec);
[347]404     CTimer::get("XIOS").suspend();
[325]405  }
406 
407  void cxios_get_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int* prec)
408  {
[445]409    *prec = fieldgroup_hdl->prec.getInheritedValue();
[325]410  }
411 
[432]412  bool cxios_is_defined_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl )
413  {
414     CTimer::get("XIOS").resume();
[445]415    return fieldgroup_hdl->prec.hasInheritedValue();
[432]416     CTimer::get("XIOS").suspend();
417  }
[325]418 
[432]419 
420 
[464]421  void cxios_set_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double scale_factor)
422  {
423     CTimer::get("XIOS").resume();
424    fieldgroup_hdl->scale_factor.setValue(scale_factor);
425    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->scale_factor);
426     CTimer::get("XIOS").suspend();
427  }
428 
429  void cxios_get_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl, double* scale_factor)
430  {
431    *scale_factor = fieldgroup_hdl->scale_factor.getInheritedValue();
432  }
433 
434  bool cxios_is_defined_fieldgroup_scale_factor(fieldgroup_Ptr fieldgroup_hdl )
435  {
436     CTimer::get("XIOS").resume();
437    return fieldgroup_hdl->scale_factor.hasInheritedValue();
438     CTimer::get("XIOS").suspend();
439  }
440 
441 
442 
[325]443  void cxios_set_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, const char * standard_name, int standard_name_size)
444  {
445    std::string standard_name_str;
446    if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return;
[347]447     CTimer::get("XIOS").resume();
[325]448    fieldgroup_hdl->standard_name.setValue(standard_name_str);
449    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->standard_name);
[347]450     CTimer::get("XIOS").suspend();
[325]451  }
452 
453  void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)
454  {
[347]455     CTimer::get("XIOS").resume();
[445]456    if(!string_copy(fieldgroup_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size))
[325]457      ERROR("void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short");
[347]458     CTimer::get("XIOS").suspend();
[325]459  }
460 
[432]461  bool cxios_is_defined_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl )
462  {
463     CTimer::get("XIOS").resume();
[445]464    return fieldgroup_hdl->standard_name.hasInheritedValue();
[432]465     CTimer::get("XIOS").suspend();
466  }
[325]467 
[432]468 
469 
[325]470  void cxios_set_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, const char * unit, int unit_size)
471  {
472    std::string unit_str;
473    if(!cstr2string(unit, unit_size, unit_str)) return;
[347]474     CTimer::get("XIOS").resume();
[325]475    fieldgroup_hdl->unit.setValue(unit_str);
476    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->unit);
[347]477     CTimer::get("XIOS").suspend();
[325]478  }
479 
480  void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)
481  {
[347]482     CTimer::get("XIOS").resume();
[445]483    if(!string_copy(fieldgroup_hdl->unit.getInheritedValue(),unit , unit_size))
[325]484      ERROR("void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)", <<"Input string is to short");
[347]485     CTimer::get("XIOS").suspend();
[325]486  }
487 
[432]488  bool cxios_is_defined_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl )
489  {
490     CTimer::get("XIOS").resume();
[445]491    return fieldgroup_hdl->unit.hasInheritedValue();
[432]492     CTimer::get("XIOS").suspend();
493  }
[325]494 
495 
[432]496 
[463]497  void cxios_set_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double valid_max)
498  {
499     CTimer::get("XIOS").resume();
500    fieldgroup_hdl->valid_max.setValue(valid_max);
501    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->valid_max);
502     CTimer::get("XIOS").suspend();
503  }
[432]504 
[463]505  void cxios_get_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl, double* valid_max)
506  {
507    *valid_max = fieldgroup_hdl->valid_max.getInheritedValue();
508  }
509 
510  bool cxios_is_defined_fieldgroup_valid_max(fieldgroup_Ptr fieldgroup_hdl )
511  {
512     CTimer::get("XIOS").resume();
513    return fieldgroup_hdl->valid_max.hasInheritedValue();
514     CTimer::get("XIOS").suspend();
515  }
516 
517 
518 
519  void cxios_set_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double valid_min)
520  {
521     CTimer::get("XIOS").resume();
522    fieldgroup_hdl->valid_min.setValue(valid_min);
523    fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->valid_min);
524     CTimer::get("XIOS").suspend();
525  }
526 
527  void cxios_get_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl, double* valid_min)
528  {
529    *valid_min = fieldgroup_hdl->valid_min.getInheritedValue();
530  }
531 
532  bool cxios_is_defined_fieldgroup_valid_min(fieldgroup_Ptr fieldgroup_hdl )
533  {
534     CTimer::get("XIOS").resume();
535    return fieldgroup_hdl->valid_min.hasInheritedValue();
536     CTimer::get("XIOS").suspend();
537  }
538 
539 
540 
541 
[325]542}
Note: See TracBrowser for help on using the repository browser.