1 | /* ************************************************************************** * |
---|
2 | * Interface auto generated - do not modify * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | #include "xios.hpp" |
---|
8 | #include "attribute_template.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "icdate.hpp" |
---|
13 | #include "timer.hpp" |
---|
14 | #include "node_type.hpp" |
---|
15 | |
---|
16 | extern "C" |
---|
17 | { |
---|
18 | typedef xios::CReduceDomainToAxis* reduce_domain_to_axis_Ptr; |
---|
19 | |
---|
20 | void cxios_set_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, const char * direction, int direction_size) |
---|
21 | { |
---|
22 | std::string direction_str; |
---|
23 | if (!cstr2string(direction, direction_size, direction_str)) return; |
---|
24 | CTimer::get("XIOS").resume(); |
---|
25 | reduce_domain_to_axis_hdl->direction.fromString(direction_str); |
---|
26 | CTimer::get("XIOS").suspend(); |
---|
27 | } |
---|
28 | |
---|
29 | void cxios_get_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * direction, int direction_size) |
---|
30 | { |
---|
31 | CTimer::get("XIOS").resume(); |
---|
32 | if (!string_copy(reduce_domain_to_axis_hdl->direction.getInheritedStringValue(), direction, direction_size)) |
---|
33 | 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"); |
---|
34 | CTimer::get("XIOS").suspend(); |
---|
35 | } |
---|
36 | |
---|
37 | bool cxios_is_defined_reduce_domain_to_axis_direction(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl) |
---|
38 | { |
---|
39 | CTimer::get("XIOS").resume(); |
---|
40 | bool isDefined = reduce_domain_to_axis_hdl->direction.hasInheritedValue(); |
---|
41 | CTimer::get("XIOS").suspend(); |
---|
42 | return isDefined; |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | void cxios_set_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, bool local) |
---|
47 | { |
---|
48 | CTimer::get("XIOS").resume(); |
---|
49 | reduce_domain_to_axis_hdl->local.setValue(local); |
---|
50 | CTimer::get("XIOS").suspend(); |
---|
51 | } |
---|
52 | |
---|
53 | void cxios_get_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, bool* local) |
---|
54 | { |
---|
55 | CTimer::get("XIOS").resume(); |
---|
56 | *local = reduce_domain_to_axis_hdl->local.getInheritedValue(); |
---|
57 | CTimer::get("XIOS").suspend(); |
---|
58 | } |
---|
59 | |
---|
60 | bool cxios_is_defined_reduce_domain_to_axis_local(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl) |
---|
61 | { |
---|
62 | CTimer::get("XIOS").resume(); |
---|
63 | bool isDefined = reduce_domain_to_axis_hdl->local.hasInheritedValue(); |
---|
64 | CTimer::get("XIOS").suspend(); |
---|
65 | return isDefined; |
---|
66 | } |
---|
67 | |
---|
68 | |
---|
69 | void cxios_set_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, const char * operation, int operation_size) |
---|
70 | { |
---|
71 | std::string operation_str; |
---|
72 | if (!cstr2string(operation, operation_size, operation_str)) return; |
---|
73 | CTimer::get("XIOS").resume(); |
---|
74 | reduce_domain_to_axis_hdl->operation.fromString(operation_str); |
---|
75 | CTimer::get("XIOS").suspend(); |
---|
76 | } |
---|
77 | |
---|
78 | void cxios_get_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl, char * operation, int operation_size) |
---|
79 | { |
---|
80 | CTimer::get("XIOS").resume(); |
---|
81 | if (!string_copy(reduce_domain_to_axis_hdl->operation.getInheritedStringValue(), operation, operation_size)) |
---|
82 | 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"); |
---|
83 | CTimer::get("XIOS").suspend(); |
---|
84 | } |
---|
85 | |
---|
86 | bool cxios_is_defined_reduce_domain_to_axis_operation(reduce_domain_to_axis_Ptr reduce_domain_to_axis_hdl) |
---|
87 | { |
---|
88 | CTimer::get("XIOS").resume(); |
---|
89 | bool isDefined = reduce_domain_to_axis_hdl->operation.hasInheritedValue(); |
---|
90 | CTimer::get("XIOS").suspend(); |
---|
91 | return isDefined; |
---|
92 | } |
---|
93 | } |
---|