source: XIOS/dev/dev_olga/src/interface/c_attr/icreduce_domain_to_scalar_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: 2.5 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::CReduceDomainToScalar* reduce_domain_to_scalar_Ptr;
18
19  void cxios_set_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool local)
20  {
21    CTimer::get("XIOS").resume();
22    reduce_domain_to_scalar_hdl->local.setValue(local);
23    CTimer::get("XIOS").suspend();
24  }
25
26  void cxios_get_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool* local)
27  {
28    CTimer::get("XIOS").resume();
29    *local = reduce_domain_to_scalar_hdl->local.getInheritedValue();
30    CTimer::get("XIOS").suspend();
31  }
32
33  bool cxios_is_defined_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
34  {
35     CTimer::get("XIOS").resume();
36     bool isDefined = reduce_domain_to_scalar_hdl->local.hasInheritedValue();
37     CTimer::get("XIOS").suspend();
38     return isDefined;
39  }
40
41
42  void cxios_set_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, const char * operation, int operation_size)
43  {
44    std::string operation_str;
45    if (!cstr2string(operation, operation_size, operation_str)) return;
46    CTimer::get("XIOS").resume();
47    reduce_domain_to_scalar_hdl->operation.fromString(operation_str);
48    CTimer::get("XIOS").suspend();
49  }
50
51  void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)
52  {
53    CTimer::get("XIOS").resume();
54    if (!string_copy(reduce_domain_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size))
55      ERROR("void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)", << "Input string is too short");
56    CTimer::get("XIOS").suspend();
57  }
58
59  bool cxios_is_defined_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
60  {
61     CTimer::get("XIOS").resume();
62     bool isDefined = reduce_domain_to_scalar_hdl->operation.hasInheritedValue();
63     CTimer::get("XIOS").suspend();
64     return isDefined;
65  }
66}
Note: See TracBrowser for help on using the repository browser.