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 "node_type.hpp" |
---|
14 | |
---|
15 | extern "C" |
---|
16 | { |
---|
17 | typedef xios::CVariableGroup* variablegroup_Ptr; |
---|
18 | |
---|
19 | void cxios_set_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, const char * group_ref, int group_ref_size) |
---|
20 | { |
---|
21 | std::string group_ref_str; |
---|
22 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
23 | CTimer::get("XIOS").resume(); |
---|
24 | variablegroup_hdl->group_ref.setValue(group_ref_str); |
---|
25 | variablegroup_hdl->sendAttributToServer(variablegroup_hdl->group_ref); |
---|
26 | CTimer::get("XIOS").suspend(); |
---|
27 | } |
---|
28 | |
---|
29 | void cxios_get_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, char * group_ref, int group_ref_size) |
---|
30 | { |
---|
31 | CTimer::get("XIOS").resume(); |
---|
32 | if(!string_copy(variablegroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size)) |
---|
33 | ERROR("void cxios_get_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
34 | CTimer::get("XIOS").suspend(); |
---|
35 | } |
---|
36 | |
---|
37 | bool cxios_is_defined_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl ) |
---|
38 | { |
---|
39 | CTimer::get("XIOS").resume(); |
---|
40 | return variablegroup_hdl->group_ref.hasInheritedValue(); |
---|
41 | CTimer::get("XIOS").suspend(); |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | void cxios_set_variablegroup_name(variablegroup_Ptr variablegroup_hdl, const char * name, int name_size) |
---|
47 | { |
---|
48 | std::string name_str; |
---|
49 | if(!cstr2string(name, name_size, name_str)) return; |
---|
50 | CTimer::get("XIOS").resume(); |
---|
51 | variablegroup_hdl->name.setValue(name_str); |
---|
52 | variablegroup_hdl->sendAttributToServer(variablegroup_hdl->name); |
---|
53 | CTimer::get("XIOS").suspend(); |
---|
54 | } |
---|
55 | |
---|
56 | void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size) |
---|
57 | { |
---|
58 | CTimer::get("XIOS").resume(); |
---|
59 | if(!string_copy(variablegroup_hdl->name.getInheritedValue(),name , name_size)) |
---|
60 | ERROR("void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
61 | CTimer::get("XIOS").suspend(); |
---|
62 | } |
---|
63 | |
---|
64 | bool cxios_is_defined_variablegroup_name(variablegroup_Ptr variablegroup_hdl ) |
---|
65 | { |
---|
66 | CTimer::get("XIOS").resume(); |
---|
67 | return variablegroup_hdl->name.hasInheritedValue(); |
---|
68 | CTimer::get("XIOS").suspend(); |
---|
69 | } |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | void cxios_set_variablegroup_type(variablegroup_Ptr variablegroup_hdl, const char * type, int type_size) |
---|
74 | { |
---|
75 | std::string type_str; |
---|
76 | if(!cstr2string(type, type_size, type_str)) return; |
---|
77 | CTimer::get("XIOS").resume(); |
---|
78 | variablegroup_hdl->type.setValue(type_str); |
---|
79 | variablegroup_hdl->sendAttributToServer(variablegroup_hdl->type); |
---|
80 | CTimer::get("XIOS").suspend(); |
---|
81 | } |
---|
82 | |
---|
83 | void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size) |
---|
84 | { |
---|
85 | CTimer::get("XIOS").resume(); |
---|
86 | if(!string_copy(variablegroup_hdl->type.getInheritedValue(),type , type_size)) |
---|
87 | ERROR("void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
88 | CTimer::get("XIOS").suspend(); |
---|
89 | } |
---|
90 | |
---|
91 | bool cxios_is_defined_variablegroup_type(variablegroup_Ptr variablegroup_hdl ) |
---|
92 | { |
---|
93 | CTimer::get("XIOS").resume(); |
---|
94 | return variablegroup_hdl->type.hasInheritedValue(); |
---|
95 | CTimer::get("XIOS").suspend(); |
---|
96 | } |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | } |
---|