- Timestamp:
- 06/06/17 17:58:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/interface/c_attr/icaxisgroup_attr.cpp
r817 r1158 214 214 215 215 216 void cxios_set_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_len, int* str_size, int* extent) 217 { 218 CTimer::get("XIOS").resume(); 219 axisgroup_hdl->label.resize(shape(extent[0])); 220 Array<StdString,1>::iterator it, itb=axisgroup_hdl->label.begin(), ite=axisgroup_hdl->label.end() ; 221 int i, n ; 222 for(it=itb, i=0, n=0 ; it!=ite ; ++it,n+=str_len,++i) *it=StdString(&label[n],str_size[i]) ; 223 CTimer::get("XIOS").suspend(); 224 } 225 226 void cxios_get_axisgroup_label(axisgroup_Ptr axisgroup_hdl, char* label, int str_size, int* extent) 227 { 228 CTimer::get("XIOS").resume(); 229 Array<StdString,1>::const_iterator it, itb=axisgroup_hdl->label.getInheritedValue().begin(), ite=axisgroup_hdl->label.getInheritedValue().end() ; 230 int n ; 231 for(it=itb, n=0 ; it!=ite ; ++it, n+=str_size) it->copy(&label[n],it->size()) ; 232 CTimer::get("XIOS").suspend(); 233 } 234 235 bool cxios_is_defined_axisgroup_label(axisgroup_Ptr axisgroup_hdl) 236 { 237 CTimer::get("XIOS").resume(); 238 bool isDefined = axisgroup_hdl->label.hasInheritedValue(); 239 CTimer::get("XIOS").suspend(); 240 return isDefined; 241 } 242 243 216 244 void cxios_set_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, const char * long_name, int long_name_size) 217 245 { … … 386 414 387 415 416 void cxios_set_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int prec) 417 { 418 CTimer::get("XIOS").resume(); 419 axisgroup_hdl->prec.setValue(prec); 420 CTimer::get("XIOS").suspend(); 421 } 422 423 void cxios_get_axisgroup_prec(axisgroup_Ptr axisgroup_hdl, int* prec) 424 { 425 CTimer::get("XIOS").resume(); 426 *prec = axisgroup_hdl->prec.getInheritedValue(); 427 CTimer::get("XIOS").suspend(); 428 } 429 430 bool cxios_is_defined_axisgroup_prec(axisgroup_Ptr axisgroup_hdl) 431 { 432 CTimer::get("XIOS").resume(); 433 bool isDefined = axisgroup_hdl->prec.hasInheritedValue(); 434 CTimer::get("XIOS").suspend(); 435 return isDefined; 436 } 437 438 388 439 void cxios_set_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, const char * standard_name, int standard_name_size) 389 440 {
Note: See TracChangeset
for help on using the changeset viewer.