source: XIOS/dev/dev_olga/src/interface/c_attr/icexpand_domain_attr.cpp @ 1636

Last change on this file since 1636 was 1636, checked in by oabramkina, 5 years ago

Backporting r1626 to dev before merging it to trunk.

File size: 3.6 KB
Line 
1/* ************************************************************************** *
2 *               Interface auto generated - do not modify                     *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6#include "xios.hpp"
7#include "attribute_template.hpp"
8#include "object_template.hpp"
9#include "group_template.hpp"
10#include "icutil.hpp"
11#include "icdate.hpp"
12#include "timer.hpp"
13#include "node_type.hpp"
14
15extern "C"
16{
17  typedef xios::CExpandDomain* expand_domain_Ptr;
18
19  void cxios_set_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl, bool i_periodic)
20  {
21    CTimer::get("XIOS").resume();
22    expand_domain_hdl->i_periodic.setValue(i_periodic);
23    CTimer::get("XIOS").suspend();
24  }
25
26  void cxios_get_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl, bool* i_periodic)
27  {
28    CTimer::get("XIOS").resume();
29    *i_periodic = expand_domain_hdl->i_periodic.getInheritedValue();
30    CTimer::get("XIOS").suspend();
31  }
32
33  bool cxios_is_defined_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl)
34  {
35     CTimer::get("XIOS").resume();
36     bool isDefined = expand_domain_hdl->i_periodic.hasInheritedValue();
37     CTimer::get("XIOS").suspend();
38     return isDefined;
39  }
40
41
42  void cxios_set_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl, bool j_periodic)
43  {
44    CTimer::get("XIOS").resume();
45    expand_domain_hdl->j_periodic.setValue(j_periodic);
46    CTimer::get("XIOS").suspend();
47  }
48
49  void cxios_get_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl, bool* j_periodic)
50  {
51    CTimer::get("XIOS").resume();
52    *j_periodic = expand_domain_hdl->j_periodic.getInheritedValue();
53    CTimer::get("XIOS").suspend();
54  }
55
56  bool cxios_is_defined_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl)
57  {
58     CTimer::get("XIOS").resume();
59     bool isDefined = expand_domain_hdl->j_periodic.hasInheritedValue();
60     CTimer::get("XIOS").suspend();
61     return isDefined;
62  }
63
64
65  void cxios_set_expand_domain_order(expand_domain_Ptr expand_domain_hdl, int order)
66  {
67    CTimer::get("XIOS").resume();
68    expand_domain_hdl->order.setValue(order);
69    CTimer::get("XIOS").suspend();
70  }
71
72  void cxios_get_expand_domain_order(expand_domain_Ptr expand_domain_hdl, int* order)
73  {
74    CTimer::get("XIOS").resume();
75    *order = expand_domain_hdl->order.getInheritedValue();
76    CTimer::get("XIOS").suspend();
77  }
78
79  bool cxios_is_defined_expand_domain_order(expand_domain_Ptr expand_domain_hdl)
80  {
81     CTimer::get("XIOS").resume();
82     bool isDefined = expand_domain_hdl->order.hasInheritedValue();
83     CTimer::get("XIOS").suspend();
84     return isDefined;
85  }
86
87
88  void cxios_set_expand_domain_type(expand_domain_Ptr expand_domain_hdl, const char * type, int type_size)
89  {
90    std::string type_str;
91    if (!cstr2string(type, type_size, type_str)) return;
92    CTimer::get("XIOS").resume();
93    expand_domain_hdl->type.fromString(type_str);
94    CTimer::get("XIOS").suspend();
95  }
96
97  void cxios_get_expand_domain_type(expand_domain_Ptr expand_domain_hdl, char * type, int type_size)
98  {
99    CTimer::get("XIOS").resume();
100    if (!string_copy(expand_domain_hdl->type.getInheritedStringValue(), type, type_size))
101      ERROR("void cxios_get_expand_domain_type(expand_domain_Ptr expand_domain_hdl, char * type, int type_size)", << "Input string is too short");
102    CTimer::get("XIOS").suspend();
103  }
104
105  bool cxios_is_defined_expand_domain_type(expand_domain_Ptr expand_domain_hdl)
106  {
107     CTimer::get("XIOS").resume();
108     bool isDefined = expand_domain_hdl->type.hasInheritedValue();
109     CTimer::get("XIOS").suspend();
110     return isDefined;
111  }
112}
Note: See TracBrowser for help on using the repository browser.