[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(); |
---|
[325] | 32 | if(!string_copy(filegroup_hdl->description.getValue(),description , description_size)) |
---|
| 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 | |
---|
| 37 | |
---|
| 38 | void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) |
---|
| 39 | { |
---|
[347] | 40 | CTimer::get("XIOS").resume(); |
---|
[325] | 41 | filegroup_hdl->enabled.setValue(enabled); |
---|
| 42 | filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled); |
---|
[347] | 43 | CTimer::get("XIOS").suspend(); |
---|
[325] | 44 | } |
---|
| 45 | |
---|
| 46 | void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled) |
---|
| 47 | { |
---|
| 48 | *enabled = filegroup_hdl->enabled.getValue(); |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 53 | { |
---|
| 54 | std::string group_ref_str; |
---|
| 55 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
[347] | 56 | CTimer::get("XIOS").resume(); |
---|
[325] | 57 | filegroup_hdl->group_ref.setValue(group_ref_str); |
---|
| 58 | filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref); |
---|
[347] | 59 | CTimer::get("XIOS").suspend(); |
---|
[325] | 60 | } |
---|
| 61 | |
---|
| 62 | void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) |
---|
| 63 | { |
---|
[347] | 64 | CTimer::get("XIOS").resume(); |
---|
[325] | 65 | if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
| 66 | ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
[347] | 67 | CTimer::get("XIOS").suspend(); |
---|
[325] | 68 | } |
---|
| 69 | |
---|
| 70 | |
---|
[415] | 71 | void cxios_set_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int min_digits) |
---|
| 72 | { |
---|
| 73 | CTimer::get("XIOS").resume(); |
---|
| 74 | filegroup_hdl->min_digits.setValue(min_digits); |
---|
| 75 | filegroup_hdl->sendAttributToServer(filegroup_hdl->min_digits); |
---|
| 76 | CTimer::get("XIOS").suspend(); |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | void cxios_get_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int* min_digits) |
---|
| 80 | { |
---|
| 81 | *min_digits = filegroup_hdl->min_digits.getValue(); |
---|
| 82 | } |
---|
| 83 | |
---|
| 84 | |
---|
[325] | 85 | void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) |
---|
| 86 | { |
---|
| 87 | std::string name_str; |
---|
| 88 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 89 | CTimer::get("XIOS").resume(); |
---|
[325] | 90 | filegroup_hdl->name.setValue(name_str); |
---|
| 91 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name); |
---|
[347] | 92 | CTimer::get("XIOS").suspend(); |
---|
[325] | 93 | } |
---|
| 94 | |
---|
| 95 | void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) |
---|
| 96 | { |
---|
[347] | 97 | CTimer::get("XIOS").resume(); |
---|
[325] | 98 | if(!string_copy(filegroup_hdl->name.getValue(),name , name_size)) |
---|
| 99 | ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 100 | CTimer::get("XIOS").suspend(); |
---|
[325] | 101 | } |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size) |
---|
| 105 | { |
---|
| 106 | std::string name_suffix_str; |
---|
| 107 | if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; |
---|
[347] | 108 | CTimer::get("XIOS").resume(); |
---|
[325] | 109 | filegroup_hdl->name_suffix.setValue(name_suffix_str); |
---|
| 110 | filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix); |
---|
[347] | 111 | CTimer::get("XIOS").suspend(); |
---|
[325] | 112 | } |
---|
| 113 | |
---|
| 114 | void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) |
---|
| 115 | { |
---|
[347] | 116 | CTimer::get("XIOS").resume(); |
---|
[325] | 117 | if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size)) |
---|
| 118 | ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); |
---|
[347] | 119 | CTimer::get("XIOS").suspend(); |
---|
[325] | 120 | } |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, const char * output_freq, int output_freq_size) |
---|
| 124 | { |
---|
| 125 | std::string output_freq_str; |
---|
| 126 | if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; |
---|
[347] | 127 | CTimer::get("XIOS").resume(); |
---|
[325] | 128 | filegroup_hdl->output_freq.setValue(output_freq_str); |
---|
| 129 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq); |
---|
[347] | 130 | CTimer::get("XIOS").suspend(); |
---|
[325] | 131 | } |
---|
| 132 | |
---|
| 133 | void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size) |
---|
| 134 | { |
---|
[347] | 135 | CTimer::get("XIOS").resume(); |
---|
[325] | 136 | if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size)) |
---|
| 137 | ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); |
---|
[347] | 138 | CTimer::get("XIOS").suspend(); |
---|
[325] | 139 | } |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) |
---|
| 143 | { |
---|
[347] | 144 | CTimer::get("XIOS").resume(); |
---|
[325] | 145 | filegroup_hdl->output_level.setValue(output_level); |
---|
| 146 | filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level); |
---|
[347] | 147 | CTimer::get("XIOS").suspend(); |
---|
[325] | 148 | } |
---|
| 149 | |
---|
| 150 | void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level) |
---|
| 151 | { |
---|
| 152 | *output_level = filegroup_hdl->output_level.getValue(); |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | |
---|
[336] | 156 | void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size) |
---|
| 157 | { |
---|
| 158 | std::string par_access_str; |
---|
| 159 | if(!cstr2string(par_access, par_access_size, par_access_str)) return; |
---|
[347] | 160 | CTimer::get("XIOS").resume(); |
---|
[336] | 161 | filegroup_hdl->par_access.setValue(par_access_str); |
---|
| 162 | filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access); |
---|
[347] | 163 | CTimer::get("XIOS").suspend(); |
---|
[336] | 164 | } |
---|
| 165 | |
---|
| 166 | void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) |
---|
| 167 | { |
---|
[347] | 168 | CTimer::get("XIOS").resume(); |
---|
[336] | 169 | if(!string_copy(filegroup_hdl->par_access.getValue(),par_access , par_access_size)) |
---|
| 170 | ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); |
---|
[347] | 171 | CTimer::get("XIOS").suspend(); |
---|
[336] | 172 | } |
---|
| 173 | |
---|
| 174 | |
---|
[325] | 175 | void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, const char * split_freq, int split_freq_size) |
---|
| 176 | { |
---|
| 177 | std::string split_freq_str; |
---|
| 178 | if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; |
---|
[347] | 179 | CTimer::get("XIOS").resume(); |
---|
[325] | 180 | filegroup_hdl->split_freq.setValue(split_freq_str); |
---|
| 181 | filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); |
---|
[347] | 182 | CTimer::get("XIOS").suspend(); |
---|
[325] | 183 | } |
---|
| 184 | |
---|
| 185 | void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) |
---|
| 186 | { |
---|
[347] | 187 | CTimer::get("XIOS").resume(); |
---|
[325] | 188 | if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size)) |
---|
| 189 | ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); |
---|
[347] | 190 | CTimer::get("XIOS").suspend(); |
---|
[325] | 191 | } |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, const char * sync_freq, int sync_freq_size) |
---|
| 195 | { |
---|
| 196 | std::string sync_freq_str; |
---|
| 197 | if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; |
---|
[347] | 198 | CTimer::get("XIOS").resume(); |
---|
[325] | 199 | filegroup_hdl->sync_freq.setValue(sync_freq_str); |
---|
| 200 | filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); |
---|
[347] | 201 | CTimer::get("XIOS").suspend(); |
---|
[325] | 202 | } |
---|
| 203 | |
---|
| 204 | void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) |
---|
| 205 | { |
---|
[347] | 206 | CTimer::get("XIOS").resume(); |
---|
[325] | 207 | if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) |
---|
| 208 | ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); |
---|
[347] | 209 | CTimer::get("XIOS").suspend(); |
---|
[325] | 210 | } |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) |
---|
| 214 | { |
---|
| 215 | std::string type_str; |
---|
| 216 | if(!cstr2string(type, type_size, type_str)) return; |
---|
[347] | 217 | CTimer::get("XIOS").resume(); |
---|
[369] | 218 | filegroup_hdl->type.fromString(type_str); |
---|
[325] | 219 | filegroup_hdl->sendAttributToServer(filegroup_hdl->type); |
---|
[347] | 220 | CTimer::get("XIOS").suspend(); |
---|
[325] | 221 | } |
---|
| 222 | |
---|
| 223 | void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) |
---|
| 224 | { |
---|
[347] | 225 | CTimer::get("XIOS").resume(); |
---|
[369] | 226 | if(!string_copy(filegroup_hdl->type.getStringValue(),type , type_size)) |
---|
[325] | 227 | ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
[347] | 228 | CTimer::get("XIOS").suspend(); |
---|
[325] | 229 | } |
---|
| 230 | |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | } |
---|