1 | /* ************************************************************************** * |
---|
2 | * Interface auto generated - do not modify * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | #include "xmlioserver.hpp" |
---|
8 | #include "attribute_template.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "timer.hpp" |
---|
13 | #include "node_type.hpp" |
---|
14 | |
---|
15 | extern "C" |
---|
16 | { |
---|
17 | typedef xios::CAxis* axis_Ptr; |
---|
18 | |
---|
19 | void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) |
---|
20 | { |
---|
21 | std::string long_name_str; |
---|
22 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | axis_hdl->long_name.setValue(long_name_str); |
---|
25 | CTimer::get("XIOS").suspend(); |
---|
26 | } |
---|
27 | |
---|
28 | void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) |
---|
29 | { |
---|
30 | CTimer::get("XIOS").resume(); |
---|
31 | if(!string_copy(axis_hdl->long_name.getInheritedValue(),long_name , long_name_size)) |
---|
32 | ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
33 | CTimer::get("XIOS").suspend(); |
---|
34 | } |
---|
35 | |
---|
36 | bool cxios_is_defined_axis_long_name(axis_Ptr axis_hdl ) |
---|
37 | { |
---|
38 | CTimer::get("XIOS").resume(); |
---|
39 | return axis_hdl->long_name.hasInheritedValue(); |
---|
40 | CTimer::get("XIOS").suspend(); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | void cxios_set_axis_name(axis_Ptr axis_hdl, const char * name, int name_size) |
---|
46 | { |
---|
47 | std::string name_str; |
---|
48 | if(!cstr2string(name, name_size, name_str)) return; |
---|
49 | CTimer::get("XIOS").resume(); |
---|
50 | axis_hdl->name.setValue(name_str); |
---|
51 | CTimer::get("XIOS").suspend(); |
---|
52 | } |
---|
53 | |
---|
54 | void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) |
---|
55 | { |
---|
56 | CTimer::get("XIOS").resume(); |
---|
57 | if(!string_copy(axis_hdl->name.getInheritedValue(),name , name_size)) |
---|
58 | ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
59 | CTimer::get("XIOS").suspend(); |
---|
60 | } |
---|
61 | |
---|
62 | bool cxios_is_defined_axis_name(axis_Ptr axis_hdl ) |
---|
63 | { |
---|
64 | CTimer::get("XIOS").resume(); |
---|
65 | return axis_hdl->name.hasInheritedValue(); |
---|
66 | CTimer::get("XIOS").suspend(); |
---|
67 | } |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | void cxios_set_axis_positive(axis_Ptr axis_hdl, const char * positive, int positive_size) |
---|
72 | { |
---|
73 | std::string positive_str; |
---|
74 | if(!cstr2string(positive, positive_size, positive_str)) return; |
---|
75 | CTimer::get("XIOS").resume(); |
---|
76 | axis_hdl->positive.fromString(positive_str); |
---|
77 | CTimer::get("XIOS").suspend(); |
---|
78 | } |
---|
79 | |
---|
80 | void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size) |
---|
81 | { |
---|
82 | CTimer::get("XIOS").resume(); |
---|
83 | if(!string_copy(axis_hdl->positive.getInheritedStringValue(),positive , positive_size)) |
---|
84 | ERROR("void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size)", <<"Input string is to short"); |
---|
85 | CTimer::get("XIOS").suspend(); |
---|
86 | } |
---|
87 | |
---|
88 | bool cxios_is_defined_axis_positive(axis_Ptr axis_hdl ) |
---|
89 | { |
---|
90 | CTimer::get("XIOS").resume(); |
---|
91 | return axis_hdl->positive.hasInheritedValue(); |
---|
92 | CTimer::get("XIOS").suspend(); |
---|
93 | } |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | void cxios_set_axis_size(axis_Ptr axis_hdl, int size) |
---|
98 | { |
---|
99 | CTimer::get("XIOS").resume(); |
---|
100 | axis_hdl->size.setValue(size); |
---|
101 | CTimer::get("XIOS").suspend(); |
---|
102 | } |
---|
103 | |
---|
104 | void cxios_get_axis_size(axis_Ptr axis_hdl, int* size) |
---|
105 | { |
---|
106 | *size = axis_hdl->size.getInheritedValue(); |
---|
107 | } |
---|
108 | |
---|
109 | bool cxios_is_defined_axis_size(axis_Ptr axis_hdl ) |
---|
110 | { |
---|
111 | CTimer::get("XIOS").resume(); |
---|
112 | return axis_hdl->size.hasInheritedValue(); |
---|
113 | CTimer::get("XIOS").suspend(); |
---|
114 | } |
---|
115 | |
---|
116 | |
---|
117 | |
---|
118 | void cxios_set_axis_standard_name(axis_Ptr axis_hdl, const char * standard_name, int standard_name_size) |
---|
119 | { |
---|
120 | std::string standard_name_str; |
---|
121 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
122 | CTimer::get("XIOS").resume(); |
---|
123 | axis_hdl->standard_name.setValue(standard_name_str); |
---|
124 | CTimer::get("XIOS").suspend(); |
---|
125 | } |
---|
126 | |
---|
127 | void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) |
---|
128 | { |
---|
129 | CTimer::get("XIOS").resume(); |
---|
130 | if(!string_copy(axis_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size)) |
---|
131 | ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
132 | CTimer::get("XIOS").suspend(); |
---|
133 | } |
---|
134 | |
---|
135 | bool cxios_is_defined_axis_standard_name(axis_Ptr axis_hdl ) |
---|
136 | { |
---|
137 | CTimer::get("XIOS").resume(); |
---|
138 | return axis_hdl->standard_name.hasInheritedValue(); |
---|
139 | CTimer::get("XIOS").suspend(); |
---|
140 | } |
---|
141 | |
---|
142 | |
---|
143 | |
---|
144 | void cxios_set_axis_unit(axis_Ptr axis_hdl, const char * unit, int unit_size) |
---|
145 | { |
---|
146 | std::string unit_str; |
---|
147 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
148 | CTimer::get("XIOS").resume(); |
---|
149 | axis_hdl->unit.setValue(unit_str); |
---|
150 | CTimer::get("XIOS").suspend(); |
---|
151 | } |
---|
152 | |
---|
153 | void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) |
---|
154 | { |
---|
155 | CTimer::get("XIOS").resume(); |
---|
156 | if(!string_copy(axis_hdl->unit.getInheritedValue(),unit , unit_size)) |
---|
157 | ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
158 | CTimer::get("XIOS").suspend(); |
---|
159 | } |
---|
160 | |
---|
161 | bool cxios_is_defined_axis_unit(axis_Ptr axis_hdl ) |
---|
162 | { |
---|
163 | CTimer::get("XIOS").resume(); |
---|
164 | return axis_hdl->unit.hasInheritedValue(); |
---|
165 | CTimer::get("XIOS").suspend(); |
---|
166 | } |
---|
167 | |
---|
168 | |
---|
169 | |
---|
170 | void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
171 | { |
---|
172 | CTimer::get("XIOS").resume(); |
---|
173 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
174 | axis_hdl->value.reference(tmp.copy()); |
---|
175 | CTimer::get("XIOS").suspend(); |
---|
176 | } |
---|
177 | |
---|
178 | void cxios_get_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
179 | { |
---|
180 | CTimer::get("XIOS").resume(); |
---|
181 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
182 | tmp=axis_hdl->value.getInheritedValue() ; |
---|
183 | CTimer::get("XIOS").suspend(); |
---|
184 | } |
---|
185 | |
---|
186 | bool cxios_is_defined_axis_value(axis_Ptr axis_hdl ) |
---|
187 | { |
---|
188 | CTimer::get("XIOS").resume(); |
---|
189 | return axis_hdl->value.hasInheritedValue(); |
---|
190 | CTimer::get("XIOS").suspend(); |
---|
191 | } |
---|
192 | |
---|
193 | |
---|
194 | |
---|
195 | void cxios_set_axis_zoom_begin(axis_Ptr axis_hdl, int zoom_begin) |
---|
196 | { |
---|
197 | CTimer::get("XIOS").resume(); |
---|
198 | axis_hdl->zoom_begin.setValue(zoom_begin); |
---|
199 | CTimer::get("XIOS").suspend(); |
---|
200 | } |
---|
201 | |
---|
202 | void cxios_get_axis_zoom_begin(axis_Ptr axis_hdl, int* zoom_begin) |
---|
203 | { |
---|
204 | *zoom_begin = axis_hdl->zoom_begin.getInheritedValue(); |
---|
205 | } |
---|
206 | |
---|
207 | bool cxios_is_defined_axis_zoom_begin(axis_Ptr axis_hdl ) |
---|
208 | { |
---|
209 | CTimer::get("XIOS").resume(); |
---|
210 | return axis_hdl->zoom_begin.hasInheritedValue(); |
---|
211 | CTimer::get("XIOS").suspend(); |
---|
212 | } |
---|
213 | |
---|
214 | |
---|
215 | |
---|
216 | void cxios_set_axis_zoom_end(axis_Ptr axis_hdl, int zoom_end) |
---|
217 | { |
---|
218 | CTimer::get("XIOS").resume(); |
---|
219 | axis_hdl->zoom_end.setValue(zoom_end); |
---|
220 | CTimer::get("XIOS").suspend(); |
---|
221 | } |
---|
222 | |
---|
223 | void cxios_get_axis_zoom_end(axis_Ptr axis_hdl, int* zoom_end) |
---|
224 | { |
---|
225 | *zoom_end = axis_hdl->zoom_end.getInheritedValue(); |
---|
226 | } |
---|
227 | |
---|
228 | bool cxios_is_defined_axis_zoom_end(axis_Ptr axis_hdl ) |
---|
229 | { |
---|
230 | CTimer::get("XIOS").resume(); |
---|
231 | return axis_hdl->zoom_end.hasInheritedValue(); |
---|
232 | CTimer::get("XIOS").suspend(); |
---|
233 | } |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | void cxios_set_axis_zoom_size(axis_Ptr axis_hdl, int zoom_size) |
---|
238 | { |
---|
239 | CTimer::get("XIOS").resume(); |
---|
240 | axis_hdl->zoom_size.setValue(zoom_size); |
---|
241 | CTimer::get("XIOS").suspend(); |
---|
242 | } |
---|
243 | |
---|
244 | void cxios_get_axis_zoom_size(axis_Ptr axis_hdl, int* zoom_size) |
---|
245 | { |
---|
246 | *zoom_size = axis_hdl->zoom_size.getInheritedValue(); |
---|
247 | } |
---|
248 | |
---|
249 | bool cxios_is_defined_axis_zoom_size(axis_Ptr axis_hdl ) |
---|
250 | { |
---|
251 | CTimer::get("XIOS").resume(); |
---|
252 | return axis_hdl->zoom_size.hasInheritedValue(); |
---|
253 | CTimer::get("XIOS").suspend(); |
---|
254 | } |
---|
255 | |
---|
256 | |
---|
257 | |
---|
258 | |
---|
259 | } |
---|