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_impl.hpp" |
---|
9 | #include "object_template_impl.hpp" |
---|
10 | #include "group_template_impl.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | |
---|
13 | extern "C" |
---|
14 | { |
---|
15 | typedef xios::tree::CFileGroup* filegroup_Ptr; |
---|
16 | |
---|
17 | void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size) |
---|
18 | { |
---|
19 | std::string description_str; |
---|
20 | if(!cstr2string(description, description_size, description_str)) return; |
---|
21 | filegroup_hdl->description.setValue(description_str); |
---|
22 | filegroup_hdl->sendAttributToServer(filegroup_hdl->description); |
---|
23 | } |
---|
24 | |
---|
25 | void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) |
---|
26 | { |
---|
27 | if(!string_copy(filegroup_hdl->description.getValue(),description , description_size)) |
---|
28 | ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) |
---|
33 | { |
---|
34 | filegroup_hdl->enabled.setValue(enabled); |
---|
35 | filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled); |
---|
36 | } |
---|
37 | |
---|
38 | void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled) |
---|
39 | { |
---|
40 | *enabled = filegroup_hdl->enabled.getValue(); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size) |
---|
45 | { |
---|
46 | std::string group_ref_str; |
---|
47 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
48 | filegroup_hdl->group_ref.setValue(group_ref_str); |
---|
49 | filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref); |
---|
50 | } |
---|
51 | |
---|
52 | void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) |
---|
53 | { |
---|
54 | if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
55 | ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
56 | } |
---|
57 | |
---|
58 | |
---|
59 | void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) |
---|
60 | { |
---|
61 | std::string name_str; |
---|
62 | if(!cstr2string(name, name_size, name_str)) return; |
---|
63 | filegroup_hdl->name.setValue(name_str); |
---|
64 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name); |
---|
65 | } |
---|
66 | |
---|
67 | void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) |
---|
68 | { |
---|
69 | if(!string_copy(filegroup_hdl->name.getValue(),name , name_size)) |
---|
70 | ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size) |
---|
75 | { |
---|
76 | std::string name_suffix_str; |
---|
77 | if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
78 | filegroup_hdl->name_suffix.setValue(name_suffix_str); |
---|
79 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix); |
---|
80 | } |
---|
81 | |
---|
82 | void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) |
---|
83 | { |
---|
84 | if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size)) |
---|
85 | ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); |
---|
86 | } |
---|
87 | |
---|
88 | |
---|
89 | void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, const char * output_freq, int output_freq_size) |
---|
90 | { |
---|
91 | std::string output_freq_str; |
---|
92 | if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; |
---|
93 | filegroup_hdl->output_freq.setValue(output_freq_str); |
---|
94 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq); |
---|
95 | } |
---|
96 | |
---|
97 | void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size) |
---|
98 | { |
---|
99 | if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size)) |
---|
100 | ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); |
---|
101 | } |
---|
102 | |
---|
103 | |
---|
104 | void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) |
---|
105 | { |
---|
106 | filegroup_hdl->output_level.setValue(output_level); |
---|
107 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level); |
---|
108 | } |
---|
109 | |
---|
110 | void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level) |
---|
111 | { |
---|
112 | *output_level = filegroup_hdl->output_level.getValue(); |
---|
113 | } |
---|
114 | |
---|
115 | |
---|
116 | void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size) |
---|
117 | { |
---|
118 | std::string par_access_str; |
---|
119 | if(!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
120 | filegroup_hdl->par_access.setValue(par_access_str); |
---|
121 | filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access); |
---|
122 | } |
---|
123 | |
---|
124 | void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) |
---|
125 | { |
---|
126 | if(!string_copy(filegroup_hdl->par_access.getValue(),par_access , par_access_size)) |
---|
127 | ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); |
---|
128 | } |
---|
129 | |
---|
130 | |
---|
131 | void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, const char * split_freq, int split_freq_size) |
---|
132 | { |
---|
133 | std::string split_freq_str; |
---|
134 | if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; |
---|
135 | filegroup_hdl->split_freq.setValue(split_freq_str); |
---|
136 | filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); |
---|
137 | } |
---|
138 | |
---|
139 | void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) |
---|
140 | { |
---|
141 | if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size)) |
---|
142 | ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); |
---|
143 | } |
---|
144 | |
---|
145 | |
---|
146 | void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, const char * sync_freq, int sync_freq_size) |
---|
147 | { |
---|
148 | std::string sync_freq_str; |
---|
149 | if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; |
---|
150 | filegroup_hdl->sync_freq.setValue(sync_freq_str); |
---|
151 | filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); |
---|
152 | } |
---|
153 | |
---|
154 | void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) |
---|
155 | { |
---|
156 | if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) |
---|
157 | ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); |
---|
158 | } |
---|
159 | |
---|
160 | |
---|
161 | void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) |
---|
162 | { |
---|
163 | std::string type_str; |
---|
164 | if(!cstr2string(type, type_size, type_str)) return; |
---|
165 | filegroup_hdl->type.setValue(type_str); |
---|
166 | filegroup_hdl->sendAttributToServer(filegroup_hdl->type); |
---|
167 | } |
---|
168 | |
---|
169 | void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) |
---|
170 | { |
---|
171 | if(!string_copy(filegroup_hdl->type.getValue(),type , type_size)) |
---|
172 | ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
173 | } |
---|
174 | |
---|
175 | |
---|
176 | |
---|
177 | } |
---|