Changeset 555 for XIOS/trunk/src/interface/c_attr/icaxisgroup_attr.cpp
- Timestamp:
- 02/11/15 16:47:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icaxisgroup_attr.cpp
r546 r555 44 44 45 45 46 void cxios_set_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int data_begin) 47 { 48 CTimer::get("XIOS").resume(); 49 axisgroup_hdl->data_begin.setValue(data_begin); 50 CTimer::get("XIOS").suspend(); 51 } 52 53 void cxios_get_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl, int* data_begin) 54 { 55 *data_begin = axisgroup_hdl->data_begin.getInheritedValue(); 56 } 57 58 bool cxios_is_defined_axisgroup_data_begin(axisgroup_Ptr axisgroup_hdl ) 59 { 60 CTimer::get("XIOS").resume(); 61 return axisgroup_hdl->data_begin.hasInheritedValue(); 62 CTimer::get("XIOS").suspend(); 63 } 64 65 66 67 void cxios_set_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1) 68 { 69 CTimer::get("XIOS").resume(); 70 CArray<int,1> tmp(data_index,shape(extent1),neverDeleteData) ; 71 axisgroup_hdl->data_index.reference(tmp.copy()); 72 CTimer::get("XIOS").suspend(); 73 } 74 75 void cxios_get_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl, int* data_index, int extent1) 76 { 77 CTimer::get("XIOS").resume(); 78 CArray<int,1> tmp(data_index,shape(extent1),neverDeleteData) ; 79 tmp=axisgroup_hdl->data_index.getInheritedValue() ; 80 CTimer::get("XIOS").suspend(); 81 } 82 83 bool cxios_is_defined_axisgroup_data_index(axisgroup_Ptr axisgroup_hdl ) 84 { 85 CTimer::get("XIOS").resume(); 86 return axisgroup_hdl->data_index.hasInheritedValue(); 87 CTimer::get("XIOS").suspend(); 88 } 89 90 91 92 void cxios_set_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int data_n) 93 { 94 CTimer::get("XIOS").resume(); 95 axisgroup_hdl->data_n.setValue(data_n); 96 CTimer::get("XIOS").suspend(); 97 } 98 99 void cxios_get_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl, int* data_n) 100 { 101 *data_n = axisgroup_hdl->data_n.getInheritedValue(); 102 } 103 104 bool cxios_is_defined_axisgroup_data_n(axisgroup_Ptr axisgroup_hdl ) 105 { 106 CTimer::get("XIOS").resume(); 107 return axisgroup_hdl->data_n.hasInheritedValue(); 108 CTimer::get("XIOS").suspend(); 109 } 110 111 112 46 113 void cxios_set_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, const char * group_ref, int group_ref_size) 47 114 { … … 70 137 71 138 139 void cxios_set_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int ibegin) 140 { 141 CTimer::get("XIOS").resume(); 142 axisgroup_hdl->ibegin.setValue(ibegin); 143 CTimer::get("XIOS").suspend(); 144 } 145 146 void cxios_get_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl, int* ibegin) 147 { 148 *ibegin = axisgroup_hdl->ibegin.getInheritedValue(); 149 } 150 151 bool cxios_is_defined_axisgroup_ibegin(axisgroup_Ptr axisgroup_hdl ) 152 { 153 CTimer::get("XIOS").resume(); 154 return axisgroup_hdl->ibegin.hasInheritedValue(); 155 CTimer::get("XIOS").suspend(); 156 } 157 158 159 72 160 void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) 73 161 { … … 96 184 97 185 186 void cxios_set_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1) 187 { 188 CTimer::get("XIOS").resume(); 189 CArray<bool,1> tmp(mask,shape(extent1),neverDeleteData) ; 190 axisgroup_hdl->mask.reference(tmp.copy()); 191 CTimer::get("XIOS").suspend(); 192 } 193 194 void cxios_get_axisgroup_mask(axisgroup_Ptr axisgroup_hdl, bool* mask, int extent1) 195 { 196 CTimer::get("XIOS").resume(); 197 CArray<bool,1> tmp(mask,shape(extent1),neverDeleteData) ; 198 tmp=axisgroup_hdl->mask.getInheritedValue() ; 199 CTimer::get("XIOS").suspend(); 200 } 201 202 bool cxios_is_defined_axisgroup_mask(axisgroup_Ptr axisgroup_hdl ) 203 { 204 CTimer::get("XIOS").resume(); 205 return axisgroup_hdl->mask.hasInheritedValue(); 206 CTimer::get("XIOS").suspend(); 207 } 208 209 210 98 211 void cxios_set_axisgroup_name(axisgroup_Ptr axisgroup_hdl, const char * name, int name_size) 99 212 { … … 122 235 123 236 237 void cxios_set_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int ni) 238 { 239 CTimer::get("XIOS").resume(); 240 axisgroup_hdl->ni.setValue(ni); 241 CTimer::get("XIOS").suspend(); 242 } 243 244 void cxios_get_axisgroup_ni(axisgroup_Ptr axisgroup_hdl, int* ni) 245 { 246 *ni = axisgroup_hdl->ni.getInheritedValue(); 247 } 248 249 bool cxios_is_defined_axisgroup_ni(axisgroup_Ptr axisgroup_hdl ) 250 { 251 CTimer::get("XIOS").resume(); 252 return axisgroup_hdl->ni.hasInheritedValue(); 253 CTimer::get("XIOS").suspend(); 254 } 255 256 257 124 258 void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) 125 259 {
Note: See TracChangeset
for help on using the changeset viewer.