source: XIOS/dev/dev_ym/XIOS_COUPLING/src/interface/c_attr/icreduce_domain_to_axis_attr.cpp @ 1941

Last change on this file since 1941 was 1626, checked in by oabramkina, 6 years ago

Trunk: limiting the line length to 132 characters in the Fortran interface + updating the interface.

File size: 3.7 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::CReduceDomainToAxis* reduce_domain_to_axis_Ptr;
18
19  void cxios_set_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, const char * direction, int direction_size)
20  {
21    std::string direction_str;
22    if (!cstr2string(direction, direction_size, direction_str)) return;
23    CTimer::get("XIOS").resume();
24    reduce_domain_to_axis_hdl->direction.fromString(direction_str);
25    CTimer::get("XIOS").suspend();
26  }
27
28  void cxios_get_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * direction, int direction_size)
29  {
30    CTimer::get("XIOS").resume();
31    if (!string_copy(reduce_domain_to_axis_hdl->direction.getInheritedStringValue(), direction, direction_size))
32      ERROR("void cxios_get_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * direction, int direction_size)", << "Input string is too short");
33    CTimer::get("XIOS").suspend();
34  }
35
36  bool cxios_is_defined_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl)
37  {
38     CTimer::get("XIOS").resume();
39     bool isDefined = reduce_domain_to_axis_hdl->direction.hasInheritedValue();
40     CTimer::get("XIOS").suspend();
41     return isDefined;
42  }
43
44
45  void cxios_set_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, bool local)
46  {
47    CTimer::get("XIOS").resume();
48    reduce_domain_to_axis_hdl->local.setValue(local);
49    CTimer::get("XIOS").suspend();
50  }
51
52  void cxios_get_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, bool* local)
53  {
54    CTimer::get("XIOS").resume();
55    *local = reduce_domain_to_axis_hdl->local.getInheritedValue();
56    CTimer::get("XIOS").suspend();
57  }
58
59  bool cxios_is_defined_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl)
60  {
61     CTimer::get("XIOS").resume();
62     bool isDefined = reduce_domain_to_axis_hdl->local.hasInheritedValue();
63     CTimer::get("XIOS").suspend();
64     return isDefined;
65  }
66
67
68  void cxios_set_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, const char * operation, int operation_size)
69  {
70    std::string operation_str;
71    if (!cstr2string(operation, operation_size, operation_str)) return;
72    CTimer::get("XIOS").resume();
73    reduce_domain_to_axis_hdl->operation.fromString(operation_str);
74    CTimer::get("XIOS").suspend();
75  }
76
77  void cxios_get_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * operation, int operation_size)
78  {
79    CTimer::get("XIOS").resume();
80    if (!string_copy(reduce_domain_to_axis_hdl->operation.getInheritedStringValue(), operation, operation_size))
81      ERROR("void cxios_get_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * operation, int operation_size)", << "Input string is too short");
82    CTimer::get("XIOS").suspend();
83  }
84
85  bool cxios_is_defined_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl)
86  {
87     CTimer::get("XIOS").resume();
88     bool isDefined = reduce_domain_to_axis_hdl->operation.hasInheritedValue();
89     CTimer::get("XIOS").suspend();
90     return isDefined;
91  }
92}
Note: See TracBrowser for help on using the repository browser.