Changeset 581 for XIOS/trunk/src/interface/c_attr/icvariable_attr.cpp
- Timestamp:
- 03/24/15 11:21:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icvariable_attr.cpp
r532 r581 1 1 /* ************************************************************************** * 2 * Interface auto generated - do not modify *2 * Interface auto generated - do not modify * 3 3 * ************************************************************************** */ 4 4 … … 16 16 extern "C" 17 17 { 18 typedef xios::CVariable* 19 18 typedef xios::CVariable* variable_Ptr; 19 20 20 void cxios_set_variable_name(variable_Ptr variable_hdl, const char * name, int name_size) 21 21 { 22 22 std::string name_str; 23 if (!cstr2string(name, name_size, name_str)) return;24 23 if (!cstr2string(name, name_size, name_str)) return; 24 CTimer::get("XIOS").resume(); 25 25 variable_hdl->name.setValue(name_str); 26 26 CTimer::get("XIOS").suspend(); 27 27 } 28 28 29 29 void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size) 30 30 { 31 32 if (!string_copy(variable_hdl->name.getInheritedValue(),name, name_size))33 ERROR("void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size)", << "Input string is to short");34 31 CTimer::get("XIOS").resume(); 32 if (!string_copy(variable_hdl->name.getInheritedValue(), name, name_size)) 33 ERROR("void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size)", << "Input string is too short"); 34 CTimer::get("XIOS").suspend(); 35 35 } 36 37 bool cxios_is_defined_variable_name(variable_Ptr variable_hdl 36 37 bool cxios_is_defined_variable_name(variable_Ptr variable_hdl) 38 38 { 39 39 CTimer::get("XIOS").resume(); 40 returnvariable_hdl->name.hasInheritedValue();40 bool isDefined = variable_hdl->name.hasInheritedValue(); 41 41 CTimer::get("XIOS").suspend(); 42 return isDefined; 42 43 } 43 44 45 44 45 46 46 void cxios_set_variable_type(variable_Ptr variable_hdl, const char * type, int type_size) 47 47 { 48 48 std::string type_str; 49 if (!cstr2string(type, type_size, type_str)) return;50 49 if (!cstr2string(type, type_size, type_str)) return; 50 CTimer::get("XIOS").resume(); 51 51 variable_hdl->type.fromString(type_str); 52 52 CTimer::get("XIOS").suspend(); 53 53 } 54 54 55 55 void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size) 56 56 { 57 58 if (!string_copy(variable_hdl->type.getInheritedStringValue(),type, type_size))59 ERROR("void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size)", << "Input string is to short");60 57 CTimer::get("XIOS").resume(); 58 if (!string_copy(variable_hdl->type.getInheritedStringValue(), type, type_size)) 59 ERROR("void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size)", << "Input string is too short"); 60 CTimer::get("XIOS").suspend(); 61 61 } 62 63 bool cxios_is_defined_variable_type(variable_Ptr variable_hdl 62 63 bool cxios_is_defined_variable_type(variable_Ptr variable_hdl) 64 64 { 65 65 CTimer::get("XIOS").resume(); 66 returnvariable_hdl->type.hasInheritedValue();66 bool isDefined = variable_hdl->type.hasInheritedValue(); 67 67 CTimer::get("XIOS").suspend(); 68 return isDefined; 68 69 } 69 70 71 72 73 70 }
Note: See TracChangeset
for help on using the changeset viewer.