[314] | 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 xmlioserver::tree::CFieldGroup* fieldgroup_Ptr; |
---|
| 16 | |
---|
| 17 | void cxios_set_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 18 | { |
---|
| 19 | std::string axis_ref_str; |
---|
| 20 | if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
| 21 | fieldgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
| 22 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->axis_ref); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
| 26 | { |
---|
| 27 | if(!string_copy(fieldgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) |
---|
| 28 | ERROR("void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | void cxios_set_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double default_value) |
---|
| 33 | { |
---|
| 34 | fieldgroup_hdl->default_value.setValue(default_value); |
---|
| 35 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->default_value); |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | void cxios_get_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double* default_value) |
---|
| 39 | { |
---|
| 40 | *default_value = fieldgroup_hdl->default_value.getValue(); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | void cxios_set_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 45 | { |
---|
| 46 | std::string domain_ref_str; |
---|
| 47 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
| 48 | fieldgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
| 49 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->domain_ref); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
| 53 | { |
---|
| 54 | if(!string_copy(fieldgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) |
---|
| 55 | ERROR("void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | void cxios_set_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool enabled) |
---|
| 60 | { |
---|
| 61 | fieldgroup_hdl->enabled.setValue(enabled); |
---|
| 62 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->enabled); |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | void cxios_get_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool* enabled) |
---|
| 66 | { |
---|
| 67 | *enabled = fieldgroup_hdl->enabled.getValue(); |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | void cxios_set_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, const char * field_ref, int field_ref_size) |
---|
| 72 | { |
---|
| 73 | std::string field_ref_str; |
---|
| 74 | if(!cstr2string(field_ref, field_ref_size, field_ref_str)) return; |
---|
| 75 | fieldgroup_hdl->field_ref.setValue(field_ref_str); |
---|
| 76 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->field_ref); |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size) |
---|
| 80 | { |
---|
| 81 | if(!string_copy(fieldgroup_hdl->field_ref.getValue(),field_ref , field_ref_size)) |
---|
| 82 | ERROR("void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)", <<"Input string is to short"); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | void cxios_set_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, const char * freq_offset, int freq_offset_size) |
---|
| 87 | { |
---|
| 88 | std::string freq_offset_str; |
---|
| 89 | if(!cstr2string(freq_offset, freq_offset_size, freq_offset_str)) return; |
---|
| 90 | fieldgroup_hdl->freq_offset.setValue(freq_offset_str); |
---|
| 91 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_offset); |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size) |
---|
| 95 | { |
---|
| 96 | if(!string_copy(fieldgroup_hdl->freq_offset.getValue(),freq_offset , freq_offset_size)) |
---|
| 97 | ERROR("void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size)", <<"Input string is to short"); |
---|
| 98 | } |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | void cxios_set_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, const char * freq_op, int freq_op_size) |
---|
| 102 | { |
---|
| 103 | std::string freq_op_str; |
---|
| 104 | if(!cstr2string(freq_op, freq_op_size, freq_op_str)) return; |
---|
| 105 | fieldgroup_hdl->freq_op.setValue(freq_op_str); |
---|
| 106 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_op); |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size) |
---|
| 110 | { |
---|
| 111 | if(!string_copy(fieldgroup_hdl->freq_op.getValue(),freq_op , freq_op_size)) |
---|
| 112 | ERROR("void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size)", <<"Input string is to short"); |
---|
| 113 | } |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | void cxios_set_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, const char * grid_ref, int grid_ref_size) |
---|
| 117 | { |
---|
| 118 | std::string grid_ref_str; |
---|
| 119 | if(!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return; |
---|
| 120 | fieldgroup_hdl->grid_ref.setValue(grid_ref_str); |
---|
| 121 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->grid_ref); |
---|
| 122 | } |
---|
| 123 | |
---|
| 124 | void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size) |
---|
| 125 | { |
---|
| 126 | if(!string_copy(fieldgroup_hdl->grid_ref.getValue(),grid_ref , grid_ref_size)) |
---|
| 127 | ERROR("void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)", <<"Input string is to short"); |
---|
| 128 | } |
---|
| 129 | |
---|
| 130 | |
---|
| 131 | void cxios_set_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 132 | { |
---|
| 133 | std::string group_ref_str; |
---|
| 134 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
| 135 | fieldgroup_hdl->group_ref.setValue(group_ref_str); |
---|
| 136 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->group_ref); |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 140 | { |
---|
| 141 | if(!string_copy(fieldgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
| 142 | ERROR("void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
| 143 | } |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | void cxios_set_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int level) |
---|
| 147 | { |
---|
| 148 | fieldgroup_hdl->level.setValue(level); |
---|
| 149 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->level); |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | void cxios_get_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int* level) |
---|
| 153 | { |
---|
| 154 | *level = fieldgroup_hdl->level.getValue(); |
---|
| 155 | } |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | void cxios_set_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, const char * long_name, int long_name_size) |
---|
| 159 | { |
---|
| 160 | std::string long_name_str; |
---|
| 161 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
| 162 | fieldgroup_hdl->long_name.setValue(long_name_str); |
---|
| 163 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->long_name); |
---|
| 164 | } |
---|
| 165 | |
---|
| 166 | void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size) |
---|
| 167 | { |
---|
| 168 | if(!string_copy(fieldgroup_hdl->long_name.getValue(),long_name , long_name_size)) |
---|
| 169 | ERROR("void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
| 170 | } |
---|
| 171 | |
---|
| 172 | |
---|
| 173 | void cxios_set_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, const char * name, int name_size) |
---|
| 174 | { |
---|
| 175 | std::string name_str; |
---|
| 176 | if(!cstr2string(name, name_size, name_str)) return; |
---|
| 177 | fieldgroup_hdl->name.setValue(name_str); |
---|
| 178 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->name); |
---|
| 179 | } |
---|
| 180 | |
---|
| 181 | void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size) |
---|
| 182 | { |
---|
| 183 | if(!string_copy(fieldgroup_hdl->name.getValue(),name , name_size)) |
---|
| 184 | ERROR("void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
| 185 | } |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | void cxios_set_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, const char * operation, int operation_size) |
---|
| 189 | { |
---|
| 190 | std::string operation_str; |
---|
| 191 | if(!cstr2string(operation, operation_size, operation_str)) return; |
---|
| 192 | fieldgroup_hdl->operation.setValue(operation_str); |
---|
| 193 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->operation); |
---|
| 194 | } |
---|
| 195 | |
---|
| 196 | void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size) |
---|
| 197 | { |
---|
| 198 | if(!string_copy(fieldgroup_hdl->operation.getValue(),operation , operation_size)) |
---|
| 199 | ERROR("void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)", <<"Input string is to short"); |
---|
| 200 | } |
---|
| 201 | |
---|
| 202 | |
---|
| 203 | void cxios_set_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int prec) |
---|
| 204 | { |
---|
| 205 | fieldgroup_hdl->prec.setValue(prec); |
---|
| 206 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->prec); |
---|
| 207 | } |
---|
| 208 | |
---|
| 209 | void cxios_get_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int* prec) |
---|
| 210 | { |
---|
| 211 | *prec = fieldgroup_hdl->prec.getValue(); |
---|
| 212 | } |
---|
| 213 | |
---|
| 214 | |
---|
| 215 | void cxios_set_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, const char * standard_name, int standard_name_size) |
---|
| 216 | { |
---|
| 217 | std::string standard_name_str; |
---|
| 218 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
| 219 | fieldgroup_hdl->standard_name.setValue(standard_name_str); |
---|
| 220 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->standard_name); |
---|
| 221 | } |
---|
| 222 | |
---|
| 223 | void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size) |
---|
| 224 | { |
---|
| 225 | if(!string_copy(fieldgroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) |
---|
| 226 | ERROR("void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
| 227 | } |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | void cxios_set_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, const char * unit, int unit_size) |
---|
| 231 | { |
---|
| 232 | std::string unit_str; |
---|
| 233 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
| 234 | fieldgroup_hdl->unit.setValue(unit_str); |
---|
| 235 | fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->unit); |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size) |
---|
| 239 | { |
---|
| 240 | if(!string_copy(fieldgroup_hdl->unit.getValue(),unit , unit_size)) |
---|
| 241 | ERROR("void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
| 242 | } |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | } |
---|