[325] | 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" |
---|
[352] | 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
[325] | 11 | #include "icutil.hpp" |
---|
[532] | 12 | #include "icdate.hpp" |
---|
[347] | 13 | #include "timer.hpp" |
---|
[369] | 14 | #include "node_type.hpp" |
---|
[325] | 15 | |
---|
| 16 | extern "C" |
---|
| 17 | { |
---|
[345] | 18 | typedef xios::CGridGroup* gridgroup_Ptr; |
---|
[325] | 19 | |
---|
| 20 | void cxios_set_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, const char * axis_ref, int axis_ref_size) |
---|
| 21 | { |
---|
| 22 | std::string axis_ref_str; |
---|
| 23 | if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; |
---|
[347] | 24 | CTimer::get("XIOS").resume(); |
---|
[325] | 25 | gridgroup_hdl->axis_ref.setValue(axis_ref_str); |
---|
[347] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) |
---|
| 30 | { |
---|
[347] | 31 | CTimer::get("XIOS").resume(); |
---|
[445] | 32 | if(!string_copy(gridgroup_hdl->axis_ref.getInheritedValue(),axis_ref , axis_ref_size)) |
---|
[325] | 33 | ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); |
---|
[347] | 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
| 36 | |
---|
[432] | 37 | bool cxios_is_defined_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[445] | 40 | return gridgroup_hdl->axis_ref.hasInheritedValue(); |
---|
[432] | 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
[325] | 43 | |
---|
[432] | 44 | |
---|
| 45 | |
---|
[325] | 46 | void cxios_set_gridgroup_description(gridgroup_Ptr gridgroup_hdl, const char * description, int description_size) |
---|
| 47 | { |
---|
| 48 | std::string description_str; |
---|
| 49 | if(!cstr2string(description, description_size, description_str)) return; |
---|
[347] | 50 | CTimer::get("XIOS").resume(); |
---|
[325] | 51 | gridgroup_hdl->description.setValue(description_str); |
---|
[347] | 52 | CTimer::get("XIOS").suspend(); |
---|
[325] | 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) |
---|
| 56 | { |
---|
[347] | 57 | CTimer::get("XIOS").resume(); |
---|
[445] | 58 | if(!string_copy(gridgroup_hdl->description.getInheritedValue(),description , description_size)) |
---|
[325] | 59 | ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); |
---|
[347] | 60 | CTimer::get("XIOS").suspend(); |
---|
[325] | 61 | } |
---|
| 62 | |
---|
[432] | 63 | bool cxios_is_defined_gridgroup_description(gridgroup_Ptr gridgroup_hdl ) |
---|
| 64 | { |
---|
| 65 | CTimer::get("XIOS").resume(); |
---|
[445] | 66 | return gridgroup_hdl->description.hasInheritedValue(); |
---|
[432] | 67 | CTimer::get("XIOS").suspend(); |
---|
| 68 | } |
---|
[325] | 69 | |
---|
[432] | 70 | |
---|
| 71 | |
---|
[325] | 72 | void cxios_set_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, const char * domain_ref, int domain_ref_size) |
---|
| 73 | { |
---|
| 74 | std::string domain_ref_str; |
---|
| 75 | if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; |
---|
[347] | 76 | CTimer::get("XIOS").resume(); |
---|
[325] | 77 | gridgroup_hdl->domain_ref.setValue(domain_ref_str); |
---|
[347] | 78 | CTimer::get("XIOS").suspend(); |
---|
[325] | 79 | } |
---|
| 80 | |
---|
| 81 | void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) |
---|
| 82 | { |
---|
[347] | 83 | CTimer::get("XIOS").resume(); |
---|
[445] | 84 | if(!string_copy(gridgroup_hdl->domain_ref.getInheritedValue(),domain_ref , domain_ref_size)) |
---|
[325] | 85 | ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); |
---|
[347] | 86 | CTimer::get("XIOS").suspend(); |
---|
[325] | 87 | } |
---|
| 88 | |
---|
[432] | 89 | bool cxios_is_defined_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl ) |
---|
| 90 | { |
---|
| 91 | CTimer::get("XIOS").resume(); |
---|
[445] | 92 | return gridgroup_hdl->domain_ref.hasInheritedValue(); |
---|
[432] | 93 | CTimer::get("XIOS").suspend(); |
---|
| 94 | } |
---|
[325] | 95 | |
---|
[432] | 96 | |
---|
| 97 | |
---|
[325] | 98 | void cxios_set_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, const char * group_ref, int group_ref_size) |
---|
| 99 | { |
---|
| 100 | std::string group_ref_str; |
---|
| 101 | if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; |
---|
[347] | 102 | CTimer::get("XIOS").resume(); |
---|
[325] | 103 | gridgroup_hdl->group_ref.setValue(group_ref_str); |
---|
[347] | 104 | CTimer::get("XIOS").suspend(); |
---|
[325] | 105 | } |
---|
| 106 | |
---|
| 107 | void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) |
---|
| 108 | { |
---|
[347] | 109 | CTimer::get("XIOS").resume(); |
---|
[445] | 110 | if(!string_copy(gridgroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size)) |
---|
[325] | 111 | ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); |
---|
[347] | 112 | CTimer::get("XIOS").suspend(); |
---|
[325] | 113 | } |
---|
| 114 | |
---|
[432] | 115 | bool cxios_is_defined_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl ) |
---|
| 116 | { |
---|
| 117 | CTimer::get("XIOS").resume(); |
---|
[445] | 118 | return gridgroup_hdl->group_ref.hasInheritedValue(); |
---|
[432] | 119 | CTimer::get("XIOS").suspend(); |
---|
| 120 | } |
---|
[325] | 121 | |
---|
[432] | 122 | |
---|
| 123 | |
---|
[415] | 124 | void cxios_set_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) |
---|
| 125 | { |
---|
| 126 | CTimer::get("XIOS").resume(); |
---|
| 127 | CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; |
---|
| 128 | gridgroup_hdl->mask.reference(tmp.copy()); |
---|
[416] | 129 | CTimer::get("XIOS").suspend(); |
---|
[415] | 130 | } |
---|
| 131 | |
---|
| 132 | void cxios_get_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) |
---|
| 133 | { |
---|
[416] | 134 | CTimer::get("XIOS").resume(); |
---|
[415] | 135 | CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; |
---|
[445] | 136 | tmp=gridgroup_hdl->mask.getInheritedValue() ; |
---|
[415] | 137 | CTimer::get("XIOS").suspend(); |
---|
| 138 | } |
---|
| 139 | |
---|
[432] | 140 | bool cxios_is_defined_gridgroup_mask(gridgroup_Ptr gridgroup_hdl ) |
---|
| 141 | { |
---|
| 142 | CTimer::get("XIOS").resume(); |
---|
[445] | 143 | return gridgroup_hdl->mask.hasInheritedValue(); |
---|
[432] | 144 | CTimer::get("XIOS").suspend(); |
---|
| 145 | } |
---|
[415] | 146 | |
---|
[432] | 147 | |
---|
| 148 | |
---|
[325] | 149 | void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) |
---|
| 150 | { |
---|
| 151 | std::string name_str; |
---|
| 152 | if(!cstr2string(name, name_size, name_str)) return; |
---|
[347] | 153 | CTimer::get("XIOS").resume(); |
---|
[325] | 154 | gridgroup_hdl->name.setValue(name_str); |
---|
[347] | 155 | CTimer::get("XIOS").suspend(); |
---|
[325] | 156 | } |
---|
| 157 | |
---|
| 158 | void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) |
---|
| 159 | { |
---|
[347] | 160 | CTimer::get("XIOS").resume(); |
---|
[445] | 161 | if(!string_copy(gridgroup_hdl->name.getInheritedValue(),name , name_size)) |
---|
[325] | 162 | ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
[347] | 163 | CTimer::get("XIOS").suspend(); |
---|
[325] | 164 | } |
---|
| 165 | |
---|
[432] | 166 | bool cxios_is_defined_gridgroup_name(gridgroup_Ptr gridgroup_hdl ) |
---|
| 167 | { |
---|
| 168 | CTimer::get("XIOS").resume(); |
---|
[445] | 169 | return gridgroup_hdl->name.hasInheritedValue(); |
---|
[432] | 170 | CTimer::get("XIOS").suspend(); |
---|
| 171 | } |
---|
[325] | 172 | |
---|
| 173 | |
---|
[432] | 174 | |
---|
| 175 | |
---|
[325] | 176 | } |
---|