1 | /* ************************************************************************** * |
---|
2 | * Interface auto generated - do not modify * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | #include "xios.hpp" |
---|
8 | #include "attribute_template.hpp" |
---|
9 | #include "object_template.hpp" |
---|
10 | #include "group_template.hpp" |
---|
11 | #include "icutil.hpp" |
---|
12 | #include "icdate.hpp" |
---|
13 | #include "timer.hpp" |
---|
14 | #include "node_type.hpp" |
---|
15 | |
---|
16 | extern "C" |
---|
17 | { |
---|
18 | typedef xios::CVariableGroup* variablegroup_Ptr; |
---|
19 | |
---|
20 | void cxios_set_variablegroup_group_ref(variablegroup_Ptr variablegroup_hdl, const char * group_ref, int group_ref_size) |
---|
21 | { |
---|
22 | std::string group_ref_str; |
---|
23 | if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
24 | CTimer::get("XIOS").resume(); |
---|
25 | variablegroup_hdl->group_ref.setValue(group_ref_str); |
---|
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 too 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 | bool isDefined = variablegroup_hdl->group_ref.hasInheritedValue(); |
---|
41 | CTimer::get("XIOS").suspend(); |
---|
42 | return isDefined; |
---|
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 | CTimer::get("XIOS").suspend(); |
---|
53 | } |
---|
54 | |
---|
55 | void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size) |
---|
56 | { |
---|
57 | CTimer::get("XIOS").resume(); |
---|
58 | if (!string_copy(variablegroup_hdl->name.getInheritedValue(), name, name_size)) |
---|
59 | ERROR("void cxios_get_variablegroup_name(variablegroup_Ptr variablegroup_hdl, char * name, int name_size)", << "Input string is too short"); |
---|
60 | CTimer::get("XIOS").suspend(); |
---|
61 | } |
---|
62 | |
---|
63 | bool cxios_is_defined_variablegroup_name(variablegroup_Ptr variablegroup_hdl) |
---|
64 | { |
---|
65 | CTimer::get("XIOS").resume(); |
---|
66 | bool isDefined = variablegroup_hdl->name.hasInheritedValue(); |
---|
67 | CTimer::get("XIOS").suspend(); |
---|
68 | return isDefined; |
---|
69 | } |
---|
70 | |
---|
71 | |
---|
72 | void cxios_set_variablegroup_ts_target(variablegroup_Ptr variablegroup_hdl, const char * ts_target, int ts_target_size) |
---|
73 | { |
---|
74 | std::string ts_target_str; |
---|
75 | if (!cstr2string(ts_target, ts_target_size, ts_target_str)) return; |
---|
76 | CTimer::get("XIOS").resume(); |
---|
77 | variablegroup_hdl->ts_target.fromString(ts_target_str); |
---|
78 | CTimer::get("XIOS").suspend(); |
---|
79 | } |
---|
80 | |
---|
81 | void cxios_get_variablegroup_ts_target(variablegroup_Ptr variablegroup_hdl, char * ts_target, int ts_target_size) |
---|
82 | { |
---|
83 | CTimer::get("XIOS").resume(); |
---|
84 | if (!string_copy(variablegroup_hdl->ts_target.getInheritedStringValue(), ts_target, ts_target_size)) |
---|
85 | ERROR("void cxios_get_variablegroup_ts_target(variablegroup_Ptr variablegroup_hdl, char * ts_target, int ts_target_size)", << "Input string is too short"); |
---|
86 | CTimer::get("XIOS").suspend(); |
---|
87 | } |
---|
88 | |
---|
89 | bool cxios_is_defined_variablegroup_ts_target(variablegroup_Ptr variablegroup_hdl) |
---|
90 | { |
---|
91 | CTimer::get("XIOS").resume(); |
---|
92 | bool isDefined = variablegroup_hdl->ts_target.hasInheritedValue(); |
---|
93 | CTimer::get("XIOS").suspend(); |
---|
94 | return isDefined; |
---|
95 | } |
---|
96 | |
---|
97 | |
---|
98 | void cxios_set_variablegroup_type(variablegroup_Ptr variablegroup_hdl, const char * type, int type_size) |
---|
99 | { |
---|
100 | std::string type_str; |
---|
101 | if (!cstr2string(type, type_size, type_str)) return; |
---|
102 | CTimer::get("XIOS").resume(); |
---|
103 | variablegroup_hdl->type.fromString(type_str); |
---|
104 | CTimer::get("XIOS").suspend(); |
---|
105 | } |
---|
106 | |
---|
107 | void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size) |
---|
108 | { |
---|
109 | CTimer::get("XIOS").resume(); |
---|
110 | if (!string_copy(variablegroup_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
111 | ERROR("void cxios_get_variablegroup_type(variablegroup_Ptr variablegroup_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
112 | CTimer::get("XIOS").suspend(); |
---|
113 | } |
---|
114 | |
---|
115 | bool cxios_is_defined_variablegroup_type(variablegroup_Ptr variablegroup_hdl) |
---|
116 | { |
---|
117 | CTimer::get("XIOS").resume(); |
---|
118 | bool isDefined = variablegroup_hdl->type.hasInheritedValue(); |
---|
119 | CTimer::get("XIOS").suspend(); |
---|
120 | return isDefined; |
---|
121 | } |
---|
122 | } |
---|