[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" |
---|
[532] | 12 | #include "icdate.hpp" |
---|
[347] | 13 | #include "timer.hpp" |
---|
[369] | 14 | #include "node_type.hpp" |
---|
[325] | 15 | |
---|
| 16 | extern "C" |
---|
| 17 | { |
---|
[345] | 18 | typedef xios::CAxis* axis_Ptr; |
---|
[325] | 19 | |
---|
| 20 | void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) |
---|
| 21 | { |
---|
| 22 | std::string long_name_str; |
---|
| 23 | if(!cstr2string(long_name, long_name_size, long_name_str)) return; |
---|
[347] | 24 | CTimer::get("XIOS").resume(); |
---|
[325] | 25 | axis_hdl->long_name.setValue(long_name_str); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[445] | 32 | if(!string_copy(axis_hdl->long_name.getInheritedValue(),long_name , long_name_size)) |
---|
[325] | 33 | ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
[432] | 37 | bool cxios_is_defined_axis_long_name(axis_Ptr axis_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[445] | 40 | return axis_hdl->long_name.hasInheritedValue(); |
---|
[432] | 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
[325] | 43 | |
---|
[432] | 44 | |
---|
| 45 | |
---|
[325] | 46 | void cxios_set_axis_name(axis_Ptr axis_hdl, const char * name, int name_size) |
---|
| 47 | { |
---|
| 48 | std::string name_str; |
---|
| 49 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 50 | CTimer::get("XIOS").resume(); |
---|
[325] | 51 | axis_hdl->name.setValue(name_str); |
---|
[347] | 52 | CTimer::get("XIOS").suspend(); |
---|
[325] | 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) |
---|
| 56 | { |
---|
[347] | 57 | CTimer::get("XIOS").resume(); |
---|
[445] | 58 | if(!string_copy(axis_hdl->name.getInheritedValue(),name , name_size)) |
---|
[325] | 59 | ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 60 | CTimer::get("XIOS").suspend(); |
---|
[325] | 61 | } |
---|
| 62 | |
---|
[432] | 63 | bool cxios_is_defined_axis_name(axis_Ptr axis_hdl ) |
---|
| 64 | { |
---|
| 65 | CTimer::get("XIOS").resume(); |
---|
[445] | 66 | return axis_hdl->name.hasInheritedValue(); |
---|
[432] | 67 | CTimer::get("XIOS").suspend(); |
---|
| 68 | } |
---|
[325] | 69 | |
---|
[432] | 70 | |
---|
| 71 | |
---|
[415] | 72 | void cxios_set_axis_positive(axis_Ptr axis_hdl, const char * positive, int positive_size) |
---|
| 73 | { |
---|
| 74 | std::string positive_str; |
---|
| 75 | if(!cstr2string(positive, positive_size, positive_str)) return; |
---|
| 76 | CTimer::get("XIOS").resume(); |
---|
| 77 | axis_hdl->positive.fromString(positive_str); |
---|
| 78 | CTimer::get("XIOS").suspend(); |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size) |
---|
| 82 | { |
---|
| 83 | CTimer::get("XIOS").resume(); |
---|
[445] | 84 | if(!string_copy(axis_hdl->positive.getInheritedStringValue(),positive , positive_size)) |
---|
[415] | 85 | ERROR("void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size)", <<"Input string is to short"); |
---|
| 86 | CTimer::get("XIOS").suspend(); |
---|
| 87 | } |
---|
| 88 | |
---|
[432] | 89 | bool cxios_is_defined_axis_positive(axis_Ptr axis_hdl ) |
---|
| 90 | { |
---|
| 91 | CTimer::get("XIOS").resume(); |
---|
[445] | 92 | return axis_hdl->positive.hasInheritedValue(); |
---|
[432] | 93 | CTimer::get("XIOS").suspend(); |
---|
| 94 | } |
---|
[415] | 95 | |
---|
[432] | 96 | |
---|
| 97 | |
---|
[325] | 98 | void cxios_set_axis_size(axis_Ptr axis_hdl, int size) |
---|
| 99 | { |
---|
[347] | 100 | CTimer::get("XIOS").resume(); |
---|
[325] | 101 | axis_hdl->size.setValue(size); |
---|
[347] | 102 | CTimer::get("XIOS").suspend(); |
---|
[325] | 103 | } |
---|
| 104 | |
---|
| 105 | void cxios_get_axis_size(axis_Ptr axis_hdl, int* size) |
---|
| 106 | { |
---|
[445] | 107 | *size = axis_hdl->size.getInheritedValue(); |
---|
[325] | 108 | } |
---|
| 109 | |
---|
[432] | 110 | bool cxios_is_defined_axis_size(axis_Ptr axis_hdl ) |
---|
| 111 | { |
---|
| 112 | CTimer::get("XIOS").resume(); |
---|
[445] | 113 | return axis_hdl->size.hasInheritedValue(); |
---|
[432] | 114 | CTimer::get("XIOS").suspend(); |
---|
| 115 | } |
---|
[325] | 116 | |
---|
[432] | 117 | |
---|
| 118 | |
---|
[325] | 119 | void cxios_set_axis_standard_name(axis_Ptr axis_hdl, const char * standard_name, int standard_name_size) |
---|
| 120 | { |
---|
| 121 | std::string standard_name_str; |
---|
| 122 | if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; |
---|
[347] | 123 | CTimer::get("XIOS").resume(); |
---|
[325] | 124 | axis_hdl->standard_name.setValue(standard_name_str); |
---|
[347] | 125 | CTimer::get("XIOS").suspend(); |
---|
[325] | 126 | } |
---|
| 127 | |
---|
| 128 | void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) |
---|
| 129 | { |
---|
[347] | 130 | CTimer::get("XIOS").resume(); |
---|
[445] | 131 | if(!string_copy(axis_hdl->standard_name.getInheritedValue(),standard_name , standard_name_size)) |
---|
[325] | 132 | ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); |
---|
[347] | 133 | CTimer::get("XIOS").suspend(); |
---|
[325] | 134 | } |
---|
| 135 | |
---|
[432] | 136 | bool cxios_is_defined_axis_standard_name(axis_Ptr axis_hdl ) |
---|
| 137 | { |
---|
| 138 | CTimer::get("XIOS").resume(); |
---|
[445] | 139 | return axis_hdl->standard_name.hasInheritedValue(); |
---|
[432] | 140 | CTimer::get("XIOS").suspend(); |
---|
| 141 | } |
---|
[325] | 142 | |
---|
[432] | 143 | |
---|
| 144 | |
---|
[325] | 145 | void cxios_set_axis_unit(axis_Ptr axis_hdl, const char * unit, int unit_size) |
---|
| 146 | { |
---|
| 147 | std::string unit_str; |
---|
| 148 | if(!cstr2string(unit, unit_size, unit_str)) return; |
---|
[347] | 149 | CTimer::get("XIOS").resume(); |
---|
[325] | 150 | axis_hdl->unit.setValue(unit_str); |
---|
[347] | 151 | CTimer::get("XIOS").suspend(); |
---|
[325] | 152 | } |
---|
| 153 | |
---|
| 154 | void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) |
---|
| 155 | { |
---|
[347] | 156 | CTimer::get("XIOS").resume(); |
---|
[445] | 157 | if(!string_copy(axis_hdl->unit.getInheritedValue(),unit , unit_size)) |
---|
[325] | 158 | ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); |
---|
[347] | 159 | CTimer::get("XIOS").suspend(); |
---|
[325] | 160 | } |
---|
| 161 | |
---|
[432] | 162 | bool cxios_is_defined_axis_unit(axis_Ptr axis_hdl ) |
---|
| 163 | { |
---|
| 164 | CTimer::get("XIOS").resume(); |
---|
[445] | 165 | return axis_hdl->unit.hasInheritedValue(); |
---|
[432] | 166 | CTimer::get("XIOS").suspend(); |
---|
| 167 | } |
---|
[325] | 168 | |
---|
[432] | 169 | |
---|
| 170 | |
---|
[325] | 171 | void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
| 172 | { |
---|
[369] | 173 | CTimer::get("XIOS").resume(); |
---|
| 174 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
| 175 | axis_hdl->value.reference(tmp.copy()); |
---|
[416] | 176 | CTimer::get("XIOS").suspend(); |
---|
[325] | 177 | } |
---|
| 178 | |
---|
| 179 | void cxios_get_axis_value(axis_Ptr axis_hdl, double* value, int extent1) |
---|
| 180 | { |
---|
[416] | 181 | CTimer::get("XIOS").resume(); |
---|
[369] | 182 | CArray<double,1> tmp(value,shape(extent1),neverDeleteData) ; |
---|
[445] | 183 | tmp=axis_hdl->value.getInheritedValue() ; |
---|
[347] | 184 | CTimer::get("XIOS").suspend(); |
---|
[325] | 185 | } |
---|
| 186 | |
---|
[432] | 187 | bool cxios_is_defined_axis_value(axis_Ptr axis_hdl ) |
---|
| 188 | { |
---|
| 189 | CTimer::get("XIOS").resume(); |
---|
[445] | 190 | return axis_hdl->value.hasInheritedValue(); |
---|
[432] | 191 | CTimer::get("XIOS").suspend(); |
---|
| 192 | } |
---|
[325] | 193 | |
---|
[432] | 194 | |
---|
| 195 | |
---|
[369] | 196 | void cxios_set_axis_zoom_begin(axis_Ptr axis_hdl, int zoom_begin) |
---|
| 197 | { |
---|
| 198 | CTimer::get("XIOS").resume(); |
---|
| 199 | axis_hdl->zoom_begin.setValue(zoom_begin); |
---|
| 200 | CTimer::get("XIOS").suspend(); |
---|
| 201 | } |
---|
[325] | 202 | |
---|
[369] | 203 | void cxios_get_axis_zoom_begin(axis_Ptr axis_hdl, int* zoom_begin) |
---|
| 204 | { |
---|
[445] | 205 | *zoom_begin = axis_hdl->zoom_begin.getInheritedValue(); |
---|
[369] | 206 | } |
---|
| 207 | |
---|
[432] | 208 | bool cxios_is_defined_axis_zoom_begin(axis_Ptr axis_hdl ) |
---|
| 209 | { |
---|
| 210 | CTimer::get("XIOS").resume(); |
---|
[445] | 211 | return axis_hdl->zoom_begin.hasInheritedValue(); |
---|
[432] | 212 | CTimer::get("XIOS").suspend(); |
---|
| 213 | } |
---|
[369] | 214 | |
---|
[432] | 215 | |
---|
| 216 | |
---|
[369] | 217 | void cxios_set_axis_zoom_end(axis_Ptr axis_hdl, int zoom_end) |
---|
| 218 | { |
---|
| 219 | CTimer::get("XIOS").resume(); |
---|
| 220 | axis_hdl->zoom_end.setValue(zoom_end); |
---|
| 221 | CTimer::get("XIOS").suspend(); |
---|
| 222 | } |
---|
| 223 | |
---|
| 224 | void cxios_get_axis_zoom_end(axis_Ptr axis_hdl, int* zoom_end) |
---|
| 225 | { |
---|
[445] | 226 | *zoom_end = axis_hdl->zoom_end.getInheritedValue(); |
---|
[369] | 227 | } |
---|
| 228 | |
---|
[432] | 229 | bool cxios_is_defined_axis_zoom_end(axis_Ptr axis_hdl ) |
---|
| 230 | { |
---|
| 231 | CTimer::get("XIOS").resume(); |
---|
[445] | 232 | return axis_hdl->zoom_end.hasInheritedValue(); |
---|
[432] | 233 | CTimer::get("XIOS").suspend(); |
---|
| 234 | } |
---|
[369] | 235 | |
---|
[432] | 236 | |
---|
| 237 | |
---|
[369] | 238 | void cxios_set_axis_zoom_size(axis_Ptr axis_hdl, int zoom_size) |
---|
| 239 | { |
---|
| 240 | CTimer::get("XIOS").resume(); |
---|
| 241 | axis_hdl->zoom_size.setValue(zoom_size); |
---|
| 242 | CTimer::get("XIOS").suspend(); |
---|
| 243 | } |
---|
| 244 | |
---|
| 245 | void cxios_get_axis_zoom_size(axis_Ptr axis_hdl, int* zoom_size) |
---|
| 246 | { |
---|
[445] | 247 | *zoom_size = axis_hdl->zoom_size.getInheritedValue(); |
---|
[369] | 248 | } |
---|
| 249 | |
---|
[432] | 250 | bool cxios_is_defined_axis_zoom_size(axis_Ptr axis_hdl ) |
---|
| 251 | { |
---|
| 252 | CTimer::get("XIOS").resume(); |
---|
[445] | 253 | return axis_hdl->zoom_size.hasInheritedValue(); |
---|
[432] | 254 | CTimer::get("XIOS").suspend(); |
---|
| 255 | } |
---|
[369] | 256 | |
---|
| 257 | |
---|
[432] | 258 | |
---|
| 259 | |
---|
[325] | 260 | } |
---|