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::CAxisGroup* axisgroup_Ptr; |
---|
18 | |
---|
19 | void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size) |
---|
20 | { |
---|
21 | std::string group_ref_str; |
---|
22 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | axisgroup_hdl->group_ref.setValue(group_ref_str); |
---|
25 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->group_ref); |
---|
26 | CTimer::get("XIOS").suspend(); |
---|
27 | } |
---|
28 | |
---|
29 | void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size) |
---|
30 | { |
---|
31 | CTimer::get("XIOS").resume(); |
---|
32 | if(!string_copy(axisgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
33 | ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
34 | CTimer::get("XIOS").suspend(); |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) |
---|
39 | { |
---|
40 | std::string long_name_str; |
---|
41 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
42 | CTimer::get("XIOS").resume(); |
---|
43 | axisgroup_hdl->long_name.setValue(long_name_str); |
---|
44 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->long_name); |
---|
45 | CTimer::get("XIOS").suspend(); |
---|
46 | } |
---|
47 | |
---|
48 | void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size) |
---|
49 | { |
---|
50 | CTimer::get("XIOS").resume(); |
---|
51 | if(!string_copy(axisgroup_hdl->long_name.getValue(),long_name , long_name_size)) |
---|
52 | ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
53 | CTimer::get("XIOS").suspend(); |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size) |
---|
58 | { |
---|
59 | std::string name_str; |
---|
60 | if(!cstr2string(name, name_size, name_str)) return; |
---|
61 | CTimer::get("XIOS").resume(); |
---|
62 | axisgroup_hdl->name.setValue(name_str); |
---|
63 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->name); |
---|
64 | CTimer::get("XIOS").suspend(); |
---|
65 | } |
---|
66 | |
---|
67 | void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size) |
---|
68 | { |
---|
69 | CTimer::get("XIOS").resume(); |
---|
70 | if(!string_copy(axisgroup_hdl->name.getValue(),name , name_size)) |
---|
71 | ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
72 | CTimer::get("XIOS").suspend(); |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) |
---|
77 | { |
---|
78 | std::string positive_str; |
---|
79 | if(!cstr2string(positive, positive_size, positive_str)) return; |
---|
80 | CTimer::get("XIOS").resume(); |
---|
81 | axisgroup_hdl->positive.fromString(positive_str); |
---|
82 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->positive); |
---|
83 | CTimer::get("XIOS").suspend(); |
---|
84 | } |
---|
85 | |
---|
86 | void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size) |
---|
87 | { |
---|
88 | CTimer::get("XIOS").resume(); |
---|
89 | if(!string_copy(axisgroup_hdl->positive.getStringValue(),positive , positive_size)) |
---|
90 | ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", <<"Input string is to short"); |
---|
91 | CTimer::get("XIOS").suspend(); |
---|
92 | } |
---|
93 | |
---|
94 | |
---|
95 | void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size) |
---|
96 | { |
---|
97 | CTimer::get("XIOS").resume(); |
---|
98 | axisgroup_hdl->size.setValue(size); |
---|
99 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->size); |
---|
100 | CTimer::get("XIOS").suspend(); |
---|
101 | } |
---|
102 | |
---|
103 | void cxios_get_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int* size) |
---|
104 | { |
---|
105 | *size = axisgroup_hdl->size.getValue(); |
---|
106 | } |
---|
107 | |
---|
108 | |
---|
109 | void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size) |
---|
110 | { |
---|
111 | std::string standard_name_str; |
---|
112 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
113 | CTimer::get("XIOS").resume(); |
---|
114 | axisgroup_hdl->standard_name.setValue(standard_name_str); |
---|
115 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->standard_name); |
---|
116 | CTimer::get("XIOS").suspend(); |
---|
117 | } |
---|
118 | |
---|
119 | void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size) |
---|
120 | { |
---|
121 | CTimer::get("XIOS").resume(); |
---|
122 | if(!string_copy(axisgroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) |
---|
123 | ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
124 | CTimer::get("XIOS").suspend(); |
---|
125 | } |
---|
126 | |
---|
127 | |
---|
128 | void cxios_set_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, const char * unit, int unit_size) |
---|
129 | { |
---|
130 | std::string unit_str; |
---|
131 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
132 | CTimer::get("XIOS").resume(); |
---|
133 | axisgroup_hdl->unit.setValue(unit_str); |
---|
134 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->unit); |
---|
135 | CTimer::get("XIOS").suspend(); |
---|
136 | } |
---|
137 | |
---|
138 | void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size) |
---|
139 | { |
---|
140 | CTimer::get("XIOS").resume(); |
---|
141 | if(!string_copy(axisgroup_hdl->unit.getValue(),unit , unit_size)) |
---|
142 | ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
143 | CTimer::get("XIOS").suspend(); |
---|
144 | } |
---|
145 | |
---|
146 | |
---|
147 | void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1) |
---|
148 | { |
---|
149 | CTimer::get("XIOS").resume(); |
---|
150 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
151 | axisgroup_hdl->value.reference(tmp.copy()); |
---|
152 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->value); |
---|
153 | CTimer::get("XIOS").suspend(); |
---|
154 | } |
---|
155 | |
---|
156 | void cxios_get_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1) |
---|
157 | { |
---|
158 | CTimer::get("XIOS").resume(); |
---|
159 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
160 | tmp=axisgroup_hdl->value ; |
---|
161 | CTimer::get("XIOS").suspend(); |
---|
162 | } |
---|
163 | |
---|
164 | |
---|
165 | void cxios_set_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int zoom_begin) |
---|
166 | { |
---|
167 | CTimer::get("XIOS").resume(); |
---|
168 | axisgroup_hdl->zoom_begin.setValue(zoom_begin); |
---|
169 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_begin); |
---|
170 | CTimer::get("XIOS").suspend(); |
---|
171 | } |
---|
172 | |
---|
173 | void cxios_get_axisgroup_zoom_begin(axisgroup_Ptr axisgroup_hdl, int* zoom_begin) |
---|
174 | { |
---|
175 | *zoom_begin = axisgroup_hdl->zoom_begin.getValue(); |
---|
176 | } |
---|
177 | |
---|
178 | |
---|
179 | void cxios_set_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int zoom_end) |
---|
180 | { |
---|
181 | CTimer::get("XIOS").resume(); |
---|
182 | axisgroup_hdl->zoom_end.setValue(zoom_end); |
---|
183 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_end); |
---|
184 | CTimer::get("XIOS").suspend(); |
---|
185 | } |
---|
186 | |
---|
187 | void cxios_get_axisgroup_zoom_end(axisgroup_Ptr axisgroup_hdl, int* zoom_end) |
---|
188 | { |
---|
189 | *zoom_end = axisgroup_hdl->zoom_end.getValue(); |
---|
190 | } |
---|
191 | |
---|
192 | |
---|
193 | void cxios_set_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int zoom_size) |
---|
194 | { |
---|
195 | CTimer::get("XIOS").resume(); |
---|
196 | axisgroup_hdl->zoom_size.setValue(zoom_size); |
---|
197 | axisgroup_hdl->sendAttributToServer(axisgroup_hdl->zoom_size); |
---|
198 | CTimer::get("XIOS").suspend(); |
---|
199 | } |
---|
200 | |
---|
201 | void cxios_get_axisgroup_zoom_size(axisgroup_Ptr axisgroup_hdl, int* zoom_size) |
---|
202 | { |
---|
203 | *zoom_size = axisgroup_hdl->zoom_size.getValue(); |
---|
204 | } |
---|
205 | |
---|
206 | |
---|
207 | |
---|
208 | } |
---|