Changeset 546 for XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
- Timestamp:
- 12/17/14 15:35:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
r532 r546 18 18 typedef xios::CAxis* axis_Ptr; 19 19 20 void cxios_set_axis_axis_ref(axis_Ptr axis_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; 24 CTimer::get("XIOS").resume(); 25 axis_hdl->axis_ref.setValue(axis_ref_str); 26 CTimer::get("XIOS").suspend(); 27 } 28 29 void cxios_get_axis_axis_ref(axis_Ptr axis_hdl, char * axis_ref, int axis_ref_size) 30 { 31 CTimer::get("XIOS").resume(); 32 if(!string_copy(axis_hdl->axis_ref.getInheritedValue(),axis_ref , axis_ref_size)) 33 ERROR("void cxios_get_axis_axis_ref(axis_Ptr axis_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 34 CTimer::get("XIOS").suspend(); 35 } 36 37 bool cxios_is_defined_axis_axis_ref(axis_Ptr axis_hdl ) 38 { 39 CTimer::get("XIOS").resume(); 40 return axis_hdl->axis_ref.hasInheritedValue(); 41 CTimer::get("XIOS").suspend(); 42 } 43 44 45 20 46 void cxios_set_axis_long_name(axis_Ptr axis_hdl, const char * long_name, int long_name_size) 21 47 {
Note: See TracChangeset
for help on using the changeset viewer.