[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::CFile* file_Ptr; |
---|
[325] | 18 | |
---|
| 19 | void cxios_set_file_description(file_Ptr file_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 | file_hdl->description.setValue(description_str); |
---|
| 25 | file_hdl->sendAttributToServer(file_hdl->description); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[445] | 32 | if(!string_copy(file_hdl->description.getInheritedValue(),description , description_size)) |
---|
[325] | 33 | ERROR("void cxios_get_file_description(file_Ptr file_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_file_description(file_Ptr file_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[445] | 40 | return file_hdl->description.hasInheritedValue(); |
---|
[432] | 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
[325] | 43 | |
---|
[432] | 44 | |
---|
| 45 | |
---|
[325] | 46 | void cxios_set_file_enabled(file_Ptr file_hdl, bool enabled) |
---|
| 47 | { |
---|
[347] | 48 | CTimer::get("XIOS").resume(); |
---|
[325] | 49 | file_hdl->enabled.setValue(enabled); |
---|
| 50 | file_hdl->sendAttributToServer(file_hdl->enabled); |
---|
[347] | 51 | CTimer::get("XIOS").suspend(); |
---|
[325] | 52 | } |
---|
| 53 | |
---|
| 54 | void cxios_get_file_enabled(file_Ptr file_hdl, bool* enabled) |
---|
| 55 | { |
---|
[445] | 56 | *enabled = file_hdl->enabled.getInheritedValue(); |
---|
[325] | 57 | } |
---|
| 58 | |
---|
[432] | 59 | bool cxios_is_defined_file_enabled(file_Ptr file_hdl ) |
---|
| 60 | { |
---|
| 61 | CTimer::get("XIOS").resume(); |
---|
[445] | 62 | return file_hdl->enabled.hasInheritedValue(); |
---|
[432] | 63 | CTimer::get("XIOS").suspend(); |
---|
| 64 | } |
---|
[325] | 65 | |
---|
[432] | 66 | |
---|
| 67 | |
---|
[415] | 68 | void cxios_set_file_min_digits(file_Ptr file_hdl, int min_digits) |
---|
| 69 | { |
---|
| 70 | CTimer::get("XIOS").resume(); |
---|
| 71 | file_hdl->min_digits.setValue(min_digits); |
---|
| 72 | file_hdl->sendAttributToServer(file_hdl->min_digits); |
---|
| 73 | CTimer::get("XIOS").suspend(); |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | void cxios_get_file_min_digits(file_Ptr file_hdl, int* min_digits) |
---|
| 77 | { |
---|
[445] | 78 | *min_digits = file_hdl->min_digits.getInheritedValue(); |
---|
[415] | 79 | } |
---|
| 80 | |
---|
[432] | 81 | bool cxios_is_defined_file_min_digits(file_Ptr file_hdl ) |
---|
| 82 | { |
---|
| 83 | CTimer::get("XIOS").resume(); |
---|
[445] | 84 | return file_hdl->min_digits.hasInheritedValue(); |
---|
[432] | 85 | CTimer::get("XIOS").suspend(); |
---|
| 86 | } |
---|
[415] | 87 | |
---|
[432] | 88 | |
---|
| 89 | |
---|
[325] | 90 | void cxios_set_file_name(file_Ptr file_hdl, const char * name, int name_size) |
---|
| 91 | { |
---|
| 92 | std::string name_str; |
---|
| 93 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 94 | CTimer::get("XIOS").resume(); |
---|
[325] | 95 | file_hdl->name.setValue(name_str); |
---|
| 96 | file_hdl->sendAttributToServer(file_hdl->name); |
---|
[347] | 97 | CTimer::get("XIOS").suspend(); |
---|
[325] | 98 | } |
---|
| 99 | |
---|
| 100 | void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size) |
---|
| 101 | { |
---|
[347] | 102 | CTimer::get("XIOS").resume(); |
---|
[445] | 103 | if(!string_copy(file_hdl->name.getInheritedValue(),name , name_size)) |
---|
[325] | 104 | ERROR("void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 105 | CTimer::get("XIOS").suspend(); |
---|
[325] | 106 | } |
---|
| 107 | |
---|
[432] | 108 | bool cxios_is_defined_file_name(file_Ptr file_hdl ) |
---|
| 109 | { |
---|
| 110 | CTimer::get("XIOS").resume(); |
---|
[445] | 111 | return file_hdl->name.hasInheritedValue(); |
---|
[432] | 112 | CTimer::get("XIOS").suspend(); |
---|
| 113 | } |
---|
[325] | 114 | |
---|
[432] | 115 | |
---|
| 116 | |
---|
[325] | 117 | void cxios_set_file_name_suffix(file_Ptr file_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 118 | { |
---|
| 119 | std::string name_suffix_str; |
---|
| 120 | if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
[347] | 121 | CTimer::get("XIOS").resume(); |
---|
[325] | 122 | file_hdl->name_suffix.setValue(name_suffix_str); |
---|
| 123 | file_hdl->sendAttributToServer(file_hdl->name_suffix); |
---|
[347] | 124 | CTimer::get("XIOS").suspend(); |
---|
[325] | 125 | } |
---|
| 126 | |
---|
| 127 | void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size) |
---|
| 128 | { |
---|
[347] | 129 | CTimer::get("XIOS").resume(); |
---|
[445] | 130 | if(!string_copy(file_hdl->name_suffix.getInheritedValue(),name_suffix , name_suffix_size)) |
---|
[325] | 131 | ERROR("void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); |
---|
[347] | 132 | CTimer::get("XIOS").suspend(); |
---|
[325] | 133 | } |
---|
| 134 | |
---|
[432] | 135 | bool cxios_is_defined_file_name_suffix(file_Ptr file_hdl ) |
---|
| 136 | { |
---|
| 137 | CTimer::get("XIOS").resume(); |
---|
[445] | 138 | return file_hdl->name_suffix.hasInheritedValue(); |
---|
[432] | 139 | CTimer::get("XIOS").suspend(); |
---|
| 140 | } |
---|
[325] | 141 | |
---|
[432] | 142 | |
---|
| 143 | |
---|
[325] | 144 | void cxios_set_file_output_freq(file_Ptr file_hdl, const char * output_freq, int output_freq_size) |
---|
| 145 | { |
---|
| 146 | std::string output_freq_str; |
---|
| 147 | if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; |
---|
[347] | 148 | CTimer::get("XIOS").resume(); |
---|
[325] | 149 | file_hdl->output_freq.setValue(output_freq_str); |
---|
| 150 | file_hdl->sendAttributToServer(file_hdl->output_freq); |
---|
[347] | 151 | CTimer::get("XIOS").suspend(); |
---|
[325] | 152 | } |
---|
| 153 | |
---|
| 154 | void cxios_get_file_output_freq(file_Ptr file_hdl, char * output_freq, int output_freq_size) |
---|
| 155 | { |
---|
[347] | 156 | CTimer::get("XIOS").resume(); |
---|
[445] | 157 | if(!string_copy(file_hdl->output_freq.getInheritedValue(),output_freq , output_freq_size)) |
---|
[325] | 158 | ERROR("void cxios_get_file_output_freq(file_Ptr file_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); |
---|
[347] | 159 | CTimer::get("XIOS").suspend(); |
---|
[325] | 160 | } |
---|
| 161 | |
---|
[432] | 162 | bool cxios_is_defined_file_output_freq(file_Ptr file_hdl ) |
---|
| 163 | { |
---|
| 164 | CTimer::get("XIOS").resume(); |
---|
[445] | 165 | return file_hdl->output_freq.hasInheritedValue(); |
---|
[432] | 166 | CTimer::get("XIOS").suspend(); |
---|
| 167 | } |
---|
[325] | 168 | |
---|
[432] | 169 | |
---|
| 170 | |
---|
[325] | 171 | void cxios_set_file_output_level(file_Ptr file_hdl, int output_level) |
---|
| 172 | { |
---|
[347] | 173 | CTimer::get("XIOS").resume(); |
---|
[325] | 174 | file_hdl->output_level.setValue(output_level); |
---|
| 175 | file_hdl->sendAttributToServer(file_hdl->output_level); |
---|
[347] | 176 | CTimer::get("XIOS").suspend(); |
---|
[325] | 177 | } |
---|
| 178 | |
---|
| 179 | void cxios_get_file_output_level(file_Ptr file_hdl, int* output_level) |
---|
| 180 | { |
---|
[445] | 181 | *output_level = file_hdl->output_level.getInheritedValue(); |
---|
[325] | 182 | } |
---|
| 183 | |
---|
[432] | 184 | bool cxios_is_defined_file_output_level(file_Ptr file_hdl ) |
---|
| 185 | { |
---|
| 186 | CTimer::get("XIOS").resume(); |
---|
[445] | 187 | return file_hdl->output_level.hasInheritedValue(); |
---|
[432] | 188 | CTimer::get("XIOS").suspend(); |
---|
| 189 | } |
---|
[325] | 190 | |
---|
[432] | 191 | |
---|
| 192 | |
---|
[336] | 193 | void cxios_set_file_par_access(file_Ptr file_hdl, const char * par_access, int par_access_size) |
---|
| 194 | { |
---|
| 195 | std::string par_access_str; |
---|
| 196 | if(!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
[347] | 197 | CTimer::get("XIOS").resume(); |
---|
[336] | 198 | file_hdl->par_access.setValue(par_access_str); |
---|
| 199 | file_hdl->sendAttributToServer(file_hdl->par_access); |
---|
[347] | 200 | CTimer::get("XIOS").suspend(); |
---|
[336] | 201 | } |
---|
| 202 | |
---|
| 203 | void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size) |
---|
| 204 | { |
---|
[347] | 205 | CTimer::get("XIOS").resume(); |
---|
[445] | 206 | if(!string_copy(file_hdl->par_access.getInheritedValue(),par_access , par_access_size)) |
---|
[336] | 207 | ERROR("void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); |
---|
[347] | 208 | CTimer::get("XIOS").suspend(); |
---|
[336] | 209 | } |
---|
| 210 | |
---|
[432] | 211 | bool cxios_is_defined_file_par_access(file_Ptr file_hdl ) |
---|
| 212 | { |
---|
| 213 | CTimer::get("XIOS").resume(); |
---|
[445] | 214 | return file_hdl->par_access.hasInheritedValue(); |
---|
[432] | 215 | CTimer::get("XIOS").suspend(); |
---|
| 216 | } |
---|
[336] | 217 | |
---|
[432] | 218 | |
---|
| 219 | |
---|
[325] | 220 | void cxios_set_file_split_freq(file_Ptr file_hdl, const char * split_freq, int split_freq_size) |
---|
| 221 | { |
---|
| 222 | std::string split_freq_str; |
---|
| 223 | if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; |
---|
[347] | 224 | CTimer::get("XIOS").resume(); |
---|
[325] | 225 | file_hdl->split_freq.setValue(split_freq_str); |
---|
| 226 | file_hdl->sendAttributToServer(file_hdl->split_freq); |
---|
[347] | 227 | CTimer::get("XIOS").suspend(); |
---|
[325] | 228 | } |
---|
| 229 | |
---|
| 230 | void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size) |
---|
| 231 | { |
---|
[347] | 232 | CTimer::get("XIOS").resume(); |
---|
[445] | 233 | if(!string_copy(file_hdl->split_freq.getInheritedValue(),split_freq , split_freq_size)) |
---|
[325] | 234 | ERROR("void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); |
---|
[347] | 235 | CTimer::get("XIOS").suspend(); |
---|
[325] | 236 | } |
---|
| 237 | |
---|
[432] | 238 | bool cxios_is_defined_file_split_freq(file_Ptr file_hdl ) |
---|
| 239 | { |
---|
| 240 | CTimer::get("XIOS").resume(); |
---|
[445] | 241 | return file_hdl->split_freq.hasInheritedValue(); |
---|
[432] | 242 | CTimer::get("XIOS").suspend(); |
---|
| 243 | } |
---|
[325] | 244 | |
---|
[432] | 245 | |
---|
| 246 | |
---|
| 247 | void cxios_set_file_split_freq_format(file_Ptr file_hdl, const char * split_freq_format, int split_freq_format_size) |
---|
| 248 | { |
---|
| 249 | std::string split_freq_format_str; |
---|
| 250 | if(!cstr2string(split_freq_format, split_freq_format_size, split_freq_format_str)) return; |
---|
| 251 | CTimer::get("XIOS").resume(); |
---|
| 252 | file_hdl->split_freq_format.setValue(split_freq_format_str); |
---|
| 253 | file_hdl->sendAttributToServer(file_hdl->split_freq_format); |
---|
| 254 | CTimer::get("XIOS").suspend(); |
---|
| 255 | } |
---|
| 256 | |
---|
| 257 | void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size) |
---|
| 258 | { |
---|
| 259 | CTimer::get("XIOS").resume(); |
---|
[445] | 260 | if(!string_copy(file_hdl->split_freq_format.getInheritedValue(),split_freq_format , split_freq_format_size)) |
---|
[432] | 261 | ERROR("void cxios_get_file_split_freq_format(file_Ptr file_hdl, char * split_freq_format, int split_freq_format_size)", <<"Input string is to short"); |
---|
| 262 | CTimer::get("XIOS").suspend(); |
---|
| 263 | } |
---|
| 264 | |
---|
| 265 | bool cxios_is_defined_file_split_freq_format(file_Ptr file_hdl ) |
---|
| 266 | { |
---|
| 267 | CTimer::get("XIOS").resume(); |
---|
[445] | 268 | return file_hdl->split_freq_format.hasInheritedValue(); |
---|
[432] | 269 | CTimer::get("XIOS").suspend(); |
---|
| 270 | } |
---|
| 271 | |
---|
| 272 | |
---|
| 273 | |
---|
[325] | 274 | void cxios_set_file_sync_freq(file_Ptr file_hdl, const char * sync_freq, int sync_freq_size) |
---|
| 275 | { |
---|
| 276 | std::string sync_freq_str; |
---|
| 277 | if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; |
---|
[347] | 278 | CTimer::get("XIOS").resume(); |
---|
[325] | 279 | file_hdl->sync_freq.setValue(sync_freq_str); |
---|
| 280 | file_hdl->sendAttributToServer(file_hdl->sync_freq); |
---|
[347] | 281 | CTimer::get("XIOS").suspend(); |
---|
[325] | 282 | } |
---|
| 283 | |
---|
| 284 | void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size) |
---|
| 285 | { |
---|
[347] | 286 | CTimer::get("XIOS").resume(); |
---|
[445] | 287 | if(!string_copy(file_hdl->sync_freq.getInheritedValue(),sync_freq , sync_freq_size)) |
---|
[325] | 288 | ERROR("void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); |
---|
[347] | 289 | CTimer::get("XIOS").suspend(); |
---|
[325] | 290 | } |
---|
| 291 | |
---|
[432] | 292 | bool cxios_is_defined_file_sync_freq(file_Ptr file_hdl ) |
---|
| 293 | { |
---|
| 294 | CTimer::get("XIOS").resume(); |
---|
[445] | 295 | return file_hdl->sync_freq.hasInheritedValue(); |
---|
[432] | 296 | CTimer::get("XIOS").suspend(); |
---|
| 297 | } |
---|
[325] | 298 | |
---|
[432] | 299 | |
---|
| 300 | |
---|
[325] | 301 | void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) |
---|
| 302 | { |
---|
| 303 | std::string type_str; |
---|
| 304 | if(!cstr2string(type, type_size, type_str)) return; |
---|
[347] | 305 | CTimer::get("XIOS").resume(); |
---|
[369] | 306 | file_hdl->type.fromString(type_str); |
---|
[325] | 307 | file_hdl->sendAttributToServer(file_hdl->type); |
---|
[347] | 308 | CTimer::get("XIOS").suspend(); |
---|
[325] | 309 | } |
---|
| 310 | |
---|
| 311 | void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size) |
---|
| 312 | { |
---|
[347] | 313 | CTimer::get("XIOS").resume(); |
---|
[445] | 314 | if(!string_copy(file_hdl->type.getInheritedStringValue(),type , type_size)) |
---|
[325] | 315 | ERROR("void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
[347] | 316 | CTimer::get("XIOS").suspend(); |
---|
[325] | 317 | } |
---|
| 318 | |
---|
[432] | 319 | bool cxios_is_defined_file_type(file_Ptr file_hdl ) |
---|
| 320 | { |
---|
| 321 | CTimer::get("XIOS").resume(); |
---|
[445] | 322 | return file_hdl->type.hasInheritedValue(); |
---|
[432] | 323 | CTimer::get("XIOS").suspend(); |
---|
| 324 | } |
---|
[325] | 325 | |
---|
| 326 | |
---|
[432] | 327 | |
---|
| 328 | |
---|
[325] | 329 | } |
---|