Changeset 415 for XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
- Timestamp:
- 01/20/13 23:14:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
r369 r415 51 51 if(!string_copy(axis_hdl->name.getValue(),name , name_size)) 52 52 ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); 53 CTimer::get("XIOS").suspend(); 54 } 55 56 57 void cxios_set_axis_positive(axis_Ptr axis_hdl, const char * positive, int positive_size) 58 { 59 std::string positive_str; 60 if(!cstr2string(positive, positive_size, positive_str)) return; 61 CTimer::get("XIOS").resume(); 62 axis_hdl->positive.fromString(positive_str); 63 axis_hdl->sendAttributToServer(axis_hdl->positive); 64 CTimer::get("XIOS").suspend(); 65 } 66 67 void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size) 68 { 69 CTimer::get("XIOS").resume(); 70 if(!string_copy(axis_hdl->positive.getStringValue(),positive , positive_size)) 71 ERROR("void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size)", <<"Input string is to short"); 53 72 CTimer::get("XIOS").suspend(); 54 73 }
Note: See TracChangeset
for help on using the changeset viewer.