[325] | 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" |
---|
[352] | 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
[325] | 11 | #include "icutil.hpp" |
---|
[347] | 12 | #include "timer.hpp" |
---|
[369] | 13 | #include "node_type.hpp" |
---|
[325] | 14 | |
---|
| 15 | extern "C" |
---|
| 16 | { |
---|
[345] | 17 | typedef xios::CFileGroup* filegroup_Ptr; |
---|
[325] | 18 | |
---|
| 19 | void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size) |
---|
| 20 | { |
---|
| 21 | std::string description_str; |
---|
| 22 | if(!cstr2string(description, description_size, description_str)) return; |
---|
[347] | 23 | CTimer::get("XIOS").resume(); |
---|
[325] | 24 | filegroup_hdl->description.setValue(description_str); |
---|
| 25 | filegroup_hdl->sendAttributToServer(filegroup_hdl->description); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[445] | 32 | if(!string_copy(filegroup_hdl->description.getInheritedValue(),description , description_size)) |
---|
[325] | 33 | ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
[432] | 37 | bool cxios_is_defined_filegroup_description(filegroup_Ptr filegroup_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[445] | 40 | return filegroup_hdl->description.hasInheritedValue(); |
---|
[432] | 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
[325] | 43 | |
---|
[432] | 44 | |
---|
| 45 | |
---|
[325] | 46 | void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) |
---|
| 47 | { |
---|
[347] | 48 | CTimer::get("XIOS").resume(); |
---|
[325] | 49 | filegroup_hdl->enabled.setValue(enabled); |
---|
| 50 | filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled); |
---|
[347] | 51 | CTimer::get("XIOS").suspend(); |
---|
[325] | 52 | } |
---|
| 53 | |
---|
| 54 | void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled) |
---|
| 55 | { |
---|
[445] | 56 | *enabled = filegroup_hdl->enabled.getInheritedValue(); |
---|
[325] | 57 | } |
---|
| 58 | |
---|
[432] | 59 | bool cxios_is_defined_filegroup_enabled(filegroup_Ptr filegroup_hdl ) |
---|
| 60 | { |
---|
| 61 | CTimer::get("XIOS").resume(); |
---|
[445] | 62 | return filegroup_hdl->enabled.hasInheritedValue(); |
---|
[432] | 63 | CTimer::get("XIOS").suspend(); |
---|
| 64 | } |
---|
[325] | 65 | |
---|
[432] | 66 | |
---|
| 67 | |
---|
[325] | 68 | void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 69 | { |
---|
| 70 | std::string group_ref_str; |
---|
| 71 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
[347] | 72 | CTimer::get("XIOS").resume(); |
---|
[325] | 73 | filegroup_hdl->group_ref.setValue(group_ref_str); |
---|
| 74 | filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref); |
---|
[347] | 75 | CTimer::get("XIOS").suspend(); |
---|
[325] | 76 | } |
---|
| 77 | |
---|
| 78 | void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) |
---|
| 79 | { |
---|
[347] | 80 | CTimer::get("XIOS").resume(); |
---|
[445] | 81 | if(!string_copy(filegroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size)) |
---|
[325] | 82 | ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
[347] | 83 | CTimer::get("XIOS").suspend(); |
---|
[325] | 84 | } |
---|
| 85 | |
---|
[432] | 86 | bool cxios_is_defined_filegroup_group_ref(filegroup_Ptr filegroup_hdl ) |
---|
| 87 | { |
---|
| 88 | CTimer::get("XIOS").resume(); |
---|
[445] | 89 | return filegroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 90 | CTimer::get("XIOS").suspend(); |
---|
| 91 | } |
---|
[325] | 92 | |
---|
[432] | 93 | |
---|
| 94 | |
---|
[415] | 95 | void cxios_set_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int min_digits) |
---|
| 96 | { |
---|
| 97 | CTimer::get("XIOS").resume(); |
---|
| 98 | filegroup_hdl->min_digits.setValue(min_digits); |
---|
| 99 | filegroup_hdl->sendAttributToServer(filegroup_hdl->min_digits); |
---|
| 100 | CTimer::get("XIOS").suspend(); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | void cxios_get_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int* min_digits) |
---|
| 104 | { |
---|
[445] | 105 | *min_digits = filegroup_hdl->min_digits.getInheritedValue(); |
---|
[415] | 106 | } |
---|
| 107 | |
---|
[432] | 108 | bool cxios_is_defined_filegroup_min_digits(filegroup_Ptr filegroup_hdl ) |
---|
| 109 | { |
---|
| 110 | CTimer::get("XIOS").resume(); |
---|
[445] | 111 | return filegroup_hdl->min_digits.hasInheritedValue(); |
---|
[432] | 112 | CTimer::get("XIOS").suspend(); |
---|
| 113 | } |
---|
[415] | 114 | |
---|
[432] | 115 | |
---|
| 116 | |
---|
[325] | 117 | void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) |
---|
| 118 | { |
---|
| 119 | std::string name_str; |
---|
| 120 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 121 | CTimer::get("XIOS").resume(); |
---|
[325] | 122 | filegroup_hdl->name.setValue(name_str); |
---|
| 123 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name); |
---|
[347] | 124 | CTimer::get("XIOS").suspend(); |
---|
[325] | 125 | } |
---|
| 126 | |
---|
| 127 | void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) |
---|
| 128 | { |
---|
[347] | 129 | CTimer::get("XIOS").resume(); |
---|
[445] | 130 | if(!string_copy(filegroup_hdl->name.getInheritedValue(),name , name_size)) |
---|
[325] | 131 | ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 132 | CTimer::get("XIOS").suspend(); |
---|
[325] | 133 | } |
---|
| 134 | |
---|
[432] | 135 | bool cxios_is_defined_filegroup_name(filegroup_Ptr filegroup_hdl ) |
---|
| 136 | { |
---|
| 137 | CTimer::get("XIOS").resume(); |
---|
[445] | 138 | return filegroup_hdl->name.hasInheritedValue(); |
---|
[432] | 139 | CTimer::get("XIOS").suspend(); |
---|
| 140 | } |
---|
[325] | 141 | |
---|
[432] | 142 | |
---|
| 143 | |
---|
[325] | 144 | void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 145 | { |
---|
| 146 | std::string name_suffix_str; |
---|
| 147 | if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
[347] | 148 | CTimer::get("XIOS").resume(); |
---|
[325] | 149 | filegroup_hdl->name_suffix.setValue(name_suffix_str); |
---|
| 150 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix); |
---|
[347] | 151 | CTimer::get("XIOS").suspend(); |
---|
[325] | 152 | } |
---|
| 153 | |
---|
| 154 | void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) |
---|
| 155 | { |
---|
[347] | 156 | CTimer::get("XIOS").resume(); |
---|
[445] | 157 | if(!string_copy(filegroup_hdl->name_suffix.getInheritedValue(),name_suffix , name_suffix_size)) |
---|
[325] | 158 | ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); |
---|
[347] | 159 | CTimer::get("XIOS").suspend(); |
---|
[325] | 160 | } |
---|
| 161 | |
---|
[432] | 162 | bool cxios_is_defined_filegroup_name_suffix(filegroup_Ptr filegroup_hdl ) |
---|
| 163 | { |
---|
| 164 | CTimer::get("XIOS").resume(); |
---|
[445] | 165 | return filegroup_hdl->name_suffix.hasInheritedValue(); |
---|
[432] | 166 | CTimer::get("XIOS").suspend(); |
---|
| 167 | } |
---|
[325] | 168 | |
---|
[432] | 169 | |
---|
| 170 | |
---|
[325] | 171 | void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, const char * output_freq, int output_freq_size) |
---|
| 172 | { |
---|
| 173 | std::string output_freq_str; |
---|
| 174 | if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; |
---|
[347] | 175 | CTimer::get("XIOS").resume(); |
---|
[325] | 176 | filegroup_hdl->output_freq.setValue(output_freq_str); |
---|
| 177 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq); |
---|
[347] | 178 | CTimer::get("XIOS").suspend(); |
---|
[325] | 179 | } |
---|
| 180 | |
---|
| 181 | void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size) |
---|
| 182 | { |
---|
[347] | 183 | CTimer::get("XIOS").resume(); |
---|
[445] | 184 | if(!string_copy(filegroup_hdl->output_freq.getInheritedValue(),output_freq , output_freq_size)) |
---|
[325] | 185 | ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); |
---|
[347] | 186 | CTimer::get("XIOS").suspend(); |
---|
[325] | 187 | } |
---|
| 188 | |
---|
[432] | 189 | bool cxios_is_defined_filegroup_output_freq(filegroup_Ptr filegroup_hdl ) |
---|
| 190 | { |
---|
| 191 | CTimer::get("XIOS").resume(); |
---|
[445] | 192 | return filegroup_hdl->output_freq.hasInheritedValue(); |
---|
[432] | 193 | CTimer::get("XIOS").suspend(); |
---|
| 194 | } |
---|
[325] | 195 | |
---|
[432] | 196 | |
---|
| 197 | |
---|
[325] | 198 | void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) |
---|
| 199 | { |
---|
[347] | 200 | CTimer::get("XIOS").resume(); |
---|
[325] | 201 | filegroup_hdl->output_level.setValue(output_level); |
---|
| 202 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level); |
---|
[347] | 203 | CTimer::get("XIOS").suspend(); |
---|
[325] | 204 | } |
---|
| 205 | |
---|
| 206 | void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level) |
---|
| 207 | { |
---|
[445] | 208 | *output_level = filegroup_hdl->output_level.getInheritedValue(); |
---|
[325] | 209 | } |
---|
| 210 | |
---|
[432] | 211 | bool cxios_is_defined_filegroup_output_level(filegroup_Ptr filegroup_hdl ) |
---|
| 212 | { |
---|
| 213 | CTimer::get("XIOS").resume(); |
---|
[445] | 214 | return filegroup_hdl->output_level.hasInheritedValue(); |
---|
[432] | 215 | CTimer::get("XIOS").suspend(); |
---|
| 216 | } |
---|
[325] | 217 | |
---|
[432] | 218 | |
---|
| 219 | |
---|
[336] | 220 | void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size) |
---|
| 221 | { |
---|
| 222 | std::string par_access_str; |
---|
| 223 | if(!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
[347] | 224 | CTimer::get("XIOS").resume(); |
---|
[336] | 225 | filegroup_hdl->par_access.setValue(par_access_str); |
---|
| 226 | filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access); |
---|
[347] | 227 | CTimer::get("XIOS").suspend(); |
---|
[336] | 228 | } |
---|
| 229 | |
---|
| 230 | void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) |
---|
| 231 | { |
---|
[347] | 232 | CTimer::get("XIOS").resume(); |
---|
[445] | 233 | if(!string_copy(filegroup_hdl->par_access.getInheritedValue(),par_access , par_access_size)) |
---|
[336] | 234 | ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); |
---|
[347] | 235 | CTimer::get("XIOS").suspend(); |
---|
[336] | 236 | } |
---|
| 237 | |
---|
[432] | 238 | bool cxios_is_defined_filegroup_par_access(filegroup_Ptr filegroup_hdl ) |
---|
| 239 | { |
---|
| 240 | CTimer::get("XIOS").resume(); |
---|
[445] | 241 | return filegroup_hdl->par_access.hasInheritedValue(); |
---|
[432] | 242 | CTimer::get("XIOS").suspend(); |
---|
| 243 | } |
---|
[336] | 244 | |
---|
[432] | 245 | |
---|
| 246 | |
---|
[325] | 247 | void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, const char * split_freq, int split_freq_size) |
---|
| 248 | { |
---|
| 249 | std::string split_freq_str; |
---|
| 250 | if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; |
---|
[347] | 251 | CTimer::get("XIOS").resume(); |
---|
[325] | 252 | filegroup_hdl->split_freq.setValue(split_freq_str); |
---|
| 253 | filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); |
---|
[347] | 254 | CTimer::get("XIOS").suspend(); |
---|
[325] | 255 | } |
---|
| 256 | |
---|
| 257 | void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) |
---|
| 258 | { |
---|
[347] | 259 | CTimer::get("XIOS").resume(); |
---|
[445] | 260 | if(!string_copy(filegroup_hdl->split_freq.getInheritedValue(),split_freq , split_freq_size)) |
---|
[325] | 261 | ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); |
---|
[347] | 262 | CTimer::get("XIOS").suspend(); |
---|
[325] | 263 | } |
---|
| 264 | |
---|
[432] | 265 | bool cxios_is_defined_filegroup_split_freq(filegroup_Ptr filegroup_hdl ) |
---|
| 266 | { |
---|
| 267 | CTimer::get("XIOS").resume(); |
---|
[445] | 268 | return filegroup_hdl->split_freq.hasInheritedValue(); |
---|
[432] | 269 | CTimer::get("XIOS").suspend(); |
---|
| 270 | } |
---|
[325] | 271 | |
---|
[432] | 272 | |
---|
| 273 | |
---|
| 274 | void cxios_set_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
| 275 | { |
---|
| 276 | std::string split_freq_format_str; |
---|
| 277 | if(!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
| 278 | CTimer::get("XIOS").resume(); |
---|
| 279 | filegroup_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
| 280 | filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq_format); |
---|
| 281 | CTimer::get("XIOS").suspend(); |
---|
| 282 | } |
---|
| 283 | |
---|
| 284 | void cxios_get_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, char * split_freq_format, int split_freq_format_size) |
---|
| 285 | { |
---|
| 286 | CTimer::get("XIOS").resume(); |
---|
[445] | 287 | if(!string_copy(filegroup_hdl->split_freq_format.getInheritedValue(),split_freq_format , split_freq_format_size)) |
---|
[432] | 288 | ERROR("void cxios_get_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl, char * split_freq_format, int split_freq_format_size)", <<"Input string is to short"); |
---|
| 289 | CTimer::get("XIOS").suspend(); |
---|
| 290 | } |
---|
| 291 | |
---|
| 292 | bool cxios_is_defined_filegroup_split_freq_format(filegroup_Ptr filegroup_hdl ) |
---|
| 293 | { |
---|
| 294 | CTimer::get("XIOS").resume(); |
---|
[445] | 295 | return filegroup_hdl->split_freq_format.hasInheritedValue(); |
---|
[432] | 296 | CTimer::get("XIOS").suspend(); |
---|
| 297 | } |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | |
---|
[325] | 301 | void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, const char * sync_freq, int sync_freq_size) |
---|
| 302 | { |
---|
| 303 | std::string sync_freq_str; |
---|
| 304 | if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; |
---|
[347] | 305 | CTimer::get("XIOS").resume(); |
---|
[325] | 306 | filegroup_hdl->sync_freq.setValue(sync_freq_str); |
---|
| 307 | filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); |
---|
[347] | 308 | CTimer::get("XIOS").suspend(); |
---|
[325] | 309 | } |
---|
| 310 | |
---|
| 311 | void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) |
---|
| 312 | { |
---|
[347] | 313 | CTimer::get("XIOS").resume(); |
---|
[445] | 314 | if(!string_copy(filegroup_hdl->sync_freq.getInheritedValue(),sync_freq , sync_freq_size)) |
---|
[325] | 315 | ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); |
---|
[347] | 316 | CTimer::get("XIOS").suspend(); |
---|
[325] | 317 | } |
---|
| 318 | |
---|
[432] | 319 | bool cxios_is_defined_filegroup_sync_freq(filegroup_Ptr filegroup_hdl ) |
---|
| 320 | { |
---|
| 321 | CTimer::get("XIOS").resume(); |
---|
[445] | 322 | return filegroup_hdl->sync_freq.hasInheritedValue(); |
---|
[432] | 323 | CTimer::get("XIOS").suspend(); |
---|
| 324 | } |
---|
[325] | 325 | |
---|
[432] | 326 | |
---|
| 327 | |
---|
[325] | 328 | void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) |
---|
| 329 | { |
---|
| 330 | std::string type_str; |
---|
| 331 | if(!cstr2string(type, type_size, type_str)) return; |
---|
[347] | 332 | CTimer::get("XIOS").resume(); |
---|
[369] | 333 | filegroup_hdl->type.fromString(type_str); |
---|
[325] | 334 | filegroup_hdl->sendAttributToServer(filegroup_hdl->type); |
---|
[347] | 335 | CTimer::get("XIOS").suspend(); |
---|
[325] | 336 | } |
---|
| 337 | |
---|
| 338 | void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) |
---|
| 339 | { |
---|
[347] | 340 | CTimer::get("XIOS").resume(); |
---|
[445] | 341 | if(!string_copy(filegroup_hdl->type.getInheritedStringValue(),type , type_size)) |
---|
[325] | 342 | ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
[347] | 343 | CTimer::get("XIOS").suspend(); |
---|
[325] | 344 | } |
---|
| 345 | |
---|
[432] | 346 | bool cxios_is_defined_filegroup_type(filegroup_Ptr filegroup_hdl ) |
---|
| 347 | { |
---|
| 348 | CTimer::get("XIOS").resume(); |
---|
[445] | 349 | return filegroup_hdl->type.hasInheritedValue(); |
---|
[432] | 350 | CTimer::get("XIOS").suspend(); |
---|
| 351 | } |
---|
[325] | 352 | |
---|
| 353 | |
---|
[432] | 354 | |
---|
| 355 | |
---|
[325] | 356 | } |
---|