[786] | 1 | /* ************************************************************************** * |
---|
| 2 | * Interface auto generated - do not modify * |
---|
| 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include "xios.hpp" |
---|
| 7 | #include "attribute_template.hpp" |
---|
| 8 | #include "object_template.hpp" |
---|
| 9 | #include "group_template.hpp" |
---|
| 10 | #include "icutil.hpp" |
---|
| 11 | #include "icdate.hpp" |
---|
| 12 | #include "timer.hpp" |
---|
| 13 | #include "node_type.hpp" |
---|
| 14 | |
---|
| 15 | extern "C" |
---|
| 16 | { |
---|
| 17 | typedef xios::CInterpolateAxis* interpolate_axis_Ptr; |
---|
| 18 | |
---|
[891] | 19 | void cxios_set_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, const char * coordinate, int coordinate_size) |
---|
| 20 | { |
---|
| 21 | std::string coordinate_str; |
---|
| 22 | if (!cstr2string(coordinate, coordinate_size, coordinate_str)) return; |
---|
| 23 | CTimer::get("XIOS").resume(); |
---|
| 24 | interpolate_axis_hdl->coordinate.setValue(coordinate_str); |
---|
| 25 | CTimer::get("XIOS").suspend(); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size) |
---|
| 29 | { |
---|
| 30 | CTimer::get("XIOS").resume(); |
---|
| 31 | if (!string_copy(interpolate_axis_hdl->coordinate.getInheritedValue(), coordinate, coordinate_size)) |
---|
| 32 | ERROR("void cxios_get_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl, char * coordinate, int coordinate_size)", << "Input string is too short"); |
---|
| 33 | CTimer::get("XIOS").suspend(); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | bool cxios_is_defined_interpolate_axis_coordinate(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
| 37 | { |
---|
| 38 | CTimer::get("XIOS").resume(); |
---|
| 39 | bool isDefined = interpolate_axis_hdl->coordinate.hasInheritedValue(); |
---|
| 40 | CTimer::get("XIOS").suspend(); |
---|
| 41 | return isDefined; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | |
---|
[786] | 45 | void cxios_set_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl, int order) |
---|
| 46 | { |
---|
| 47 | CTimer::get("XIOS").resume(); |
---|
| 48 | interpolate_axis_hdl->order.setValue(order); |
---|
| 49 | CTimer::get("XIOS").suspend(); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | void cxios_get_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl, int* order) |
---|
| 53 | { |
---|
| 54 | CTimer::get("XIOS").resume(); |
---|
| 55 | *order = interpolate_axis_hdl->order.getInheritedValue(); |
---|
| 56 | CTimer::get("XIOS").suspend(); |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | bool cxios_is_defined_interpolate_axis_order(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
| 60 | { |
---|
| 61 | CTimer::get("XIOS").resume(); |
---|
| 62 | bool isDefined = interpolate_axis_hdl->order.hasInheritedValue(); |
---|
| 63 | CTimer::get("XIOS").suspend(); |
---|
| 64 | return isDefined; |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | void cxios_set_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, const char * type, int type_size) |
---|
| 69 | { |
---|
| 70 | std::string type_str; |
---|
| 71 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 72 | CTimer::get("XIOS").resume(); |
---|
| 73 | interpolate_axis_hdl->type.setValue(type_str); |
---|
| 74 | CTimer::get("XIOS").suspend(); |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | void cxios_get_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, char * type, int type_size) |
---|
| 78 | { |
---|
| 79 | CTimer::get("XIOS").resume(); |
---|
| 80 | if (!string_copy(interpolate_axis_hdl->type.getInheritedValue(), type, type_size)) |
---|
| 81 | ERROR("void cxios_get_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 82 | CTimer::get("XIOS").suspend(); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | bool cxios_is_defined_interpolate_axis_type(interpolate_axis_Ptr interpolate_axis_hdl) |
---|
| 86 | { |
---|
| 87 | CTimer::get("XIOS").resume(); |
---|
| 88 | bool isDefined = interpolate_axis_hdl->type.hasInheritedValue(); |
---|
| 89 | CTimer::get("XIOS").suspend(); |
---|
| 90 | return isDefined; |
---|
| 91 | } |
---|
| 92 | } |
---|