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 | axis_hdl->sendAttributToServer(axis_hdl->long_name); |
---|
26 | CTimer::get("XIOS").suspend(); |
---|
27 | } |
---|
28 | |
---|
29 | void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) |
---|
30 | { |
---|
31 | CTimer::get("XIOS").resume(); |
---|
32 | if(!string_copy(axis_hdl->long_name.getValue(),long_name , long_name_size)) |
---|
33 | ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
34 | CTimer::get("XIOS").suspend(); |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | void cxios_set_axis_name(axis_Ptr axis_hdl, const char * name, int name_size) |
---|
39 | { |
---|
40 | std::string name_str; |
---|
41 | if(!cstr2string(name, name_size, name_str)) return; |
---|
42 | CTimer::get("XIOS").resume(); |
---|
43 | axis_hdl->name.setValue(name_str); |
---|
44 | axis_hdl->sendAttributToServer(axis_hdl->name); |
---|
45 | CTimer::get("XIOS").suspend(); |
---|
46 | } |
---|
47 | |
---|
48 | void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) |
---|
49 | { |
---|
50 | CTimer::get("XIOS").resume(); |
---|
51 | if(!string_copy(axis_hdl->name.getValue(),name , name_size)) |
---|
52 | ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
53 | CTimer::get("XIOS").suspend(); |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | void cxios_set_axis_size(axis_Ptr axis_hdl, int size) |
---|
58 | { |
---|
59 | CTimer::get("XIOS").resume(); |
---|
60 | axis_hdl->size.setValue(size); |
---|
61 | axis_hdl->sendAttributToServer(axis_hdl->size); |
---|
62 | CTimer::get("XIOS").suspend(); |
---|
63 | } |
---|
64 | |
---|
65 | void cxios_get_axis_size(axis_Ptr axis_hdl, int* size) |
---|
66 | { |
---|
67 | *size = axis_hdl->size.getValue(); |
---|
68 | } |
---|
69 | |
---|
70 | |
---|
71 | void cxios_set_axis_standard_name(axis_Ptr axis_hdl, const char * standard_name, int standard_name_size) |
---|
72 | { |
---|
73 | std::string standard_name_str; |
---|
74 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
75 | CTimer::get("XIOS").resume(); |
---|
76 | axis_hdl->standard_name.setValue(standard_name_str); |
---|
77 | axis_hdl->sendAttributToServer(axis_hdl->standard_name); |
---|
78 | CTimer::get("XIOS").suspend(); |
---|
79 | } |
---|
80 | |
---|
81 | void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) |
---|
82 | { |
---|
83 | CTimer::get("XIOS").resume(); |
---|
84 | if(!string_copy(axis_hdl->standard_name.getValue(),standard_name , standard_name_size)) |
---|
85 | ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
86 | CTimer::get("XIOS").suspend(); |
---|
87 | } |
---|
88 | |
---|
89 | |
---|
90 | void cxios_set_axis_unit(axis_Ptr axis_hdl, const char * unit, int unit_size) |
---|
91 | { |
---|
92 | std::string unit_str; |
---|
93 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
94 | CTimer::get("XIOS").resume(); |
---|
95 | axis_hdl->unit.setValue(unit_str); |
---|
96 | axis_hdl->sendAttributToServer(axis_hdl->unit); |
---|
97 | CTimer::get("XIOS").suspend(); |
---|
98 | } |
---|
99 | |
---|
100 | void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) |
---|
101 | { |
---|
102 | CTimer::get("XIOS").resume(); |
---|
103 | if(!string_copy(axis_hdl->unit.getValue(),unit , unit_size)) |
---|
104 | ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
105 | CTimer::get("XIOS").suspend(); |
---|
106 | } |
---|
107 | |
---|
108 | |
---|
109 | void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
110 | { |
---|
111 | CTimer::get("XIOS").resume(); |
---|
112 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
113 | axis_hdl->value.reference(tmp.copy()); |
---|
114 | axis_hdl->sendAttributToServer(axis_hdl->value); |
---|
115 | } |
---|
116 | |
---|
117 | void cxios_get_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
118 | { |
---|
119 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
120 | tmp=axis_hdl->value ; |
---|
121 | CTimer::get("XIOS").suspend(); |
---|
122 | } |
---|
123 | |
---|
124 | |
---|
125 | void cxios_set_axis_zoom_begin(axis_Ptr axis_hdl, int zoom_begin) |
---|
126 | { |
---|
127 | CTimer::get("XIOS").resume(); |
---|
128 | axis_hdl->zoom_begin.setValue(zoom_begin); |
---|
129 | axis_hdl->sendAttributToServer(axis_hdl->zoom_begin); |
---|
130 | CTimer::get("XIOS").suspend(); |
---|
131 | } |
---|
132 | |
---|
133 | void cxios_get_axis_zoom_begin(axis_Ptr axis_hdl, int* zoom_begin) |
---|
134 | { |
---|
135 | *zoom_begin = axis_hdl->zoom_begin.getValue(); |
---|
136 | } |
---|
137 | |
---|
138 | |
---|
139 | void cxios_set_axis_zoom_end(axis_Ptr axis_hdl, int zoom_end) |
---|
140 | { |
---|
141 | CTimer::get("XIOS").resume(); |
---|
142 | axis_hdl->zoom_end.setValue(zoom_end); |
---|
143 | axis_hdl->sendAttributToServer(axis_hdl->zoom_end); |
---|
144 | CTimer::get("XIOS").suspend(); |
---|
145 | } |
---|
146 | |
---|
147 | void cxios_get_axis_zoom_end(axis_Ptr axis_hdl, int* zoom_end) |
---|
148 | { |
---|
149 | *zoom_end = axis_hdl->zoom_end.getValue(); |
---|
150 | } |
---|
151 | |
---|
152 | |
---|
153 | void cxios_set_axis_zoom_size(axis_Ptr axis_hdl, int zoom_size) |
---|
154 | { |
---|
155 | CTimer::get("XIOS").resume(); |
---|
156 | axis_hdl->zoom_size.setValue(zoom_size); |
---|
157 | axis_hdl->sendAttributToServer(axis_hdl->zoom_size); |
---|
158 | CTimer::get("XIOS").suspend(); |
---|
159 | } |
---|
160 | |
---|
161 | void cxios_get_axis_zoom_size(axis_Ptr axis_hdl, int* zoom_size) |
---|
162 | { |
---|
163 | *zoom_size = axis_hdl->zoom_size.getValue(); |
---|
164 | } |
---|
165 | |
---|
166 | |
---|
167 | |
---|
168 | } |
---|