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 | |
---|
15 | extern "C" |
---|
16 | { |
---|
17 | typedef xios::CReduceAxisToAxis* reduce_axis_to_axis_Ptr; |
---|
18 | |
---|
19 | void cxios_set_reduce_axis_to_axis_operation(reduce_axis_to_axis_Ptr reduce_axis_to_axis_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_axis_to_axis_hdl->operation.fromString(operation_str); |
---|
25 | CTimer::get("XIOS").suspend(); |
---|
26 | } |
---|
27 | |
---|
28 | void cxios_get_reduce_axis_to_axis_operation(reduce_axis_to_axis_Ptr reduce_axis_to_axis_hdl, char * operation, int operation_size) |
---|
29 | { |
---|
30 | CTimer::get("XIOS").resume(); |
---|
31 | if (!string_copy(reduce_axis_to_axis_hdl->operation.getInheritedStringValue(), operation, operation_size)) |
---|
32 | ERROR("void cxios_get_reduce_axis_to_axis_operation(reduce_axis_to_axis_Ptr reduce_axis_to_axis_hdl, char * operation, int operation_size)", << "Input string is too short"); |
---|
33 | CTimer::get("XIOS").suspend(); |
---|
34 | } |
---|
35 | |
---|
36 | bool cxios_is_defined_reduce_axis_to_axis_operation(reduce_axis_to_axis_Ptr reduce_axis_to_axis_hdl) |
---|
37 | { |
---|
38 | CTimer::get("XIOS").resume(); |
---|
39 | bool isDefined = reduce_axis_to_axis_hdl->operation.hasInheritedValue(); |
---|
40 | CTimer::get("XIOS").suspend(); |
---|
41 | return isDefined; |
---|
42 | } |
---|
43 | } |
---|