source: XIOS/trunk/src/interface/c_attr/icreduce_scalar_to_scalar_attr.cpp @ 1626

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

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

File size: 1.8 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::CReduceScalarToScalar* reduce_scalar_to_scalar_Ptr;
18
19  void cxios_set_reduce_scalar_to_scalar_operation(reduce_scalar_to_scalar_Ptr reduce_scalar_to_scalar_hdl, const char * operation, int operation_size)
20  {
21    std::string operation_str;
22    if (!cstr2string(operation, operation_size, operation_str)) return;
23    CTimer::get("XIOS").resume();
24    reduce_scalar_to_scalar_hdl->operation.fromString(operation_str);
25    CTimer::get("XIOS").suspend();
26  }
27
28  void cxios_get_reduce_scalar_to_scalar_operation(reduce_scalar_to_scalar_Ptr reduce_scalar_to_scalar_hdl, char * operation, int operation_size)
29  {
30    CTimer::get("XIOS").resume();
31    if (!string_copy(reduce_scalar_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size))
32      ERROR("void cxios_get_reduce_scalar_to_scalar_operation(reduce_scalar_to_scalar_Ptr reduce_scalar_to_scalar_hdl, char * operation, int operation_size)", << "Input string is too short");
33    CTimer::get("XIOS").suspend();
34  }
35
36  bool cxios_is_defined_reduce_scalar_to_scalar_operation(reduce_scalar_to_scalar_Ptr reduce_scalar_to_scalar_hdl)
37  {
38     CTimer::get("XIOS").resume();
39     bool isDefined = reduce_scalar_to_scalar_hdl->operation.hasInheritedValue();
40     CTimer::get("XIOS").suspend();
41     return isDefined;
42  }
43}
Note: See TracBrowser for help on using the repository browser.