[981] | 1 | /* ************************************************************************** * |
---|
| 2 | * Interface auto generated - do not modify * |
---|
| 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
[1542] | 6 | #include <memory> |
---|
[981] | 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::CExpandDomain* expand_domain_Ptr; |
---|
| 19 | |
---|
[1158] | 20 | void cxios_set_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl, bool i_periodic) |
---|
| 21 | { |
---|
| 22 | CTimer::get("XIOS").resume(); |
---|
| 23 | expand_domain_hdl->i_periodic.setValue(i_periodic); |
---|
| 24 | CTimer::get("XIOS").suspend(); |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | void cxios_get_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl, bool* i_periodic) |
---|
| 28 | { |
---|
| 29 | CTimer::get("XIOS").resume(); |
---|
| 30 | *i_periodic = expand_domain_hdl->i_periodic.getInheritedValue(); |
---|
| 31 | CTimer::get("XIOS").suspend(); |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | bool cxios_is_defined_expand_domain_i_periodic(expand_domain_Ptr expand_domain_hdl) |
---|
| 35 | { |
---|
| 36 | CTimer::get("XIOS").resume(); |
---|
| 37 | bool isDefined = expand_domain_hdl->i_periodic.hasInheritedValue(); |
---|
| 38 | CTimer::get("XIOS").suspend(); |
---|
| 39 | return isDefined; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | void cxios_set_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl, bool j_periodic) |
---|
| 44 | { |
---|
| 45 | CTimer::get("XIOS").resume(); |
---|
| 46 | expand_domain_hdl->j_periodic.setValue(j_periodic); |
---|
| 47 | CTimer::get("XIOS").suspend(); |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | void cxios_get_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl, bool* j_periodic) |
---|
| 51 | { |
---|
| 52 | CTimer::get("XIOS").resume(); |
---|
| 53 | *j_periodic = expand_domain_hdl->j_periodic.getInheritedValue(); |
---|
| 54 | CTimer::get("XIOS").suspend(); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | bool cxios_is_defined_expand_domain_j_periodic(expand_domain_Ptr expand_domain_hdl) |
---|
| 58 | { |
---|
| 59 | CTimer::get("XIOS").resume(); |
---|
| 60 | bool isDefined = expand_domain_hdl->j_periodic.hasInheritedValue(); |
---|
| 61 | CTimer::get("XIOS").suspend(); |
---|
| 62 | return isDefined; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | |
---|
[981] | 66 | void cxios_set_expand_domain_order(expand_domain_Ptr expand_domain_hdl, int order) |
---|
| 67 | { |
---|
| 68 | CTimer::get("XIOS").resume(); |
---|
| 69 | expand_domain_hdl->order.setValue(order); |
---|
| 70 | CTimer::get("XIOS").suspend(); |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | void cxios_get_expand_domain_order(expand_domain_Ptr expand_domain_hdl, int* order) |
---|
| 74 | { |
---|
| 75 | CTimer::get("XIOS").resume(); |
---|
| 76 | *order = expand_domain_hdl->order.getInheritedValue(); |
---|
| 77 | CTimer::get("XIOS").suspend(); |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | bool cxios_is_defined_expand_domain_order(expand_domain_Ptr expand_domain_hdl) |
---|
| 81 | { |
---|
| 82 | CTimer::get("XIOS").resume(); |
---|
| 83 | bool isDefined = expand_domain_hdl->order.hasInheritedValue(); |
---|
| 84 | CTimer::get("XIOS").suspend(); |
---|
| 85 | return isDefined; |
---|
| 86 | } |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | void cxios_set_expand_domain_type(expand_domain_Ptr expand_domain_hdl, const char * type, int type_size) |
---|
| 90 | { |
---|
| 91 | std::string type_str; |
---|
| 92 | if (!cstr2string(type, type_size, type_str)) return; |
---|
| 93 | CTimer::get("XIOS").resume(); |
---|
| 94 | expand_domain_hdl->type.fromString(type_str); |
---|
| 95 | CTimer::get("XIOS").suspend(); |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | void cxios_get_expand_domain_type(expand_domain_Ptr expand_domain_hdl, char * type, int type_size) |
---|
| 99 | { |
---|
| 100 | CTimer::get("XIOS").resume(); |
---|
| 101 | if (!string_copy(expand_domain_hdl->type.getInheritedStringValue(), type, type_size)) |
---|
| 102 | ERROR("void cxios_get_expand_domain_type(expand_domain_Ptr expand_domain_hdl, char * type, int type_size)", << "Input string is too short"); |
---|
| 103 | CTimer::get("XIOS").suspend(); |
---|
| 104 | } |
---|
| 105 | |
---|
| 106 | bool cxios_is_defined_expand_domain_type(expand_domain_Ptr expand_domain_hdl) |
---|
| 107 | { |
---|
| 108 | CTimer::get("XIOS").resume(); |
---|
| 109 | bool isDefined = expand_domain_hdl->type.hasInheritedValue(); |
---|
| 110 | CTimer::get("XIOS").suspend(); |
---|
| 111 | return isDefined; |
---|
| 112 | } |
---|
| 113 | } |
---|