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 xios::tree::CGridGroup* gridgroup_Ptr; |
---|
16 | |
---|
17 | void cxios_set_gridgroup_axis_ref(gridgroup_Ptr gridgroup_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 | gridgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
22 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); |
---|
23 | } |
---|
24 | |
---|
25 | void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
26 | { |
---|
27 | if(!string_copy(gridgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) |
---|
28 | ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | void cxios_set_gridgroup_description(gridgroup_Ptr gridgroup_hdl, const char * description, int description_size) |
---|
33 | { |
---|
34 | std::string description_str; |
---|
35 | if(!cstr2string(description, description_size, description_str)) return; |
---|
36 | gridgroup_hdl->description.setValue(description_str); |
---|
37 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); |
---|
38 | } |
---|
39 | |
---|
40 | void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) |
---|
41 | { |
---|
42 | if(!string_copy(gridgroup_hdl->description.getValue(),description , description_size)) |
---|
43 | ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | void cxios_set_gridgroup_domain_ref(gridgroup_Ptr gridgroup_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 | gridgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
52 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); |
---|
53 | } |
---|
54 | |
---|
55 | void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
56 | { |
---|
57 | if(!string_copy(gridgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) |
---|
58 | ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
59 | } |
---|
60 | |
---|
61 | |
---|
62 | void cxios_set_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, const char * group_ref, int group_ref_size) |
---|
63 | { |
---|
64 | std::string group_ref_str; |
---|
65 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
66 | gridgroup_hdl->group_ref.setValue(group_ref_str); |
---|
67 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); |
---|
68 | } |
---|
69 | |
---|
70 | void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) |
---|
71 | { |
---|
72 | if(!string_copy(gridgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
73 | ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
74 | } |
---|
75 | |
---|
76 | |
---|
77 | void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) |
---|
78 | { |
---|
79 | std::string name_str; |
---|
80 | if(!cstr2string(name, name_size, name_str)) return; |
---|
81 | gridgroup_hdl->name.setValue(name_str); |
---|
82 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); |
---|
83 | } |
---|
84 | |
---|
85 | void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) |
---|
86 | { |
---|
87 | if(!string_copy(gridgroup_hdl->name.getValue(),name , name_size)) |
---|
88 | ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
89 | } |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | } |
---|