- Timestamp:
- 07/10/17 18:17:04 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/interface/c_attr/icfile_attr.cpp
r1052 r1205 90 90 91 91 92 void cxios_set_file_convention_str(file_Ptr file_hdl, const char * convention_str, int convention_str_size) 93 { 94 std::string convention_str_str; 95 if (!cstr2string(convention_str, convention_str_size, convention_str_str)) return; 96 CTimer::get("XIOS").resume(); 97 file_hdl->convention_str.setValue(convention_str_str); 98 CTimer::get("XIOS").suspend(); 99 } 100 101 void cxios_get_file_convention_str(file_Ptr file_hdl, char * convention_str, int convention_str_size) 102 { 103 CTimer::get("XIOS").resume(); 104 if (!string_copy(file_hdl->convention_str.getInheritedValue(), convention_str, convention_str_size)) 105 ERROR("void cxios_get_file_convention_str(file_Ptr file_hdl, char * convention_str, int convention_str_size)", << "Input string is too short"); 106 CTimer::get("XIOS").suspend(); 107 } 108 109 bool cxios_is_defined_file_convention_str(file_Ptr file_hdl) 110 { 111 CTimer::get("XIOS").resume(); 112 bool isDefined = file_hdl->convention_str.hasInheritedValue(); 113 CTimer::get("XIOS").suspend(); 114 return isDefined; 115 } 116 117 92 118 void cxios_set_file_cyclic(file_Ptr file_hdl, bool cyclic) 93 119 {
Note: See TracChangeset
for help on using the changeset viewer.