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.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "timer.hpp" |
---|
13 | #include "grid.hpp" |
---|
14 | |
---|
15 | extern "C" |
---|
16 | { |
---|
17 | typedef xios::CGridGroup* gridgroup_Ptr; |
---|
18 | |
---|
19 | void cxios_set_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
20 | { |
---|
21 | std::string axis_ref_str; |
---|
22 | if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | gridgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
25 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); |
---|
26 | CTimer::get("XIOS").suspend(); |
---|
27 | } |
---|
28 | |
---|
29 | void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
30 | { |
---|
31 | CTimer::get("XIOS").resume(); |
---|
32 | if(!string_copy(gridgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) |
---|
33 | ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
34 | CTimer::get("XIOS").suspend(); |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | void cxios_set_gridgroup_description(gridgroup_Ptr gridgroup_hdl, const char * description, int description_size) |
---|
39 | { |
---|
40 | std::string description_str; |
---|
41 | if(!cstr2string(description, description_size, description_str)) return; |
---|
42 | CTimer::get("XIOS").resume(); |
---|
43 | gridgroup_hdl->description.setValue(description_str); |
---|
44 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); |
---|
45 | CTimer::get("XIOS").suspend(); |
---|
46 | } |
---|
47 | |
---|
48 | void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) |
---|
49 | { |
---|
50 | CTimer::get("XIOS").resume(); |
---|
51 | if(!string_copy(gridgroup_hdl->description.getValue(),description , description_size)) |
---|
52 | ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
53 | CTimer::get("XIOS").suspend(); |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | void cxios_set_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
58 | { |
---|
59 | std::string domain_ref_str; |
---|
60 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
61 | CTimer::get("XIOS").resume(); |
---|
62 | gridgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
63 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); |
---|
64 | CTimer::get("XIOS").suspend(); |
---|
65 | } |
---|
66 | |
---|
67 | void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
68 | { |
---|
69 | CTimer::get("XIOS").resume(); |
---|
70 | if(!string_copy(gridgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) |
---|
71 | ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
72 | CTimer::get("XIOS").suspend(); |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | void cxios_set_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, const char * group_ref, int group_ref_size) |
---|
77 | { |
---|
78 | std::string group_ref_str; |
---|
79 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
80 | CTimer::get("XIOS").resume(); |
---|
81 | gridgroup_hdl->group_ref.setValue(group_ref_str); |
---|
82 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); |
---|
83 | CTimer::get("XIOS").suspend(); |
---|
84 | } |
---|
85 | |
---|
86 | void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) |
---|
87 | { |
---|
88 | CTimer::get("XIOS").resume(); |
---|
89 | if(!string_copy(gridgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) |
---|
90 | ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
91 | CTimer::get("XIOS").suspend(); |
---|
92 | } |
---|
93 | |
---|
94 | |
---|
95 | void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) |
---|
96 | { |
---|
97 | std::string name_str; |
---|
98 | if(!cstr2string(name, name_size, name_str)) return; |
---|
99 | CTimer::get("XIOS").resume(); |
---|
100 | gridgroup_hdl->name.setValue(name_str); |
---|
101 | gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); |
---|
102 | CTimer::get("XIOS").suspend(); |
---|
103 | } |
---|
104 | |
---|
105 | void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) |
---|
106 | { |
---|
107 | CTimer::get("XIOS").resume(); |
---|
108 | if(!string_copy(gridgroup_hdl->name.getValue(),name , name_size)) |
---|
109 | ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
110 | CTimer::get("XIOS").suspend(); |
---|
111 | } |
---|
112 | |
---|
113 | |
---|
114 | |
---|
115 | } |
---|