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::CInterpolateAxis* interpolate_axis_Ptr; |
---|
18 | |
---|
19 | void cxios_set_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate, int coordinate_size) |
---|
20 | { |
---|
21 | std::string coordinate_str; |
---|
22 | if (!cstr2string(coordinate, coordinate_size, coordinate_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | interpolate_axis_hdl->coordinate.setValue(coordinate_str); |
---|
25 | CTimer::get("XIOS").suspend(); |
---|
26 | } |
---|
27 | |
---|
28 | void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size) |
---|
29 | { |
---|
30 | CTimer::get("XIOS").resume(); |
---|
31 | if (!string_copy(interpolate_axis_hdl->coordinate.getInheritedValue(), coordinate, coordinate_size)) |
---|
32 | ERROR("void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size)", << "Input string is too short"); |
---|
33 | CTimer::get("XIOS").suspend(); |
---|
34 | } |
---|
35 | |
---|
36 | bool cxios_is_defined_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
37 | { |
---|
38 | CTimer::get("XIOS").resume(); |
---|
39 | bool isDefined = interpolate_axis_hdl->coordinate.hasInheritedValue(); |
---|
40 | CTimer::get("XIOS").suspend(); |
---|
41 | return isDefined; |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | void cxios_set_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate_dst, int coordinate_dst_size) |
---|
46 | { |
---|
47 | std::string coordinate_dst_str; |
---|
48 | if (!cstr2string(coordinate_dst, coordinate_dst_size, coordinate_dst_str)) return; |
---|
49 | CTimer::get("XIOS").resume(); |
---|
50 | interpolate_axis_hdl->coordinate_dst.setValue(coordinate_dst_str); |
---|
51 | CTimer::get("XIOS").suspend(); |
---|
52 | } |
---|
53 | |
---|
54 | void cxios_get_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_dst, int coordinate_dst_size) |
---|
55 | { |
---|
56 | CTimer::get("XIOS").resume(); |
---|
57 | if (!string_copy(interpolate_axis_hdl->coordinate_dst.getInheritedValue(), coordinate_dst, coordinate_dst_size)) |
---|
58 | ERROR("void cxios_get_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_dst, int coordinate_dst_size)", << "Input string is too short"); |
---|
59 | CTimer::get("XIOS").suspend(); |
---|
60 | } |
---|
61 | |
---|
62 | bool cxios_is_defined_interpolate_axis_coordinate_dst(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
63 | { |
---|
64 | CTimer::get("XIOS").resume(); |
---|
65 | bool isDefined = interpolate_axis_hdl->coordinate_dst.hasInheritedValue(); |
---|
66 | CTimer::get("XIOS").suspend(); |
---|
67 | return isDefined; |
---|
68 | } |
---|
69 | |
---|
70 | |
---|
71 | void cxios_set_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate_src, int coordinate_src_size) |
---|
72 | { |
---|
73 | std::string coordinate_src_str; |
---|
74 | if (!cstr2string(coordinate_src, coordinate_src_size, coordinate_src_str)) return; |
---|
75 | CTimer::get("XIOS").resume(); |
---|
76 | interpolate_axis_hdl->coordinate_src.setValue(coordinate_src_str); |
---|
77 | CTimer::get("XIOS").suspend(); |
---|
78 | } |
---|
79 | |
---|
80 | void cxios_get_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_src, int coordinate_src_size) |
---|
81 | { |
---|
82 | CTimer::get("XIOS").resume(); |
---|
83 | if (!string_copy(interpolate_axis_hdl->coordinate_src.getInheritedValue(), coordinate_src, coordinate_src_size)) |
---|
84 | ERROR("void cxios_get_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate_src, int coordinate_src_size)", << "Input string is too short"); |
---|
85 | CTimer::get("XIOS").suspend(); |
---|
86 | } |
---|
87 | |
---|
88 | bool cxios_is_defined_interpolate_axis_coordinate_src(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
89 | { |
---|
90 | CTimer::get("XIOS").resume(); |
---|
91 | bool isDefined = interpolate_axis_hdl->coordinate_src.hasInheritedValue(); |
---|
92 | CTimer::get("XIOS").suspend(); |
---|
93 | return isDefined; |
---|
94 | } |
---|
95 | |
---|
96 | |
---|
97 | void cxios_set_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl, bool extrapolate) |
---|
98 | { |
---|
99 | CTimer::get("XIOS").resume(); |
---|
100 | interpolate_axis_hdl->extrapolate.setValue(extrapolate); |
---|
101 | CTimer::get("XIOS").suspend(); |
---|
102 | } |
---|
103 | |
---|
104 | void cxios_get_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl, bool* extrapolate) |
---|
105 | { |
---|
106 | CTimer::get("XIOS").resume(); |
---|
107 | *extrapolate = interpolate_axis_hdl->extrapolate.getInheritedValue(); |
---|
108 | CTimer::get("XIOS").suspend(); |
---|
109 | } |
---|
110 | |
---|
111 | bool cxios_is_defined_interpolate_axis_extrapolate(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
112 | { |
---|
113 | CTimer::get("XIOS").resume(); |
---|
114 | bool isDefined = interpolate_axis_hdl->extrapolate.hasInheritedValue(); |
---|
115 | CTimer::get("XIOS").suspend(); |
---|
116 | return isDefined; |
---|
117 | } |
---|
118 | |
---|
119 | |
---|
120 | void cxios_set_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl, int order) |
---|
121 | { |
---|
122 | CTimer::get("XIOS").resume(); |
---|
123 | interpolate_axis_hdl->order.setValue(order); |
---|
124 | CTimer::get("XIOS").suspend(); |
---|
125 | } |
---|
126 | |
---|
127 | void cxios_get_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl, int* order) |
---|
128 | { |
---|
129 | CTimer::get("XIOS").resume(); |
---|
130 | *order = interpolate_axis_hdl->order.getInheritedValue(); |
---|
131 | CTimer::get("XIOS").suspend(); |
---|
132 | } |
---|
133 | |
---|
134 | bool cxios_is_defined_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
135 | { |
---|
136 | CTimer::get("XIOS").resume(); |
---|
137 | bool isDefined = interpolate_axis_hdl->order.hasInheritedValue(); |
---|
138 | CTimer::get("XIOS").suspend(); |
---|
139 | return isDefined; |
---|
140 | } |
---|
141 | |
---|
142 | |
---|
143 | void cxios_set_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, const char * type, int type_size) |
---|
144 | { |
---|
145 | std::string type_str; |
---|
146 | if (!cstr2string(type, type_size, type_str)) return; |
---|
147 | CTimer::get("XIOS").resume(); |
---|
148 | interpolate_axis_hdl->type.setValue(type_str); |
---|
149 | CTimer::get("XIOS").suspend(); |
---|
150 | } |
---|
151 | |
---|
152 | void cxios_get_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, char * type, int type_size) |
---|
153 | { |
---|
154 | CTimer::get("XIOS").resume(); |
---|
155 | if (!string_copy(interpolate_axis_hdl->type.getInheritedValue(), type, type_size)) |
---|
156 | ERROR("void cxios_get_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
157 | CTimer::get("XIOS").suspend(); |
---|
158 | } |
---|
159 | |
---|
160 | bool cxios_is_defined_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
161 | { |
---|
162 | CTimer::get("XIOS").resume(); |
---|
163 | bool isDefined = interpolate_axis_hdl->type.hasInheritedValue(); |
---|
164 | CTimer::get("XIOS").suspend(); |
---|
165 | return isDefined; |
---|
166 | } |
---|
167 | } |
---|