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