[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" |
---|
| 8 | #include "attribute_template_impl.hpp" |
---|
| 9 | #include "object_template_impl.hpp" |
---|
| 10 | #include "group_template_impl.hpp" |
---|
| 11 | #include "icutil.hpp" |
---|
| 12 | |
---|
| 13 | extern "C" |
---|
| 14 | { |
---|
| 15 | typedef xmlioserver::tree::CGrid* grid_Ptr; |
---|
| 16 | |
---|
| 17 | void cxios_set_grid_axis_ref(grid_Ptr grid_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 18 | { |
---|
| 19 | std::string axis_ref_str; |
---|
| 20 | if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
| 21 | grid_hdl->axis_ref.setValue(axis_ref_str); |
---|
| 22 | grid_hdl->sendAttributToServer(grid_hdl->axis_ref); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | void cxios_get_grid_axis_ref(grid_Ptr grid_hdl, char * axis_ref, int axis_ref_size) |
---|
| 26 | { |
---|
| 27 | if(!string_copy(grid_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) |
---|
| 28 | ERROR("void cxios_get_grid_axis_ref(grid_Ptr grid_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | void cxios_set_grid_description(grid_Ptr grid_hdl, const char * description, int description_size) |
---|
| 33 | { |
---|
| 34 | std::string description_str; |
---|
| 35 | if(!cstr2string(description, description_size, description_str)) return; |
---|
| 36 | grid_hdl->description.setValue(description_str); |
---|
| 37 | grid_hdl->sendAttributToServer(grid_hdl->description); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size) |
---|
| 41 | { |
---|
| 42 | if(!string_copy(grid_hdl->description.getValue(),description , description_size)) |
---|
| 43 | ERROR("void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | void cxios_set_grid_domain_ref(grid_Ptr grid_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 48 | { |
---|
| 49 | std::string domain_ref_str; |
---|
| 50 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
| 51 | grid_hdl->domain_ref.setValue(domain_ref_str); |
---|
| 52 | grid_hdl->sendAttributToServer(grid_hdl->domain_ref); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_grid_domain_ref(grid_Ptr grid_hdl, char * domain_ref, int domain_ref_size) |
---|
| 56 | { |
---|
| 57 | if(!string_copy(grid_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) |
---|
| 58 | ERROR("void cxios_get_grid_domain_ref(grid_Ptr grid_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | void cxios_set_grid_name(grid_Ptr grid_hdl, const char * name, int name_size) |
---|
| 63 | { |
---|
| 64 | std::string name_str; |
---|
| 65 | if(!cstr2string(name, name_size, name_str)) return; |
---|
| 66 | grid_hdl->name.setValue(name_str); |
---|
| 67 | grid_hdl->sendAttributToServer(grid_hdl->name); |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size) |
---|
| 71 | { |
---|
| 72 | if(!string_copy(grid_hdl->name.getValue(),name , name_size)) |
---|
| 73 | ERROR("void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | } |
---|