source: XIOS/branchs/xios-1.0/src/interface/c_attr/icvariablegroup_attr.cpp @ 581

Last change on this file since 581 was 581, checked in by rlacroix, 6 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: 3.7 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 "timer.hpp"
13#include "node_type.hpp"
14
15extern "C"
16{
17  typedef xios::CVariableGroup*  variablegroup_Ptr;
18 
19  void cxios_set_variablegroup_group_ref(variablegroup_Ptr variablegroup_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;
23     CTimer::get("XIOS").resume();
24    variablegroup_hdl->group_ref.setValue(group_ref_str);
25    variablegroup_hdl->sendAttributToServer(variablegroup_hdl->group_ref);
26     CTimer::get("XIOS").suspend();
27  }
28 
29  void cxios_get_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, char * group_ref, int group_ref_size)
30  {
31     CTimer::get("XIOS").resume();
32    if(!string_copy(variablegroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size))
33      ERROR("void cxios_get_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
34     CTimer::get("XIOS").suspend();
35  }
36 
37  bool cxios_is_defined_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl )
38  {
39    CTimer::get("XIOS").resume();
40    bool isDefined = variablegroup_hdl->group_ref.hasInheritedValue();
41    CTimer::get("XIOS").suspend();
42    return isDefined;
43  }
44 
45 
46 
47  void cxios_set_variablegroup_name(variablegroup_Ptr variablegroup_hdl, const char * name, int name_size)
48  {
49    std::string name_str;
50    if(!cstr2string(name, name_size, name_str)) return;
51     CTimer::get("XIOS").resume();
52    variablegroup_hdl->name.setValue(name_str);
53    variablegroup_hdl->sendAttributToServer(variablegroup_hdl->name);
54     CTimer::get("XIOS").suspend();
55  }
56 
57  void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size)
58  {
59     CTimer::get("XIOS").resume();
60    if(!string_copy(variablegroup_hdl->name.getInheritedValue(),name , name_size))
61      ERROR("void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size)", <<"Input string is to short");
62     CTimer::get("XIOS").suspend();
63  }
64 
65  bool cxios_is_defined_variablegroup_name(variablegroup_Ptr variablegroup_hdl )
66  {
67    CTimer::get("XIOS").resume();
68    bool isDefined = variablegroup_hdl->name.hasInheritedValue();
69    CTimer::get("XIOS").suspend();
70    return isDefined;
71  }
72 
73 
74 
75  void cxios_set_variablegroup_type(variablegroup_Ptr variablegroup_hdl, const char * type, int type_size)
76  {
77    std::string type_str;
78    if(!cstr2string(type, type_size, type_str)) return;
79     CTimer::get("XIOS").resume();
80    variablegroup_hdl->type.setValue(type_str);
81    variablegroup_hdl->sendAttributToServer(variablegroup_hdl->type);
82     CTimer::get("XIOS").suspend();
83  }
84 
85  void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size)
86  {
87     CTimer::get("XIOS").resume();
88    if(!string_copy(variablegroup_hdl->type.getInheritedValue(),type , type_size))
89      ERROR("void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size)", <<"Input string is to short");
90     CTimer::get("XIOS").suspend();
91  }
92 
93  bool cxios_is_defined_variablegroup_type(variablegroup_Ptr variablegroup_hdl )
94  {
95    CTimer::get("XIOS").resume();
96    bool isDefined = variablegroup_hdl->type.hasInheritedValue();
97    CTimer::get("XIOS").suspend();
98    return isDefined;
99  }
100 
101 
102 
103 
104}
Note: See TracBrowser for help on using the repository browser.